Home
last modified time | relevance | path

Searched refs:CMAC_MODE (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/common/crypto/modes/
H A Dcbc.c107 if ((ctx->cbc_flags & CMAC_MODE) == 0 && in cbc_encrypt_contiguous_blocks()
125 if ((ctx->cbc_flags & CMAC_MODE) == 0) { in cbc_encrypt_contiguous_blocks()
328 uint32_t modeval = mode & (CBC_MODE|CMAC_MODE); in cbc_cmac_alloc_ctx()
331 VERIFY(modeval == CBC_MODE || modeval == CMAC_MODE); in cbc_cmac_alloc_ctx()
358 return (cbc_cmac_alloc_ctx(kmflag, CMAC_MODE)); in cmac_alloc_ctx()
390 cbc_ctx->cbc_flags |= CMAC_MODE; in cmac_init_ctx()
H A Dmodes.c177 switch (common_ctx->cc_flags & (ECB_MODE|CBC_MODE|CMAC_MODE|CTR_MODE| in crypto_free_mode_ctx()
188 case CMAC_MODE: in crypto_free_mode_ctx()
H A Dmodes.h52 #define CMAC_MODE 0x00000080 macro
/illumos-gate/usr/src/uts/common/crypto/io/
H A Daes.c425 if (((aes_ctx->ac_flags & (CMAC_MODE|CTR_MODE|CCM_MODE| in aes_encrypt()
436 switch (aes_ctx->ac_flags & (CMAC_MODE|CCM_MODE|GCM_MODE|GMAC_MODE)) { in aes_encrypt()
443 case CMAC_MODE: in aes_encrypt()
519 } else if (aes_ctx->ac_flags & CMAC_MODE) { in aes_encrypt()
678 if ((aes_ctx->ac_flags & CMAC_MODE) == 0 && in aes_encrypt_update()
839 } else if (aes_ctx->ac_flags & CMAC_MODE) { in aes_encrypt_final()
/illumos-gate/usr/src/common/crypto/aes/
H A Daes_modes.c113 } else if (aes_ctx->ac_flags & (CBC_MODE|CMAC_MODE)) { in aes_encrypt_contiguous_blocks()
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftAESCrypt.c348 !(aes_ctx->ac_flags & (CCM_MODE|GCM_MODE|CMAC_MODE))) { in soft_aes_encrypt()
1622 } else if (ctx->ac_flags & (CBC_MODE|CMAC_MODE)) { in soft_aes_free_ctx()