Home
last modified time | relevance | path

Searched refs:rsa_ctx (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftRSA.c194 soft_rsa_ctx_t *rsa_ctx; in soft_rsa_crypt_init_common() local
198 rsa_ctx = calloc(1, sizeof (soft_rsa_ctx_t)); in soft_rsa_crypt_init_common()
199 if (rsa_ctx == NULL) { in soft_rsa_crypt_init_common()
216 free(rsa_ctx); in soft_rsa_crypt_init_common()
222 rsa_ctx->key = tmp_key; in soft_rsa_crypt_init_common()
227 session_p->encrypt.context = rsa_ctx; in soft_rsa_crypt_init_common()
231 session_p->decrypt.context = rsa_ctx; in soft_rsa_crypt_init_common()
245 soft_rsa_ctx_t *rsa_ctx = session_p->encrypt.context; in soft_rsa_encrypt_common() local
246 soft_object_t *key = rsa_ctx->key; in soft_rsa_encrypt_common()
335 soft_rsa_ctx_t *rsa_ctx = session_p->decrypt.context; in soft_rsa_decrypt_common() local
[all …]
H A DsoftSignUtil.c471 soft_rsa_ctx_t *rsa_ctx = in soft_sign_verify_cleanup() local
474 if (rsa_ctx != NULL && rsa_ctx->key != NULL) { in soft_sign_verify_cleanup()
475 soft_cleanup_object(rsa_ctx->key); in soft_sign_verify_cleanup()
476 free(rsa_ctx->key); in soft_sign_verify_cleanup()
H A DsoftEncryptUtil.c938 soft_rsa_ctx_t *rsa_ctx = in soft_crypt_cleanup() local
941 if (rsa_ctx != NULL) in soft_crypt_cleanup()
942 if (rsa_ctx->key != NULL) { in soft_crypt_cleanup()
943 soft_cleanup_object(rsa_ctx->key); in soft_crypt_cleanup()
944 free(rsa_ctx->key); in soft_crypt_cleanup()
/titanic_41/usr/src/uts/common/crypto/io/
H A Drsa.c81 typedef struct rsa_ctx { struct