Lines Matching refs:crypt
328 int aes_encrypt(void *ctx, const u8 *plain, u8 *crypt) in aes_encrypt() argument
330 wc_AesEncryptDirect(ctx, crypt, plain); in aes_encrypt()
361 int aes_decrypt(void *ctx, const u8 *crypt, u8 *plain) in aes_decrypt() argument
363 wc_AesDecryptDirect(ctx, plain, crypt); in aes_decrypt()
545 u8 *crypt, size_t len) in crypto_cipher_encrypt() argument
551 wc_Arc4Process(&ctx->enc.arc4, crypt, plain, len); in crypto_cipher_encrypt()
557 if (wc_AesCbcEncrypt(&ctx->enc.aes, crypt, plain, len) != 0) in crypto_cipher_encrypt()
563 if (wc_Des3_CbcEncrypt(&ctx->enc.des3, crypt, plain, len) != 0) in crypto_cipher_encrypt()
574 int crypto_cipher_decrypt(struct crypto_cipher *ctx, const u8 *crypt, in crypto_cipher_decrypt() argument
581 wc_Arc4Process(&ctx->dec.arc4, plain, crypt, len); in crypto_cipher_decrypt()
587 if (wc_AesCbcDecrypt(&ctx->dec.aes, plain, crypt, len) != 0) in crypto_cipher_decrypt()
593 if (wc_Des3_CbcDecrypt(&ctx->dec.des3, plain, crypt, len) != 0) in crypto_cipher_decrypt()