/openssl/test/ |
H A D | aesgcmtest.c | 39 unsigned char *tag, int *tag_len) in do_encrypt() argument 46 *tag_len = 16; in do_encrypt() 67 int ct_len, const unsigned char *tag, int tag_len) in do_decrypt() argument 85 tag_len, (void *)tag) > 0) in do_decrypt()
|
H A D | acvp_test.c | 920 const unsigned char *tag, size_t tag_len, in aes_ccm_enc_dec() argument 955 tag_len, out + out_len), 0) in aes_ccm_enc_dec() 957 || !TEST_mem_eq(out + out_len, tag_len, tag, tag_len)) in aes_ccm_enc_dec() 976 const size_t tag_len = tst->ct_len - tst->pt_len; in aes_ccm_enc_dec_test() local 977 const size_t ct_len = tst->ct_len - tag_len; in aes_ccm_enc_dec_test() 988 tst->ct, ct_len, tag, tag_len, enc, pass) in aes_ccm_enc_dec_test() 998 tag - 1, tag_len, !enc, !pass); in aes_ccm_enc_dec_test() 1007 const unsigned char *tag, size_t tag_len, in aes_gcm_enc_dec() argument 1055 && !TEST_mem_eq(out + olen, tag_len, tag, tag_len))) in aes_gcm_enc_dec() 1101 tst->ct, tst->ct_len, tst->tag, tst->tag_len, in aes_gcm_enc_dec_test() [all …]
|
H A D | evp_test.c | 890 size_t tag_len; member 1033 return parse_bin(value, &cdat->tag, &cdat->tag_len); in cipher_test_parse() 1171 expected->tag_len, tag) <= 0) in cipher_test_enc() 1340 expected->tag_len, expected->tag) <= 0) { in cipher_test_enc() 1424 if (!TEST_size_t_le(expected->tag_len, sizeof(rtag))) { in cipher_test_enc() 1429 expected->tag_len, rtag) <= 0) { in cipher_test_enc() 1434 expected->tag, expected->tag_len, in cipher_test_enc() 1435 rtag, expected->tag_len)) in cipher_test_enc()
|
H A D | acvp_test.inc | 889 size_t tag_len;
|
/openssl/crypto/x509/ |
H A D | v3_cpols.c | 35 static int displaytext_str2tag(const char *tagstr, unsigned int *tag_len); 263 static int displaytext_str2tag(const char *tagstr, unsigned int *tag_len) in displaytext_str2tag() argument 267 *tag_len = 0; in displaytext_str2tag() 272 *tag_len = len; in displaytext_str2tag() 285 *tag_len = 0; in displaytext_str2tag() 293 unsigned int tag_len; in notice_section() local 317 tag = displaytext_str2tag(value, &tag_len); in notice_section() 322 if (tag_len != 0) in notice_section() 323 value += tag_len + 1; in notice_section()
|
/openssl/ssl/quic/ |
H A D | quic_record_tx.c | 410 size_t tag_len; in ossl_qtx_calculate_ciphertext_payload_len() local 421 tag_len = ossl_qrl_get_suite_cipher_tag_len(el->suite_id); in ossl_qtx_calculate_ciphertext_payload_len() 423 *ciphertext_len = plaintext_len + tag_len; in ossl_qtx_calculate_ciphertext_payload_len() 434 size_t tag_len; in ossl_qtx_calculate_plaintext_payload_len() local 441 tag_len = ossl_qrl_get_suite_cipher_tag_len(el->suite_id); in ossl_qtx_calculate_plaintext_payload_len() 443 if (ciphertext_len <= tag_len) { in ossl_qtx_calculate_plaintext_payload_len() 448 *plaintext_len = ciphertext_len - tag_len; in ossl_qtx_calculate_plaintext_payload_len() 580 el->tag_len, txe_data(txe) + txe->data_len) != 1) { in qtx_encrypt_into_txe() 585 txe->data_len += el->tag_len; in qtx_encrypt_into_txe()
|
H A D | quic_record_shared.h | 69 uint32_t tag_len; member
|
H A D | quic_record_rx.c | 681 if (el->tag_len >= src_len) in qrx_decrypt_pkt_body() 727 el->tag_len, in qrx_decrypt_pkt_body() 728 (unsigned char *)src + src_len - el->tag_len) != 1) in qrx_decrypt_pkt_body() 736 if (EVP_CipherUpdate(cctx, dst, &l, src, src_len - el->tag_len) != 1) in qrx_decrypt_pkt_body()
|
H A D | quic_record_shared.c | 259 el->tag_len = ossl_qrl_get_suite_cipher_tag_len(suite_id); in ossl_qrl_enc_level_set_provide_secret()
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_chacha20_poly1305.h | 28 size_t tag_len; member
|
H A D | ciphercommon_gcm_hw.c | 53 unsigned char *out, unsigned char *tag, size_t tag_len) in ossl_gcm_one_shot() argument
|
H A D | cipher_chacha20_poly1305.c | 117 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tag_len)) { in chacha20_poly1305_get_ctx_params() 213 ctx->tag_len = p->data_size; in chacha20_poly1305_set_ctx_params()
|
H A D | cipher_chacha20_poly1305_hw.c | 389 if (CRYPTO_memcmp(temp, ctx->tag, ctx->tag_len)) in chacha20_poly1305_aead_cipher()
|
/openssl/crypto/cms/ |
H A D | cms_enc.c | 175 aparams.tag_len = EVP_CIPHER_CTX_get_tag_length(ctx); in ossl_cms_EncryptedContent_init_bio() 176 if (aparams.tag_len <= 0) in ossl_cms_EncryptedContent_init_bio()
|
/openssl/crypto/evp/ |
H A D | e_chacha20_poly1305.c | 159 int aad, mac_inited, tag_len, nonce_len; member 481 if (CRYPTO_memcmp(temp, actx->tag, actx->tag_len)) in chacha20_poly1305_cipher() 514 actx->tag_len = 0; in chacha20_poly1305_ctrl() 559 actx->tag_len = arg; in chacha20_poly1305_ctrl()
|
H A D | evp_lib.c | 248 return ossl_asn1_type_set_octetstring_int(type, asn1_params->tag_len, in evp_cipher_set_asn1_aead_params()
|
/openssl/providers/implementations/include/prov/ |
H A D | ciphercommon_gcm.h | 123 unsigned char *out, unsigned char *tag, size_t tag_len);
|
/openssl/providers/fips/ |
H A D | self_test_kats.c | 85 || EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, t->tag_len, in cipher_init() 128 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, t->tag_len, in self_test_cipher() 130 || memcmp(tag, t->tag, t->tag_len) != 0) in self_test_cipher()
|
H A D | self_test_data.inc | 72 size_t tag_len;
|
/openssl/include/crypto/ |
H A D | evp.h | 575 unsigned int tag_len; member
|