Lines Matching refs:ct_len

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()
976 const size_t tag_len = tst->ct_len - tst->pt_len; in aes_ccm_enc_dec_test()
977 const size_t ct_len = tst->ct_len - tag_len; in aes_ccm_enc_dec_test() local
978 const unsigned char *tag = tst->ct + ct_len; in aes_ccm_enc_dec_test()
982 if (ct_len < 1) 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()
1128 NULL, tst->ct_len, NULL, tst->tag_len, in aes_gcm_gen_iv_internal_test()
1517 if (EVP_PKEY_decrypt(ctx, pt, &pt_len, tst->ct, tst->ct_len) <= 0) in rsa_decryption_primitive_test()