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