Lines Matching full:plain
103 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain, in crypto_cipher_encrypt() argument
110 if (plain != crypt) in crypto_cipher_encrypt()
111 os_memcpy(crypt, plain, len); in crypto_cipher_encrypt()
122 ctx->u.aes.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
126 plain += AES_BLOCK_SIZE; in crypto_cipher_encrypt()
136 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
140 plain += 8; in crypto_cipher_encrypt()
150 ctx->u.des3.cbc[j] ^= plain[j]; in crypto_cipher_encrypt()
154 plain += 8; in crypto_cipher_encrypt()
167 u8 *plain, size_t len) in crypto_cipher_decrypt() argument
174 if (plain != crypt) in crypto_cipher_decrypt()
175 os_memcpy(plain, crypt, len); in crypto_cipher_decrypt()
177 ctx->u.rc4.used_bytes, plain, len); in crypto_cipher_decrypt()
186 aes_decrypt(ctx->u.aes.ctx_dec, crypt, plain); in crypto_cipher_decrypt()
188 plain[j] ^= ctx->u.aes.cbc[j]; in crypto_cipher_decrypt()
190 plain += AES_BLOCK_SIZE; in crypto_cipher_decrypt()
200 des3_decrypt(crypt, &ctx->u.des3.key, plain); in crypto_cipher_decrypt()
202 plain[j] ^= ctx->u.des3.cbc[j]; in crypto_cipher_decrypt()
204 plain += 8; in crypto_cipher_decrypt()
214 des_block_decrypt(crypt, ctx->u.des.dk, plain); in crypto_cipher_decrypt()
216 plain[j] ^= ctx->u.des.cbc[j]; in crypto_cipher_decrypt()
218 plain += 8; in crypto_cipher_decrypt()