Home
last modified time | relevance | path

Searched refs:tag_len (Results 1 – 20 of 20) sorted by relevance

/openssl/test/
H A Daesgcmtest.c39 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 Dacvp_test.c920 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 Devp_test.c890 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 Dacvp_test.inc889 size_t tag_len;
/openssl/crypto/x509/
H A Dv3_cpols.c35 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 Dquic_record_tx.c410 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 Dquic_record_shared.h69 uint32_t tag_len; member
H A Dquic_record_rx.c681 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 Dquic_record_shared.c259 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 Dcipher_chacha20_poly1305.h28 size_t tag_len; member
H A Dciphercommon_gcm_hw.c53 unsigned char *out, unsigned char *tag, size_t tag_len) in ossl_gcm_one_shot() argument
H A Dcipher_chacha20_poly1305.c117 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 Dcipher_chacha20_poly1305_hw.c389 if (CRYPTO_memcmp(temp, ctx->tag, ctx->tag_len)) in chacha20_poly1305_aead_cipher()
/openssl/crypto/cms/
H A Dcms_enc.c175 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 De_chacha20_poly1305.c159 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 Devp_lib.c248 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 Dciphercommon_gcm.h123 unsigned char *out, unsigned char *tag, size_t tag_len);
/openssl/providers/fips/
H A Dself_test_kats.c85 || 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 Dself_test_data.inc72 size_t tag_len;
/openssl/include/crypto/
H A Devp.h575 unsigned int tag_len; member

Completed in 91 milliseconds