Home
last modified time | relevance | path

Searched refs:cbc (Results 1 – 7 of 7) sorted by relevance

/hostap-3.6.0/src/crypto/
Dcrypto_internal-cipher.c26 u8 cbc[32]; member
32 u8 cbc[8]; member
37 u8 cbc[8]; member
76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE); in crypto_cipher_init()
84 os_memcpy(ctx->u.des3.cbc, iv, 8); in crypto_cipher_init()
92 os_memcpy(ctx->u.des.cbc, iv, 8); in crypto_cipher_init()
122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
123 aes_encrypt(ctx->u.aes.ctx_enc, ctx->u.aes.cbc, in crypto_cipher_encrypt()
124 ctx->u.aes.cbc); in crypto_cipher_encrypt()
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt()
[all …]
Daes-cbc.c27 u8 cbc[AES_BLOCK_SIZE]; in aes_128_cbc_encrypt() local
37 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_encrypt()
42 cbc[j] ^= pos[j]; in aes_128_cbc_encrypt()
43 aes_encrypt(ctx, cbc, cbc); in aes_128_cbc_encrypt()
44 os_memcpy(pos, cbc, AES_BLOCK_SIZE); in aes_128_cbc_encrypt()
63 u8 cbc[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE]; in aes_128_cbc_decrypt() local
73 os_memcpy(cbc, iv, AES_BLOCK_SIZE); in aes_128_cbc_decrypt()
80 pos[j] ^= cbc[j]; in aes_128_cbc_decrypt()
81 os_memcpy(cbc, tmp, AES_BLOCK_SIZE); in aes_128_cbc_decrypt()
Daes-omac1.c47 u8 cbc[AES_BLOCK_SIZE], pad[AES_BLOCK_SIZE]; in omac1_aes_vector() local
57 os_memset(cbc, 0, AES_BLOCK_SIZE); in omac1_aes_vector()
70 cbc[i] ^= *pos++; in omac1_aes_vector()
85 aes_encrypt(ctx, cbc, cbc); in omac1_aes_vector()
95 cbc[i] ^= *pos++; in omac1_aes_vector()
108 cbc[left] ^= 0x80; in omac1_aes_vector()
113 pad[i] ^= cbc[i]; in omac1_aes_vector()
Dcrypto_libtomcrypt.c291 symmetric_CBC cbc; member
342 res = cbc_start(idx, iv, key, key_len, 0, &ctx->u.cbc); in crypto_cipher_init()
368 res = cbc_encrypt(plain, crypt, len, &ctx->u.cbc); in crypto_cipher_encrypt()
392 res = cbc_decrypt(crypt, plain, len, &ctx->u.cbc); in crypto_cipher_decrypt()
406 cbc_done(&ctx->u.cbc); in crypto_cipher_deinit()
DMakefile11 aes-cbc.o \
/hostap-3.6.0/wpa_supplicant/
Dnmake.mak69 $(OBJDIR)\aes-cbc.obj \
/hostap-3.6.0/tests/hwsim/auth_serv/
Dupdate.sh132 …$OPENSSL pkcs8 -topk8 -in user.key -out user.key.pkcs8 -inform PEM -v2 des-ede3-cbc -v2prf hmacWit…