Searched refs:soft_blowfish_ctx (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softBlowfishCrypt.c | 43 soft_blowfish_ctx_t *soft_blowfish_ctx; in soft_blowfish_crypt_init_common() local 45 soft_blowfish_ctx = calloc(1, sizeof (soft_blowfish_ctx_t)); in soft_blowfish_crypt_init_common() 46 if (soft_blowfish_ctx == NULL) { in soft_blowfish_crypt_init_common() 50 soft_blowfish_ctx->key_sched = blowfish_alloc_keysched(&size, 0); in soft_blowfish_crypt_init_common() 52 if (soft_blowfish_ctx->key_sched == NULL) { in soft_blowfish_crypt_init_common() 53 free(soft_blowfish_ctx); in soft_blowfish_crypt_init_common() 57 soft_blowfish_ctx->keysched_len = size; in soft_blowfish_crypt_init_common() 62 session_p->encrypt.context = soft_blowfish_ctx; in soft_blowfish_crypt_init_common() 66 session_p->decrypt.context = soft_blowfish_ctx; in soft_blowfish_crypt_init_common() 89 free(soft_blowfish_ctx); in soft_blowfish_crypt_init_common() [all …]
|
H A D | softEncryptUtil.c | 224 soft_blowfish_ctx_t *soft_blowfish_ctx; in soft_encrypt_init() local 241 soft_blowfish_ctx = in soft_encrypt_init() 244 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter, in soft_encrypt_init() 248 soft_blowfish_ctx->blowfish_cbc = in soft_encrypt_init() 249 (void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched, in soft_encrypt_init() 250 soft_blowfish_ctx->keysched_len, in soft_encrypt_init() 251 soft_blowfish_ctx->ivec); in soft_encrypt_init() 253 if (soft_blowfish_ctx->blowfish_cbc == NULL) { in soft_encrypt_init() 254 freezero(soft_blowfish_ctx->key_sched, in soft_encrypt_init() 255 soft_blowfish_ctx->keysched_len); in soft_encrypt_init() [all …]
|
H A D | softDecryptUtil.c | 180 soft_blowfish_ctx_t *soft_blowfish_ctx; in soft_decrypt_init() local 197 soft_blowfish_ctx = in soft_decrypt_init() 201 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter, in soft_decrypt_init() 205 soft_blowfish_ctx->blowfish_cbc = in soft_decrypt_init() 206 (void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched, in soft_decrypt_init() 207 soft_blowfish_ctx->keysched_len, in soft_decrypt_init() 208 soft_blowfish_ctx->ivec); in soft_decrypt_init() 210 if (soft_blowfish_ctx->blowfish_cbc == NULL) { in soft_decrypt_init() 211 freezero(soft_blowfish_ctx->key_sched, in soft_decrypt_init() 212 soft_blowfish_ctx->keysched_len); in soft_decrypt_init() [all …]
|
H A D | softCrypt.h | 56 typedef struct soft_blowfish_ctx { struct
|