Lines Matching defs:encrypt
84 /* Test a single KAT for encrypt/decrypt */
88 int ret = 0, encrypt = 1, len = 0, ct_len = 0, pt_len = 0;
105 if (!cipher_init(ctx, cipher, t, encrypt)
129 if (!(cipher_init(ctx, cipher, t, !encrypt)
528 * Test an encrypt or decrypt KAT..
530 * FIPS 140-2 IG D.9 states that separate KAT tests are needed for encrypt
564 /* Create a EVP_PKEY_CTX to use for the encrypt or decrypt operation */
567 || (t->encrypt && EVP_PKEY_encrypt_init(encctx) <= 0)
568 || (!t->encrypt && EVP_PKEY_decrypt_init(encctx) <= 0))
585 if (t->encrypt) {