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