Lines Matching refs:pt_len
672 const unsigned char *pt, size_t pt_len,
688 || !TEST_true(EVP_CipherUpdate(ctx, out, &len, pt, pt_len))
706 return TEST_true(cipher_enc(tst->alg, tst->pt, tst->pt_len,
713 tst->pt, tst->pt_len, !enc));
717 const unsigned char *pt, size_t pt_len,
743 || !TEST_true(EVP_CipherUpdate(ctx, NULL, &len, NULL, pt_len))
745 || !TEST_int_eq(EVP_CipherUpdate(ctx, out, &len, pt, pt_len), pass))
778 const size_t tag_len = tst->ct_len - tst->pt_len;
787 return aes_ccm_enc_dec(tst->alg, tst->pt, tst->pt_len,
794 tst->pt, tst->pt_len, tag, tag_len, !enc, pass)
799 tst->pt, tst->pt_len,
804 const unsigned char *pt, size_t pt_len,
841 || !TEST_true(EVP_CipherUpdate(ctx, out, &len, pt, pt_len)))
875 return aes_gcm_enc_dec(tst->alg, tst->pt, tst->pt_len,
883 tst->pt, tst->pt_len, tst->tag, tst->tag_len,
889 tst->pt, tst->pt_len, tst->aad, tst->tag_len,
1248 size_t pt_len = sizeof(pt);
1264 if (EVP_PKEY_decrypt(ctx, pt, &pt_len, tst->ct, tst->ct_len) <= 0)
1267 test_output_memory("pt", pt, pt_len);