Searched refs:privlen (Results 1 – 5 of 5) sorted by relevance
/third_party/openssl/crypto/ec/ |
D | ec_ameth.c | 287 size_t privlen = 0, publen = 0; in do_EC_KEY_print() local 303 privlen = EC_KEY_priv2buf(x, &priv); in do_EC_KEY_print() 304 if (privlen == 0) in do_EC_KEY_print() 321 if (privlen != 0) { in do_EC_KEY_print() 324 if (ASN1_buf_print(bp, priv, privlen, off + 4) == 0) in do_EC_KEY_print() 341 OPENSSL_clear_free(priv, privlen); in do_EC_KEY_print()
|
D | ec_asn1.c | 1025 size_t privlen = 0, publen = 0; in i2d_ECPrivateKey() local 1042 privlen = EC_KEY_priv2buf(a, &priv); in i2d_ECPrivateKey() 1044 if (privlen == 0) { in i2d_ECPrivateKey() 1049 ASN1_STRING_set0(priv_key->privateKey, priv, privlen); in i2d_ECPrivateKey() 1087 OPENSSL_clear_free(priv, privlen); in i2d_ECPrivateKey()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/ |
D | crypto_openssl.c | 754 size_t publen, privlen; in dh5_init() local 783 privlen = BN_num_bytes(dh->priv_key); in dh5_init() 784 privkey = wpabuf_alloc(privlen); in dh5_init() 789 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init() 803 size_t publen, privlen; in dh5_init() 833 privlen = BN_num_bytes(priv_key); in dh5_init() 834 privkey = wpabuf_alloc(privlen); in dh5_init() 839 BN_bn2bin(priv_key, wpabuf_put(privkey, privlen)); in dh5_init()
|
/third_party/openssl/test/ |
D | dhtest.c | 899 int ret, privlen = 0; in dh_load_pkcs3_namedgroup_privlen_test() local 906 &privlen)) in dh_load_pkcs3_namedgroup_privlen_test() 907 && TEST_int_eq(privlen, 1024); in dh_load_pkcs3_namedgroup_privlen_test()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/ |
D | crypto_openssl.c | 827 size_t publen, privlen; in dh5_init() local 856 privlen = BN_num_bytes(dh->priv_key); in dh5_init() 857 privkey = wpabuf_alloc(privlen); in dh5_init() 862 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init() 876 size_t publen, privlen; in dh5_init() 906 privlen = BN_num_bytes(priv_key); in dh5_init() 907 privkey = wpabuf_alloc(privlen); in dh5_init() 912 BN_bn2bin(priv_key, wpabuf_put(privkey, privlen)); in dh5_init()
|