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.c41 int p_bytes = 0; in ossl_sm2_compute_z_digest() local
112 p_bytes = BN_num_bytes(p); in ossl_sm2_compute_z_digest()
113 buf = OPENSSL_zalloc(p_bytes); in ossl_sm2_compute_z_digest()
117 if (BN_bn2binpad(a, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
118 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
119 || BN_bn2binpad(b, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
120 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
124 || BN_bn2binpad(xG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
126 || BN_bn2binpad(yG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
131 || 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
653 if ((p_bytes = OPENSSL_zalloc(passwd_len)) == NULL) in shacrypt()
655 for (cp = p_bytes, n = passwd_len; n > buf_size; n -= buf_size, cp += buf_size) in shacrypt()
680 (n & 1) ? (const unsigned char *)p_bytes : buf, in shacrypt()
688 if (!EVP_DigestUpdate(md2, p_bytes, passwd_len)) in shacrypt()
692 (n & 1) ? buf : (const unsigned char *)p_bytes, in shacrypt()
702 OPENSSL_free(p_bytes); in shacrypt()
704 p_bytes = NULL; in shacrypt()
771 OPENSSL_free(p_bytes); in shacrypt()

Completed in 9 milliseconds