Home
last modified time | relevance | path

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

/third_party/openssl/crypto/sm2/
Dsm2_sign.c39 int p_bytes = 0; in sm2_compute_z_digest() local
100 p_bytes = BN_num_bytes(p); in sm2_compute_z_digest()
101 buf = OPENSSL_zalloc(p_bytes); in sm2_compute_z_digest()
107 if (BN_bn2binpad(a, buf, p_bytes) < 0 in sm2_compute_z_digest()
108 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
109 || BN_bn2binpad(b, buf, p_bytes) < 0 in sm2_compute_z_digest()
110 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
114 || BN_bn2binpad(xG, buf, p_bytes) < 0 in sm2_compute_z_digest()
115 || !EVP_DigestUpdate(hash, buf, p_bytes) in sm2_compute_z_digest()
116 || BN_bn2binpad(yG, buf, p_bytes) < 0 in sm2_compute_z_digest()
[all …]
/third_party/boringssl/src/util/fipstools/cavp/
Dcavp_rsa2_keygen_test.cc55 d_bytes((bits + 7) / 8), p_bytes(BN_num_bytes(p)), in TestRSA2KeyGen() local
64 BN_bn2bin(p, p_bytes.data()) != p_bytes.size() || in TestRSA2KeyGen()
72 EncodeHex(p_bytes.data(), p_bytes.size()).c_str(), in TestRSA2KeyGen()
/third_party/openssl/apps/
Dpasswd.c520 char *p_bytes = NULL; in shacrypt() local
649 if ((p_bytes = OPENSSL_zalloc(passwd_len)) == NULL) in shacrypt()
651 for (cp = p_bytes, n = passwd_len; n > buf_size; n -= buf_size, cp += buf_size) in shacrypt()
676 (n & 1) ? (unsigned const char *)p_bytes : buf, in shacrypt()
684 if (!EVP_DigestUpdate(md2, p_bytes, passwd_len)) in shacrypt()
688 (n & 1) ? buf : (unsigned const char *)p_bytes, in shacrypt()
698 OPENSSL_free(p_bytes); in shacrypt()
700 p_bytes = NULL; in shacrypt()
768 OPENSSL_free(p_bytes); in shacrypt()
/third_party/boringssl/src/crypto/fipsmodule/bn/
Dexponentiation.c1112 const uint8_t *p_bytes = (const uint8_t *)p->d; in BN_mod_exp_mont_consttime() local
1124 wvalue = p_bytes[p->width * BN_BYTES - 1]; in BN_mod_exp_mont_consttime()
1134 OPENSSL_memcpy(&val, p_bytes + (first_bit >> 3), sizeof(val)); in BN_mod_exp_mont_consttime()