Lines Matching defs:soft_blowfish_ctx

42 	soft_blowfish_ctx_t *soft_blowfish_ctx;
44 soft_blowfish_ctx = calloc(1, sizeof (soft_blowfish_ctx_t));
45 if (soft_blowfish_ctx == NULL) {
49 soft_blowfish_ctx->key_sched = blowfish_alloc_keysched(&size, 0);
51 if (soft_blowfish_ctx->key_sched == NULL) {
52 free(soft_blowfish_ctx);
56 soft_blowfish_ctx->keysched_len = size;
61 session_p->encrypt.context = soft_blowfish_ctx;
65 session_p->decrypt.context = soft_blowfish_ctx;
88 free(soft_blowfish_ctx);
100 (void) memcpy(soft_blowfish_ctx->key_sched,
102 soft_blowfish_ctx->keysched_len = OBJ_KEY_SCHED_LEN(key_p);
111 soft_blowfish_ctx->key_sched);
147 soft_blowfish_ctx_t *soft_blowfish_ctx =
193 total_len = soft_blowfish_ctx->remain_len + ulDataLen;
207 (void) memcpy(soft_blowfish_ctx->data +
208 soft_blowfish_ctx->remain_len, pData,
210 soft_blowfish_ctx->remain_len += ulDataLen;
242 if (soft_blowfish_ctx->remain_len != 0) {
248 soft_blowfish_ctx->remain_len,
249 pData, out_len - soft_blowfish_ctx->remain_len);
250 (void) memcpy(pEncrypted, soft_blowfish_ctx->data,
251 soft_blowfish_ctx->remain_len);
252 bzero(soft_blowfish_ctx->data,
253 soft_blowfish_ctx->remain_len);
274 (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc,
285 (void) memcpy(soft_blowfish_ctx->data, pData +
288 soft_blowfish_ctx->remain_len = remain;
299 blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc;
303 free(soft_blowfish_ctx->blowfish_cbc);
306 bzero(soft_blowfish_ctx->key_sched, soft_blowfish_ctx->keysched_len);
307 free(soft_blowfish_ctx->key_sched);
323 soft_blowfish_ctx_t *soft_blowfish_ctx =
369 total_len = soft_blowfish_ctx->remain_len + ulEncryptedLen;
373 (void) memcpy(soft_blowfish_ctx->data +
374 soft_blowfish_ctx->remain_len,
377 soft_blowfish_ctx->remain_len += ulEncryptedLen;
411 if (soft_blowfish_ctx->remain_len != 0) {
416 (void) memmove(pData + soft_blowfish_ctx->remain_len,
418 out_len - soft_blowfish_ctx->remain_len);
419 (void) memcpy(pData, soft_blowfish_ctx->data,
420 soft_blowfish_ctx->remain_len);
421 bzero(soft_blowfish_ctx->data,
422 soft_blowfish_ctx->remain_len);
441 (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc,
452 (void) memcpy(soft_blowfish_ctx->data,
455 soft_blowfish_ctx->remain_len = remain;
467 blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc;
471 free(soft_blowfish_ctx->blowfish_cbc);
474 bzero(soft_blowfish_ctx->key_sched, soft_blowfish_ctx->keysched_len);
475 free(soft_blowfish_ctx->key_sched);