Lines Matching refs:der
766 /* DER encoded ASN.1 SubjectPublicKeyInfo
940 unsigned char *der = NULL;
964 der_len = i2d_ECPrivateKey(eckey, &der);
966 wpa_hexdump_key(MSG_DEBUG, "DPP: ECPrivateKey", der, der_len);
967 OPENSSL_free(der);
969 der = NULL;
970 der_len = i2d_EC_PUBKEY(eckey, &der);
972 wpa_hexdump(MSG_DEBUG, "DPP: EC_PUBKEY", der, der_len);
973 OPENSSL_free(der);
1126 unsigned char *der = NULL;
1138 der_len = i2d_EC_PUBKEY(eckey, &der);
1142 "DDP: Failed to build DER encoded public key");
1143 OPENSSL_free(der);
1148 res = sha256_vector(1, (const u8 **) &der, &len, bi->pubkey_hash);
1149 OPENSSL_free(der);
1162 unsigned char *der = NULL;
1190 der_len = i2d_EC_PUBKEY(eckey, &der);
1194 "DDP: Failed to build DER encoded public key");
1199 if (sha256_vector(1, (const u8 **) &der, &len, bi->pubkey_hash) < 0) {
1204 base64 = base64_encode(der, der_len, &len);
1205 OPENSSL_free(der);
1206 der = NULL;
1220 OPENSSL_free(der);
3186 wpa_hexdump(MSG_DEBUG, "DPP: signedConnector ECDSA signature (DER)",
3914 unsigned char *der = NULL;
3917 der_len = i2d_PUBKEY(csign, &der);
3921 auth->c_sign_key = wpabuf_alloc_copy(der, der_len);
3922 OPENSSL_free(der);
3928 unsigned char *der = NULL;
3936 der_len = i2d_ECPrivateKey(eckey, &der);
3942 auth->net_access_key = wpabuf_alloc_copy(der, der_len);
3943 OPENSSL_free(der);
3963 unsigned char *der = NULL;
4053 * to convert that to DER encoded ECDSA_SIG for OpenSSL EVP routines. */
4062 der_len = i2d_ECDSA_SIG(sig, &der);
4064 wpa_printf(MSG_DEBUG, "DPP: Could not DER encode signature");
4067 wpa_hexdump(MSG_DEBUG, "DPP: DER encoded signature", der, der_len);
4084 res = EVP_DigestVerifyFinal(md_ctx, der, der_len);
4102 OPENSSL_free(der);