Searched refs:privlen (Results 1 – 2 of 2) sorted by relevance
88 long privlen; in pack_key_ecdsa() local133 if ((privlen = BIO_get_mem_data(bio, &privptr)) <= 0) { in pack_key_ecdsa()137 if ((response->key_handle = malloc(privlen)) == NULL) { in pack_key_ecdsa()141 response->key_handle_len = (size_t)privlen; in pack_key_ecdsa()
763 size_t publen, privlen; in dh5_init() local792 privlen = BN_num_bytes(dh->priv_key); in dh5_init()793 privkey = wpabuf_alloc(privlen); in dh5_init()798 BN_bn2bin(dh->priv_key, wpabuf_put(privkey, privlen)); in dh5_init()812 size_t publen, privlen; in dh5_init()842 privlen = BN_num_bytes(priv_key); in dh5_init()843 privkey = wpabuf_alloc(privlen); in dh5_init()848 BN_bn2bin(priv_key, wpabuf_put(privkey, privlen)); in dh5_init()