Home
last modified time | relevance | path

Searched refs:p_bytes (Results 1 – 2 of 2) sorted by relevance

/openssl/crypto/sm2/
H A Dsm2_sign.c40 int p_bytes = 0; in ossl_sm2_compute_z_digest() local
101 p_bytes = BN_num_bytes(p); in ossl_sm2_compute_z_digest()
102 buf = OPENSSL_zalloc(p_bytes); in ossl_sm2_compute_z_digest()
108 if (BN_bn2binpad(a, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
109 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
110 || BN_bn2binpad(b, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
111 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
115 || BN_bn2binpad(xG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
117 || BN_bn2binpad(yG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
122 || BN_bn2binpad(xA, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
[all …]
/openssl/apps/
H A Dpasswd.c523 char *p_bytes = NULL; in shacrypt() local
652 if ((p_bytes = OPENSSL_zalloc(passwd_len)) == NULL) in shacrypt()
654 for (cp = p_bytes, n = passwd_len; n > buf_size; n -= buf_size, cp += buf_size) in shacrypt()
679 (n & 1) ? (const unsigned char *)p_bytes : buf, in shacrypt()
687 if (!EVP_DigestUpdate(md2, p_bytes, passwd_len)) in shacrypt()
691 (n & 1) ? buf : (const unsigned char *)p_bytes, in shacrypt()
701 OPENSSL_free(p_bytes); in shacrypt()
703 p_bytes = NULL; in shacrypt()
771 OPENSSL_free(p_bytes); in shacrypt()

Completed in 10 milliseconds