Home
last modified time | relevance | path

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

/third_party/openssl/crypto/sm2/
Dsm2_sign.c41 int p_bytes = 0; in ossl_sm2_compute_z_digest() local
102 p_bytes = BN_num_bytes(p); in ossl_sm2_compute_z_digest()
103 buf = OPENSSL_zalloc(p_bytes); in ossl_sm2_compute_z_digest()
109 if (BN_bn2binpad(a, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
110 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
111 || BN_bn2binpad(b, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
112 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
116 || BN_bn2binpad(xG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
117 || !EVP_DigestUpdate(hash, buf, p_bytes) in ossl_sm2_compute_z_digest()
118 || BN_bn2binpad(yG, buf, p_bytes) < 0 in ossl_sm2_compute_z_digest()
[all …]
/third_party/openssl/apps/
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()