Searched refs:rsa_ctx (Results 1 – 4 of 4) sorted by relevance
194 soft_rsa_ctx_t *rsa_ctx; in soft_rsa_crypt_init_common() local198 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() local246 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 …]
471 soft_rsa_ctx_t *rsa_ctx = in soft_sign_verify_cleanup() local474 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()
938 soft_rsa_ctx_t *rsa_ctx = in soft_crypt_cleanup() local941 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()
81 typedef struct rsa_ctx { struct