Lines Matching refs:AES_BLOCK_SIZE
76 os_memcpy(ctx->u.aes.cbc, iv, AES_BLOCK_SIZE); in crypto_cipher_init()
117 if (len % AES_BLOCK_SIZE) in crypto_cipher_encrypt()
119 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_encrypt()
121 for (j = 0; j < AES_BLOCK_SIZE; j++) in crypto_cipher_encrypt()
125 os_memcpy(crypt, ctx->u.aes.cbc, AES_BLOCK_SIZE); in crypto_cipher_encrypt()
126 plain += AES_BLOCK_SIZE; in crypto_cipher_encrypt()
127 crypt += AES_BLOCK_SIZE; in crypto_cipher_encrypt()
181 if (len % AES_BLOCK_SIZE) in crypto_cipher_decrypt()
183 blocks = len / AES_BLOCK_SIZE; in crypto_cipher_decrypt()
185 os_memcpy(tmp, crypt, AES_BLOCK_SIZE); in crypto_cipher_decrypt()
187 for (j = 0; j < AES_BLOCK_SIZE; j++) in crypto_cipher_decrypt()
189 os_memcpy(ctx->u.aes.cbc, tmp, AES_BLOCK_SIZE); in crypto_cipher_decrypt()
190 plain += AES_BLOCK_SIZE; in crypto_cipher_decrypt()
191 crypt += AES_BLOCK_SIZE; in crypto_cipher_decrypt()