Lines Matching refs:der

727 	unsigned char *der = NULL;  in dpp_bootstrap_key_der()  local
731 der_len = crypto_ec_write_pub_key(key, &der); in dpp_bootstrap_key_der()
732 if (!der) { in dpp_bootstrap_key_der()
736 ret = wpabuf_alloc_copy(der, der_len); in dpp_bootstrap_key_der()
738 os_free(der); in dpp_bootstrap_key_der()
744 struct wpabuf *der; in dpp_bootstrap_key_hash() local
749 der = dpp_bootstrap_key_der(bi->pubkey); in dpp_bootstrap_key_hash()
750 if (!der) in dpp_bootstrap_key_hash()
753 der); in dpp_bootstrap_key_hash()
755 addr[0] = wpabuf_head(der); in dpp_bootstrap_key_hash()
756 len[0] = wpabuf_len(der); in dpp_bootstrap_key_hash()
763 wpabuf_free(der); in dpp_bootstrap_key_hash()
774 struct wpabuf *der = NULL; in dpp_keygen() local
796 der = dpp_bootstrap_key_der(bi->pubkey); in dpp_keygen()
797 if (!der) in dpp_keygen()
800 der); in dpp_keygen()
802 addr[0] = wpabuf_head(der); in dpp_keygen()
803 len = wpabuf_len(der); in dpp_keygen()
812 base64 = (char *)base64_encode(wpabuf_head(der), wpabuf_len(der), &len); in dpp_keygen()
813 wpabuf_free(der); in dpp_keygen()
814 der = NULL; in dpp_keygen()
828 wpabuf_free(der); in dpp_keygen()
4957 unsigned char *der = NULL; in dpp_copy_csign() local
4960 der_len = crypto_write_pubkey_der(csign, &der); in dpp_copy_csign()
4964 conf->c_sign_key = wpabuf_alloc_copy(der, der_len); in dpp_copy_csign()
4965 crypto_free_buffer(der); in dpp_copy_csign()
4971 unsigned char *der = NULL; in dpp_copy_netaccesskey() local
4974 if (crypto_ec_get_priv_key_der(auth->own_protocol_key, &der, &der_len) < 0) in dpp_copy_netaccesskey()
4977 auth->net_access_key = wpabuf_alloc_copy(der, der_len); in dpp_copy_netaccesskey()
4978 crypto_free_buffer(der); in dpp_copy_netaccesskey()