Lines Matching defs:enc
676 int enc)
683 TEST_note("%s : %s", alg, enc ? "encrypt" : "decrypt");
686 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc))
704 const int enc = 1;
709 tst->ct, tst->ct_len, enc))
713 tst->pt, tst->pt_len, !enc));
723 int enc, int pass)
731 TEST_note("%s : %s : expected to %s", alg, enc ? "encrypt" : "decrypt",
736 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc))
740 enc ? NULL : (void *)tag), 0)
741 || !TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, enc))
754 if (enc) {
781 const int enc = 1;
790 tst->ct, ct_len, tag, tag_len, enc, pass)
794 tst->pt, tst->pt_len, tag, tag_len, !enc, pass)
800 tag - 1, tag_len, !enc, !pass);
810 int enc, int pass)
818 TEST_note("%s : %s : expected to %s", alg, enc ? "encrypt" : "decrypt",
823 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc))
828 if (!enc) {
838 if (!TEST_true(EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, enc))
851 if (enc) {
872 int enc = 1;
879 enc, pass)
884 !enc, pass)
890 !enc, !pass);