Lines Matching refs:libctx
44 static EVP_PKEY *get_key(OSSL_LIB_CTX *libctx, const char *propq, int public) in get_key() argument
62 selection, libctx, propq); in get_key()
70 static int demo_sign(OSSL_LIB_CTX *libctx, const char *sig_name, in demo_sign() argument
81 priv_key = get_key(libctx, propq, public); in demo_sign()
100 libctx, NULL, priv_key, NULL)) { in demo_sign()
150 static int demo_verify(OSSL_LIB_CTX *libctx, const char *sig_name, in demo_verify() argument
168 pub_key = get_key(libctx, propq, public); in demo_verify()
175 libctx, NULL, pub_key, NULL)) { in demo_verify()
207 OSSL_LIB_CTX *libctx = NULL; in main() local
213 libctx = OSSL_LIB_CTX_new(); in main()
214 if (libctx == NULL) { in main()
218 if (!demo_sign(libctx, sig_name, &sig_len, &sig_value)) { in main()
222 if (!demo_verify(libctx, sig_name, sig_len, sig_value)) { in main()
232 OSSL_LIB_CTX_free(libctx); in main()