Lines Matching refs:evp_key
605 EVP_PKEY *evp_key; in kwb_sign() local
611 evp_key = EVP_PKEY_new(); in kwb_sign()
612 if (!evp_key) in kwb_sign()
615 if (!EVP_PKEY_set1_RSA(evp_key, key)) { in kwb_sign()
620 size = EVP_PKEY_size(evp_key); in kwb_sign()
644 if (!EVP_SignFinal(ctx, sig->sig, &sig_size, evp_key)) { in kwb_sign()
651 EVP_PKEY_free(evp_key); in kwb_sign()
658 EVP_PKEY_free(evp_key); in kwb_sign()
666 EVP_PKEY *evp_key; in kwb_verify() local
671 evp_key = EVP_PKEY_new(); in kwb_verify()
672 if (!evp_key) in kwb_verify()
675 if (!EVP_PKEY_set1_RSA(evp_key, key)) { in kwb_verify()
680 size = EVP_PKEY_size(evp_key); in kwb_verify()
704 if (!EVP_VerifyFinal(ctx, sig->sig, sizeof(sig->sig), evp_key)) { in kwb_verify()
711 EVP_PKEY_free(evp_key); in kwb_verify()
718 EVP_PKEY_free(evp_key); in kwb_verify()