Home
last modified time | relevance | path

Searched refs:ktmp (Results 1 – 3 of 3) sorted by path

/dragonfly/crypto/libressl/crypto/ec/
H A Dec_pmeth.c253 unsigned char *ktmp = NULL; in pkey_ec_kdf_derive() local
268 if ((ktmp = calloc(1, ktmplen)) == NULL) { in pkey_ec_kdf_derive()
272 if (!pkey_ec_derive(ctx, ktmp, &ktmplen)) in pkey_ec_kdf_derive()
275 if (!ecdh_KDF_X9_63(key, *keylen, ktmp, ktmplen, dctx->kdf_ukm, in pkey_ec_kdf_derive()
281 freezero(ktmp, ktmplen); in pkey_ec_kdf_derive()
/dragonfly/crypto/libressl/crypto/hmac/
H A Dhm_pmeth.c74 ASN1_OCTET_STRING ktmp; /* Temp storage for key */ member
86 hctx->ktmp.type = V_ASN1_OCTET_STRING; in pkey_hmac_init()
108 if (sctx->ktmp.data) { in pkey_hmac_copy()
109 if (!ASN1_OCTET_STRING_set(&dctx->ktmp, sctx->ktmp.data, in pkey_hmac_copy()
110 sctx->ktmp.length)) in pkey_hmac_copy()
125 freezero(hctx->ktmp.data, hctx->ktmp.length); in pkey_hmac_cleanup()
135 if (!hctx->ktmp.data) in pkey_hmac_keygen()
137 hkey = ASN1_OCTET_STRING_dup(&hctx->ktmp); in pkey_hmac_keygen()
196 if (!ASN1_OCTET_STRING_set(&hctx->ktmp, p2, p1)) in pkey_hmac_ctrl()
/dragonfly/crypto/libressl/crypto/x509/
H A Dx509_vfy.c2090 EVP_PKEY *ktmp = NULL, *ktmp2; in X509_get_pubkey_parameters() local
2097 ktmp = X509_get0_pubkey(sk_X509_value(chain, i)); in X509_get_pubkey_parameters()
2098 if (ktmp == NULL) { in X509_get_pubkey_parameters()
2102 if (!EVP_PKEY_missing_parameters(ktmp)) in X509_get_pubkey_parameters()
2105 ktmp = NULL; in X509_get_pubkey_parameters()
2107 if (ktmp == NULL) { in X509_get_pubkey_parameters()
2116 if (!EVP_PKEY_copy_parameters(ktmp2, ktmp)) in X509_get_pubkey_parameters()
2121 if (!EVP_PKEY_copy_parameters(pkey, ktmp)) in X509_get_pubkey_parameters()