Home
last modified time | relevance | path

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

/third_party/openssl/crypto/ec/
Dec_ameth.c363 size_t privlen = 0, publen = 0; in do_EC_KEY_print() local
379 privlen = EC_KEY_priv2buf(x, &priv); in do_EC_KEY_print()
380 if (privlen == 0) in do_EC_KEY_print()
397 if (privlen != 0) { in do_EC_KEY_print()
400 if (ASN1_buf_print(bp, priv, privlen, off + 4) == 0) in do_EC_KEY_print()
417 OPENSSL_clear_free(priv, privlen); in do_EC_KEY_print()
Dec_asn1.c1080 size_t privlen = 0, publen = 0; in i2d_ECPrivateKey() local
1097 privlen = EC_KEY_priv2buf(a, &priv); in i2d_ECPrivateKey()
1099 if (privlen == 0) { in i2d_ECPrivateKey()
1104 ASN1_STRING_set0(priv_key->privateKey, priv, privlen); in i2d_ECPrivateKey()
1142 OPENSSL_clear_free(priv, privlen); in i2d_ECPrivateKey()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dcrypto_openssl.c754 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/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dcrypto_openssl.c827 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()