Home
last modified time | relevance | path

Searched refs:rsa_method (Results 1 – 3 of 3) sorted by relevance

/dflybsd-src/crypto/libressl/tls/
H A Dtls_signer.c364 static RSA_METHOD *rsa_method = NULL; in tls_signer_rsa_method() local
368 if (rsa_method != NULL) in tls_signer_rsa_method()
371 rsa_method = RSA_meth_new("libtls RSA method", 0); in tls_signer_rsa_method()
372 if (rsa_method == NULL) in tls_signer_rsa_method()
375 RSA_meth_set_priv_enc(rsa_method, tls_rsa_priv_enc); in tls_signer_rsa_method()
380 return (rsa_method); in tls_signer_rsa_method()
H A Dtls.c390 RSA_METHOD *rsa_method; in tls_keypair_setup_pkey() local
414 if ((rsa_method = tls_signer_rsa_method()) == NULL || in tls_keypair_setup_pkey()
416 RSA_set_method(rsa, rsa_method) == 0) { in tls_keypair_setup_pkey()
/dflybsd-src/crypto/openssh/
H A Dssh-pkcs11.c191 static RSA_METHOD *rsa_method; variable
466 if (rsa_method != NULL) in pkcs11_rsa_start_wrapper()
468 rsa_method = RSA_meth_dup(RSA_get_default_method()); in pkcs11_rsa_start_wrapper()
469 if (rsa_method == NULL) in pkcs11_rsa_start_wrapper()
475 if (!RSA_meth_set1_name(rsa_method, "pkcs11") || in pkcs11_rsa_start_wrapper()
476 !RSA_meth_set_priv_enc(rsa_method, pkcs11_rsa_private_encrypt) || in pkcs11_rsa_start_wrapper()
477 !RSA_meth_set_priv_dec(rsa_method, pkcs11_rsa_private_decrypt)) { in pkcs11_rsa_start_wrapper()
505 RSA_set_method(rsa, rsa_method); in pkcs11_rsa_wrap()