soft_blowfish_ctx
(void) memcpy(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len = OBJ_KEY_SCHED_LEN(key_p);
soft_blowfish_ctx->key_sched);
soft_blowfish_ctx_t *soft_blowfish_ctx =
total_len = soft_blowfish_ctx->remain_len + ulDataLen;
(void) memcpy(soft_blowfish_ctx->data +
soft_blowfish_ctx->remain_len, pData,
soft_blowfish_ctx->remain_len += ulDataLen;
if (soft_blowfish_ctx->remain_len != 0) {
soft_blowfish_ctx->remain_len,
pData, out_len - soft_blowfish_ctx->remain_len);
(void) memcpy(pEncrypted, soft_blowfish_ctx->data,
soft_blowfish_ctx->remain_len);
bzero(soft_blowfish_ctx->data,
soft_blowfish_ctx->remain_len);
(blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc,
(void) memcpy(soft_blowfish_ctx->data, pData +
soft_blowfish_ctx->remain_len = remain;
blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc;
freezero(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len);
soft_blowfish_ctx_t *soft_blowfish_ctx =
total_len = soft_blowfish_ctx->remain_len + ulEncryptedLen;
(void) memcpy(soft_blowfish_ctx->data +
soft_blowfish_ctx->remain_len,
soft_blowfish_ctx->remain_len += ulEncryptedLen;
if (soft_blowfish_ctx->remain_len != 0) {
(void) memmove(pData + soft_blowfish_ctx->remain_len,
out_len - soft_blowfish_ctx->remain_len);
(void) memcpy(pData, soft_blowfish_ctx->data,
soft_blowfish_ctx->remain_len);
bzero(soft_blowfish_ctx->data,
soft_blowfish_ctx->remain_len);
soft_blowfish_ctx_t *soft_blowfish_ctx;
(blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc,
(void) memcpy(soft_blowfish_ctx->data,
soft_blowfish_ctx = calloc(1, sizeof (soft_blowfish_ctx_t));
soft_blowfish_ctx->remain_len = remain;
if (soft_blowfish_ctx == NULL) {
blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc;
freezero(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len);
soft_blowfish_ctx->key_sched = blowfish_alloc_keysched(&size, 0);
if (soft_blowfish_ctx->key_sched == NULL) {
free(soft_blowfish_ctx);
soft_blowfish_ctx->keysched_len = size;
session_p->encrypt.context = soft_blowfish_ctx;
session_p->decrypt.context = soft_blowfish_ctx;
free(soft_blowfish_ctx);
soft_blowfish_ctx_t *soft_blowfish_ctx;
soft_blowfish_ctx =
(void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter,
soft_blowfish_ctx->blowfish_cbc =
(void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len,
soft_blowfish_ctx->ivec);
if (soft_blowfish_ctx->blowfish_cbc == NULL) {
freezero(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len);
soft_blowfish_ctx_t *soft_blowfish_ctx;
soft_blowfish_ctx =
if (soft_blowfish_ctx->remain_len != 0)
free(soft_blowfish_ctx->blowfish_cbc);
freezero(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len);
soft_blowfish_ctx_t *soft_blowfish_ctx;
soft_blowfish_ctx =
(void) memcpy(soft_blowfish_ctx->ivec, pMechanism->pParameter,
soft_blowfish_ctx->blowfish_cbc =
(void *)blowfish_cbc_ctx_init(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len,
soft_blowfish_ctx->ivec);
if (soft_blowfish_ctx->blowfish_cbc == NULL) {
freezero(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len);
soft_blowfish_ctx_t *soft_blowfish_ctx;
soft_blowfish_ctx =
if (soft_blowfish_ctx->remain_len != 0)
free(soft_blowfish_ctx->blowfish_cbc);
freezero(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len);
soft_blowfish_ctx_t *soft_blowfish_ctx =
if (soft_blowfish_ctx != NULL) {
(blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc;
free(soft_blowfish_ctx->blowfish_cbc);
freezero(soft_blowfish_ctx->key_sched,
soft_blowfish_ctx->keysched_len);