Home
last modified time | relevance | path

Searched refs:ct_len (Results 1 – 6 of 6) sorted by relevance

/third_party/openssl/test/
Daesgcmtest.c38 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()
Dacvp_test.c675 const unsigned char *ct, size_t ct_len, in cipher_enc() argument
692 if (!TEST_mem_eq(out, out_len, ct, ct_len)) in cipher_enc()
709 tst->ct, tst->ct_len, enc)) in cipher_enc_dec_test()
710 && TEST_true(cipher_enc(tst->alg, tst->ct, tst->ct_len, in cipher_enc_dec_test()
721 const unsigned char *ct, size_t ct_len, in aes_ccm_enc_dec() argument
758 || !TEST_mem_eq(out, out_len, ct, ct_len) in aes_ccm_enc_dec()
762 if (!TEST_mem_eq(out, out_len + len, ct, ct_len)) in aes_ccm_enc_dec()
778 const size_t tag_len = tst->ct_len - tst->pt_len; in aes_ccm_enc_dec_test()
779 const size_t ct_len = tst->ct_len - tag_len; in aes_ccm_enc_dec_test() local
780 const unsigned char *tag = tst->ct + ct_len; in aes_ccm_enc_dec_test()
[all …]
Dacvp_test.inc709 size_t ct_len;
723 size_t ct_len;
737 size_t ct_len;
1901 size_t ct_len;
/third_party/node/deps/openssl/openssl/providers/fips/
Dself_test_kats.c88 int ret = 0, encrypt = 1, len = 0, ct_len = 0, pt_len = 0; in self_test_cipher() local
108 || !EVP_CipherFinal_ex(ctx, ct_buf + len, &ct_len)) in self_test_cipher()
112 ct_len += len; in self_test_cipher()
113 if (ct_len != (int)t->base.expected_len in self_test_cipher()
114 || memcmp(t->base.expected, ct_buf, ct_len) != 0) in self_test_cipher()
/third_party/openssl/providers/fips/
Dself_test_kats.c88 int ret = 0, encrypt = 1, len = 0, ct_len = 0, pt_len = 0; in self_test_cipher() local
108 || !EVP_CipherFinal_ex(ctx, ct_buf + len, &ct_len)) in self_test_cipher()
112 ct_len += len; in self_test_cipher()
113 if (ct_len != (int)t->base.expected_len in self_test_cipher()
114 || memcmp(t->base.expected, ct_buf, ct_len) != 0) in self_test_cipher()
/third_party/mbedtls/library/
Dssl_tls12_server.c2392 size_t ct_len, sa_len; /* including length bytes */ in ssl_write_certificate_request() local
2436 ct_len = 0; in ssl_write_certificate_request()
2439 p[1 + ct_len++] = MBEDTLS_SSL_CERT_TYPE_RSA_SIGN; in ssl_write_certificate_request()
2442 p[1 + ct_len++] = MBEDTLS_SSL_CERT_TYPE_ECDSA_SIGN; in ssl_write_certificate_request()
2445 p[0] = (unsigned char) ct_len++; in ssl_write_certificate_request()
2446 p += ct_len; in ssl_write_certificate_request()
2547 MBEDTLS_PUT_UINT16_BE(total_dn_size, ssl->out_msg, 4 + ct_len + sa_len); in ssl_write_certificate_request()