Searched refs:cmac (Results 1 - 19 of 19) sorted by relevance

/openbsd-current/lib/libcrypto/modes/
H A Dccm128.c119 (*block)(ctx->nonce.c, ctx->cmac.c, ctx->key),
123 ctx->cmac.c[0] ^= (u8)(alen >> 8);
124 ctx->cmac.c[1] ^= (u8)alen;
128 ctx->cmac.c[0] ^= 0xFF;
129 ctx->cmac.c[1] ^= 0xFF;
130 ctx->cmac.c[2] ^= (u8)(alen >> (56 % (sizeof(alen)*8)));
131 ctx->cmac.c[3] ^= (u8)(alen >> (48 % (sizeof(alen)*8)));
132 ctx->cmac.c[4] ^= (u8)(alen >> (40 % (sizeof(alen)*8)));
133 ctx->cmac.c[5] ^= (u8)(alen >> (32 % (sizeof(alen)*8)));
134 ctx->cmac
[all...]
H A Dmodes_local.h115 } nonce, cmac; member in struct:ccm128_context
H A Dmodes.h29 const unsigned char ivec[16], unsigned char cmac[16]);
/openbsd-current/regress/sys/crypto/
H A DMakefile3 SUBDIR+= cmac
/openbsd-current/lib/libcrypto/cmac/
H A Dcm_ameth.c56 #include <openssl/cmac.h>
H A Dcm_pmeth.c57 #include <openssl/cmac.h>
H A Dcmac.c1 /* $OpenBSD: cmac.c,v 1.24 2024/05/20 14:53:37 tb Exp $ */
58 #include <openssl/cmac.h>
/openbsd-current/lib/libcrypto/hidden/openssl/
H A Dcmac.h1 /* $OpenBSD: cmac.h,v 1.2 2024/03/02 09:30:21 tb Exp $ */
22 #include_next <openssl/cmac.h>
24 #include "../include/openssl/cmac.h"
/openbsd-current/sys/net80211/
H A Dieee80211_crypto_bip.c44 #include <crypto/cmac.h>
48 AES_CMAC_CTX cmac; member in struct:ieee80211_bip_ctx
63 AES_CMAC_SetKey(&ctx->cmac, k->k_key);
111 AES_CMAC_Init(&ctx->cmac);
112 AES_CMAC_Update(&ctx->cmac, (u_int8_t *)&aad, sizeof aad);
113 AES_CMAC_Update(&ctx->cmac, (u_int8_t *)&wh[1],
134 AES_CMAC_Update(&ctx->cmac, mmie, IEEE80211_MMIE_LEN);
135 AES_CMAC_Final(mic, &ctx->cmac);
195 AES_CMAC_Init(&ctx->cmac);
196 AES_CMAC_Update(&ctx->cmac, (u_int8_
[all...]
H A Dieee80211_crypto.c46 #include <crypto/cmac.h>
457 AES_CMAC_CTX cmac; member in union:_ANY_CTX
488 AES_CMAC_Init(&ctx.cmac);
489 AES_CMAC_SetKey(&ctx.cmac, kck);
490 AES_CMAC_Update(&ctx.cmac, (u_int8_t *)key, len);
491 AES_CMAC_Final(key->mic, &ctx.cmac);
/openbsd-current/regress/sys/crypto/cmac/
H A DMakefile6 SRCS+= aes.c cmac.c cmac_test.c
H A Dcmac_test.c19 #include <crypto/cmac.h>
/openbsd-current/sys/crypto/
H A Dcmac.c1 /* $OpenBSD: cmac.c,v 1.3 2017/05/02 17:07:06 mikeb Exp $ */
28 #include <crypto/cmac.h>
/openbsd-current/lib/libcrypto/aes/asm/
H A Daesni-x86.pl580 # const char *ivec,char *cmac);
586 { my $cmac=$inout1;
600 &movdqu ($cmac,&QWP(0,$rounds)); # load cmac
633 &xorps ($cmac,$rndkey0); # cmac^=inp
639 &aesenc ($cmac,$rndkey1);
643 &aesenc ($cmac,$rndkey0);
647 &aesenc ($cmac,$rndkey1);
650 &aesenclast ($cmac,
[all...]
H A Daesni-x86_64.pl828 # const char *ivec,char *cmac);
835 my $cmac="%r9"; # 6th argument
863 movdqu ($cmac),$inout1
878 xorps $rndkey0,$inout1 # cmac^=inp
906 movups $inout1,($cmac)
939 movdqu ($cmac),$inout1
972 xorps $in0,$inout1 # cmac^=out
996 #xorps $in0,$inout1 # cmac^=out
1000 movups $inout1,($cmac)
/openbsd-current/lib/libcrypto/
H A DMakefile212 # cmac/
215 SRCS+= cmac.c
621 ${LCRYPTO_SRC}/cmac \
679 ${LCRYPTO_SRC}/cmac/cmac.h \
/openbsd-current/lib/libcrypto/evp/
H A Dp_lib.c112 #include <openssl/cmac.h>
H A De_aes.c195 unsigned char cmac[16]);
199 unsigned char cmac[16]);
/openbsd-current/regress/usr.bin/openssl/
H A Dappstest.sh197 $openssl_bin dgst -$d -r -mac cmac -macopt cipher:aes-128-cbc \
198 -macopt hexkey:$cmac_key -out $dgstdat.$d.cmac $dgstdat

Completed in 146 milliseconds