blowfish_ctx
blowfish_ctx_t *blowfish_ctx = ctx;
if (blowfish_ctx->bc_flags & CBC_MODE) {
blowfish_ctx_t *blowfish_ctx = ctx;
if (blowfish_ctx->bc_flags & CBC_MODE) {
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc;
freezero(blowfish_ctx, sizeof (cbc_ctx_t));
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->blowfish_cbc;
free(blowfish_ctx);
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx =
if (blowfish_ctx != NULL) {
explicit_bzero(blowfish_ctx->bc_keysched,
blowfish_ctx->bc_keysched_len);
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx = ecb_alloc_ctx(kmflag);
blowfish_ctx = cbc_alloc_ctx(kmflag);
if (blowfish_ctx == NULL)
rv = blowfish_common_init_ctx(blowfish_ctx, template, mechanism,
crypto_free_mode_ctx(blowfish_ctx);
ctx->cc_provider_private = blowfish_ctx;
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx = ctx->cc_provider_private;
ASSERT(blowfish_ctx->bc_remainder_len == 0);
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx = ctx->cc_provider_private;
ASSERT(blowfish_ctx->bc_remainder_len == 0);
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx = ctx->cc_provider_private;
if (blowfish_ctx->bc_remainder_len > 0)
blowfish_ctx_t *blowfish_ctx;
blowfish_ctx = ctx->cc_provider_private;
if (blowfish_ctx->bc_remainder_len > 0)
blowfish_ctx_t blowfish_ctx; /* on the stack */
bzero(&blowfish_ctx, sizeof (blowfish_ctx_t));
ret = blowfish_common_init_ctx(&blowfish_ctx, template, mechanism,
ret = crypto_update_iov(&blowfish_ctx,
ret = crypto_update_uio(&blowfish_ctx,
ret = crypto_update_mp((void *)&blowfish_ctx,
if (blowfish_ctx.bc_flags & PROVIDER_OWNS_KEY_SCHEDULE) {
bzero(blowfish_ctx.bc_keysched, blowfish_ctx.bc_keysched_len);
kmem_free(blowfish_ctx.bc_keysched,
blowfish_ctx.bc_keysched_len);
ASSERT(blowfish_ctx.bc_remainder_len == 0);
blowfish_ctx_t blowfish_ctx; /* on the stack */
bzero(&blowfish_ctx, sizeof (blowfish_ctx_t));
ret = blowfish_common_init_ctx(&blowfish_ctx, template, mechanism,
ret = crypto_update_iov(&blowfish_ctx,
ret = crypto_update_uio(&blowfish_ctx,
ret = crypto_update_mp(&blowfish_ctx,
if (blowfish_ctx.bc_flags & PROVIDER_OWNS_KEY_SCHEDULE) {
bzero(blowfish_ctx.bc_keysched, blowfish_ctx.bc_keysched_len);
kmem_free(blowfish_ctx.bc_keysched,
blowfish_ctx.bc_keysched_len);
ASSERT(blowfish_ctx.bc_remainder_len == 0);
blowfish_ctx_t *blowfish_ctx = ctx->cc_provider_private;
if (blowfish_ctx != NULL) {
if (blowfish_ctx->bc_flags & PROVIDER_OWNS_KEY_SCHEDULE) {
ASSERT(blowfish_ctx->bc_keysched_len != 0);
bzero(blowfish_ctx->bc_keysched,
blowfish_ctx->bc_keysched_len);
kmem_free(blowfish_ctx->bc_keysched,
blowfish_ctx->bc_keysched_len);
crypto_free_mode_ctx(blowfish_ctx);
blowfish_common_init_ctx(blowfish_ctx_t *blowfish_ctx,
blowfish_ctx->bc_flags |= PROVIDER_OWNS_KEY_SCHEDULE;
blowfish_ctx->bc_keysched_len = size;
blowfish_ctx->bc_keysched = keysched;
rv = cbc_init_ctx((cbc_ctx_t *)blowfish_ctx,
blowfish_ctx->bc_flags |= ECB_MODE;
if (blowfish_ctx->bc_flags & PROVIDER_OWNS_KEY_SCHEDULE) {