Searched refs:soft_blowfish_ctx (Results 1 – 4 of 4) sorted by relevance
/titanic_44/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softBlowfishCrypt.c | 42 soft_blowfish_ctx_t *soft_blowfish_ctx; in soft_blowfish_crypt_init_common() local 44 soft_blowfish_ctx = calloc(1, sizeof (soft_blowfish_ctx_t)); in soft_blowfish_crypt_init_common() 45 if (soft_blowfish_ctx == NULL) { in soft_blowfish_crypt_init_common() 49 soft_blowfish_ctx->key_sched = blowfish_alloc_keysched(&size, 0); in soft_blowfish_crypt_init_common() 51 if (soft_blowfish_ctx->key_sched == NULL) { in soft_blowfish_crypt_init_common() 52 free(soft_blowfish_ctx); in soft_blowfish_crypt_init_common() 56 soft_blowfish_ctx->keysched_len = size; in soft_blowfish_crypt_init_common() 61 session_p->encrypt.context = soft_blowfish_ctx; in soft_blowfish_crypt_init_common() 65 session_p->decrypt.context = soft_blowfish_ctx; in soft_blowfish_crypt_init_common() 88 free(soft_blowfish_ctx); in soft_blowfish_crypt_init_common() [all …]
|
H A D | softEncryptUtil.c | 303 soft_blowfish_ctx_t *soft_blowfish_ctx; in soft_encrypt_init() local 320 soft_blowfish_ctx = in soft_encrypt_init() 323 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter, in soft_encrypt_init() 327 soft_blowfish_ctx->blowfish_cbc = in soft_encrypt_init() 328 (void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched, in soft_encrypt_init() 329 soft_blowfish_ctx->keysched_len, in soft_encrypt_init() 330 soft_blowfish_ctx->ivec); in soft_encrypt_init() 332 if (soft_blowfish_ctx->blowfish_cbc == NULL) { in soft_encrypt_init() 333 bzero(soft_blowfish_ctx->key_sched, in soft_encrypt_init() 334 soft_blowfish_ctx->keysched_len); in soft_encrypt_init() [all …]
|
H A D | softDecryptUtil.c | 264 soft_blowfish_ctx_t *soft_blowfish_ctx; in soft_decrypt_init() local 281 soft_blowfish_ctx = in soft_decrypt_init() 285 (void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter, in soft_decrypt_init() 289 soft_blowfish_ctx->blowfish_cbc = in soft_decrypt_init() 290 (void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched, in soft_decrypt_init() 291 soft_blowfish_ctx->keysched_len, in soft_decrypt_init() 292 soft_blowfish_ctx->ivec); in soft_decrypt_init() 294 if (soft_blowfish_ctx->blowfish_cbc == NULL) { in soft_decrypt_init() 295 bzero(soft_blowfish_ctx->key_sched, in soft_decrypt_init() 296 soft_blowfish_ctx->keysched_len); in soft_decrypt_init() [all …]
|
H A D | softCrypt.h | 64 typedef struct soft_blowfish_ctx { struct
|