Lines Matching refs:cbc
26 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()
136 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
137 des3_encrypt(ctx->u.des3.cbc, &ctx->u.des3.key, in crypto_cipher_encrypt()
138 ctx->u.des3.cbc); in crypto_cipher_encrypt()
139 os_memcpy(crypt, ctx->u.des3.cbc, 8); in crypto_cipher_encrypt()
150 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
151 des_block_encrypt(ctx->u.des.cbc, ctx->u.des.ek, in crypto_cipher_encrypt()
152 ctx->u.des.cbc); in crypto_cipher_encrypt()
153 os_memcpy(crypt, ctx->u.des.cbc, 8); in crypto_cipher_encrypt()
188 plain[j] ^= ctx->u.aes.cbc[j]; in crypto_cipher_decrypt()
189 os_memcpy(ctx->u.aes.cbc, tmp, AES_BLOCK_SIZE); in crypto_cipher_decrypt()
202 plain[j] ^= ctx->u.des3.cbc[j]; in crypto_cipher_decrypt()
203 os_memcpy(ctx->u.des3.cbc, tmp, 8); in crypto_cipher_decrypt()
216 plain[j] ^= ctx->u.des.cbc[j]; in crypto_cipher_decrypt()
217 os_memcpy(ctx->u.des.cbc, tmp, 8); in crypto_cipher_decrypt()