Searched refs:mode_ctx (Results 1 - 8 of 8) sorted by relevance

/osnet-11/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftEncryptUtil.c146 soft_des_ctx->mode_ctx = (void *)des_ecb_ctx_init(
150 if (soft_des_ctx->mode_ctx == NULL) {
165 des_low_level_funcs(soft_des_ctx->mode_ctx,
213 soft_des_ctx->mode_ctx = (void *)des_cbc_ctx_init(
217 if (soft_des_ctx->mode_ctx == NULL) {
229 des_low_level_funcs(soft_des_ctx->mode_ctx,
234 des_low_level_funcs(soft_des_ctx->mode_ctx,
273 soft_aes_ctx->mode_ctx = (void *)aes_ecb_ctx_init(
277 if (soft_aes_ctx->mode_ctx == NULL) {
290 aes_low_level_funcs(soft_aes_ctx->mode_ctx,
[all...]
H A DsoftDecryptUtil.c123 soft_des_ctx->mode_ctx = (void *)des_ecb_ctx_init(
127 if (soft_des_ctx->mode_ctx == NULL) {
142 des_low_level_funcs(soft_des_ctx->mode_ctx,
189 soft_des_ctx->mode_ctx = (void *)des_cbc_ctx_init(
193 if (soft_des_ctx->mode_ctx == NULL) {
206 des_low_level_funcs(soft_des_ctx->mode_ctx,
211 des_low_level_funcs(soft_des_ctx->mode_ctx,
249 soft_aes_ctx->mode_ctx = (void *)aes_ecb_ctx_init(
253 if (soft_aes_ctx->mode_ctx == NULL) {
266 aes_low_level_funcs(soft_aes_ctx->mode_ctx,
[all...]
H A DsoftRawDataCrypt.c94 free(soft_alg_ctx->mode_ctx);
97 free(soft_alg_ctx->mode_ctx);
112 common_ctx_t *cctx = (common_ctx_t *)soft_alg_ctx->mode_ctx; \
124 alg##_ctx_t *)soft_alg_ctx->mode_ctx, (char *)in_buf, \
206 (alg##_ctx_t *)soft_alg_ctx->mode_ctx, \
212 (alg##_ctx_t *)soft_alg_ctx->mode_ctx, \
232 alg_ctx = (alg##_ctx_t *)soft_alg_ctx->mode_ctx; \
385 (alg##_ctx_t *)soft_alg_ctx->mode_ctx, \
391 (alg##_ctx_t *)soft_alg_ctx->mode_ctx, \
419 alg_ctx = (alg##_ctx_t *)soft_alg_ctx->mode_ctx; \
[all...]
H A DsoftAESCrypt.c378 (aes_ctx_t *)soft_aes_ctx->mode_ctx,
416 (aes_ctx_t *)soft_aes_ctx->mode_ctx,
456 (aes_ctx_t *)soft_aes_ctx->mode_ctx,
482 rc = aes_encrypt_contiguous_blocks(soft_aes_ctx->mode_ctx,
504 aes_ctx = (aes_ctx_t *)soft_aes_ctx->mode_ctx;
507 free(soft_aes_ctx->mode_ctx);
752 (aes_ctx_t *)soft_aes_ctx->mode_ctx,
793 (aes_ctx_t *)soft_aes_ctx->mode_ctx,
811 (aes_ctx_t *)soft_aes_ctx->mode_ctx,
870 rc = aes_decrypt_contiguous_blocks(soft_aes_ctx->mode_ctx,
[all...]
H A DsoftCrypt.h50 void *mode_ctx; /* context for various modes */ member in struct:soft_aes_ctx
59 void *mode_ctx; /* context for CBC mode */ member in struct:soft_blowfish_ctx
68 void *mode_ctx; /* context for CBC mode */ member in struct:soft_des_ctx
H A DsoftBlowfishCrypt.c267 (blowfish_ctx_t *)soft_blowfish_ctx->mode_ctx,
292 blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->mode_ctx;
296 free(soft_blowfish_ctx->mode_ctx);
436 (blowfish_ctx_t *)soft_blowfish_ctx->mode_ctx,
462 blowfish_ctx = (blowfish_ctx_t *)soft_blowfish_ctx->mode_ctx;
466 free(soft_blowfish_ctx->mode_ctx);
H A DsoftDESCrypt.c331 (des_ctx_t *)soft_des_ctx->mode_ctx,
367 (des_ctx_t *)soft_des_ctx->mode_ctx,
391 des_ctx = (des_ctx_t *)soft_des_ctx->mode_ctx;
394 free(soft_des_ctx->mode_ctx);
606 (des_ctx_t *)soft_des_ctx->mode_ctx,
621 (des_ctx_t *)soft_des_ctx->mode_ctx,
675 des_ctx = (des_ctx_t *)soft_des_ctx->mode_ctx;
678 free(soft_des_ctx->mode_ctx);
902 * soft_des_ctx_encrypt->mode_ctx->des_ctx->dc_lastp
907 des_ctx = (des_ctx_t *)soft_des_ctx_encrypt->mode_ctx;
[all...]
H A DsoftKeystore.c2304 soft_aes_ctx->mode_ctx = (void *)aes_cbc_ctx_init(
2308 if (soft_aes_ctx->mode_ctx == NULL) {

Completed in 75 milliseconds