Lines Matching full:plain
309 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt)
313 if (EVP_EncryptUpdate(c, crypt, &clen, plain, 16) != 1) {
363 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain)
367 if (EVP_DecryptUpdate(c, plain, &plen, crypt, 16) != 1) {
396 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher)
405 res = AES_wrap_key(&actx, NULL, cipher, plain, n * 8);
412 u8 *plain)
421 res = AES_unwrap_key(&actx, NULL, plain, cipher, (n + 1) * 8);
613 int crypto_cipher_encrypt(struct crypto_cipher *ctx, const u8 *plain,
617 if (!EVP_EncryptUpdate(ctx->enc, crypt, &outl, plain, len))
624 u8 *plain, size_t len)
628 if (!EVP_DecryptUpdate(ctx->dec, plain, &outl, crypt, len))