Searched refs:ct_len (Results 1 – 4 of 4) sorted by relevance
/openssl/test/ |
H A D | aesgcmtest.c | 38 static int do_encrypt(unsigned char *iv_gen, unsigned char *ct, int *ct_len, in do_encrypt() argument 54 && TEST_true(EVP_EncryptUpdate(ctx, ct, ct_len, gcm_pt, in do_encrypt() 67 int ct_len, const unsigned char *tag, int tag_len) in do_decrypt() argument 83 ct_len) > 0) in do_decrypt()
|
H A D | acvp_test.c | 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() 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() 989 && aes_ccm_enc_dec(tst->alg, tst->ct, ct_len, in aes_ccm_enc_dec_test() [all …]
|
H A D | acvp_test.inc | 859 size_t ct_len; 873 size_t ct_len; 887 size_t ct_len; 2051 size_t ct_len;
|
/openssl/providers/fips/ |
H A D | self_test_kats.c | 96 int ret = 0, encrypt = 1, len = 0, ct_len = 0, pt_len = 0; in self_test_cipher() local 116 || !EVP_CipherFinal_ex(ctx, ct_buf + len, &ct_len)) in self_test_cipher() 120 ct_len += len; in self_test_cipher() 121 if (ct_len != (int)t->base.expected_len in self_test_cipher() 122 || memcmp(t->base.expected, ct_buf, ct_len) != 0) in self_test_cipher()
|
Completed in 14 milliseconds