Lines Matching refs:ct
873 const unsigned char *ct, size_t ct_len, in cipher_enc() argument
890 if (!TEST_mem_eq(out, out_len, ct, ct_len)) in cipher_enc()
907 tst->ct, tst->ct_len, enc)) in cipher_enc_dec_test()
908 && TEST_true(cipher_enc(tst->alg, tst->ct, tst->ct_len, in cipher_enc_dec_test()
919 const unsigned char *ct, size_t ct_len, in aes_ccm_enc_dec() argument
956 || !TEST_mem_eq(out, out_len, ct, ct_len) in aes_ccm_enc_dec()
960 if (!TEST_mem_eq(out, out_len + len, ct, ct_len)) in aes_ccm_enc_dec()
978 const unsigned char *tag = tst->ct + ct_len; in aes_ccm_enc_dec_test()
988 tst->ct, ct_len, tag, tag_len, enc, pass) in aes_ccm_enc_dec_test()
989 && aes_ccm_enc_dec(tst->alg, tst->ct, ct_len, in aes_ccm_enc_dec_test()
994 && aes_ccm_enc_dec(tst->alg, tst->ct, ct_len, in aes_ccm_enc_dec_test()
1006 const unsigned char *ct, size_t ct_len, in aes_gcm_enc_dec() argument
1051 if ((ct != NULL && !TEST_mem_eq(out, olen, ct, ct_len)) in aes_gcm_enc_dec()
1058 if (ct != NULL && !TEST_mem_eq(out, olen, ct, ct_len)) in aes_gcm_enc_dec()
1101 tst->ct, tst->ct_len, tst->tag, tst->tag_len, in aes_gcm_enc_dec_test()
1103 && aes_gcm_enc_dec(tst->alg, tst->ct, tst->ct_len, in aes_gcm_enc_dec_test()
1109 && aes_gcm_enc_dec(tst->alg, tst->ct, tst->ct_len, in aes_gcm_enc_dec_test()
1517 if (EVP_PKEY_decrypt(ctx, pt, &pt_len, tst->ct, tst->ct_len) <= 0) in rsa_decryption_primitive_test()