Lines Matching refs:pt_len

870                       const unsigned char *pt, size_t pt_len,  in cipher_enc()  argument
886 || !TEST_true(EVP_CipherUpdate(ctx, out, &len, pt, pt_len)) in cipher_enc()
904 return TEST_true(cipher_enc(tst->alg, tst->pt, tst->pt_len, in cipher_enc_dec_test()
911 tst->pt, tst->pt_len, !enc)); in cipher_enc_dec_test()
915 const unsigned char *pt, size_t pt_len, in aes_ccm_enc_dec() argument
941 || !TEST_true(EVP_CipherUpdate(ctx, NULL, &len, NULL, pt_len)) in aes_ccm_enc_dec()
943 || !TEST_int_eq(EVP_CipherUpdate(ctx, out, &len, pt, pt_len), pass)) in aes_ccm_enc_dec()
976 const size_t tag_len = tst->ct_len - tst->pt_len; in aes_ccm_enc_dec_test()
985 return aes_ccm_enc_dec(tst->alg, tst->pt, tst->pt_len, in aes_ccm_enc_dec_test()
992 tst->pt, tst->pt_len, tag, tag_len, !enc, pass) in aes_ccm_enc_dec_test()
997 tst->pt, tst->pt_len, in aes_ccm_enc_dec_test()
1002 const unsigned char *pt, size_t pt_len, in aes_gcm_enc_dec() argument
1040 || !TEST_true(EVP_CipherUpdate(ctx, out, &len, pt, pt_len))) in aes_gcm_enc_dec()
1098 return aes_gcm_enc_dec(tst->alg, tst->pt, tst->pt_len, in aes_gcm_enc_dec_test()
1106 tst->pt, tst->pt_len, tst->tag, tst->tag_len, in aes_gcm_enc_dec_test()
1112 tst->pt, tst->pt_len, tst->aad, tst->tag_len, in aes_gcm_enc_dec_test()
1125 return aes_gcm_enc_dec(tst->alg, tst->pt, tst->pt_len, in aes_gcm_gen_iv_internal_test()
1133 tst->pt, tst->pt_len, out + out_len, tst->tag_len, in aes_gcm_gen_iv_internal_test()
1501 size_t pt_len = sizeof(pt); in rsa_decryption_primitive_test() local
1517 if (EVP_PKEY_decrypt(ctx, pt, &pt_len, tst->ct, tst->ct_len) <= 0) in rsa_decryption_primitive_test()
1520 test_output_memory("pt", pt, pt_len); in rsa_decryption_primitive_test()