Lines Matching refs:libctx
38 static int sign(OSSL_LIB_CTX *libctx, unsigned char **sig, size_t *sig_len) in sign() argument
51 sizeof(rsa_priv_key), libctx, propq); in sign()
58 md = EVP_MD_fetch(libctx, "SHA256", propq); in sign()
65 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in sign()
124 static int verify(OSSL_LIB_CTX *libctx, const unsigned char *sig, size_t sig_len) in verify() argument
141 md = EVP_MD_fetch(libctx, "SHA256", propq); in verify()
148 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, pkey, propq); in verify()
189 OSSL_LIB_CTX *libctx = NULL; in main() local
193 if (sign(libctx, &sig, &sig_len) == 0) in main()
196 if (verify(libctx, sig, sig_len) == 0) in main()
204 OSSL_LIB_CTX_free(libctx); in main()