/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 | 722 const unsigned char *tag, size_t tag_len, in aes_ccm_enc_dec() argument 757 tag_len, out + out_len), 0) in aes_ccm_enc_dec() 759 || !TEST_mem_eq(out + out_len, tag_len, tag, tag_len)) in aes_ccm_enc_dec() 778 const size_t tag_len = tst->ct_len - tst->pt_len; in aes_ccm_enc_dec_test() local 779 const size_t ct_len = tst->ct_len - tag_len; in aes_ccm_enc_dec_test() 790 tst->ct, ct_len, tag, tag_len, enc, pass) in aes_ccm_enc_dec_test() 800 tag - 1, tag_len, !enc, !pass); in aes_ccm_enc_dec_test() 809 const unsigned char *tag, size_t tag_len, in aes_gcm_enc_dec() argument 854 tag_len, out + out_len), 0) in aes_gcm_enc_dec() 855 || !TEST_mem_eq(out + out_len, tag_len, tag, tag_len)) in aes_gcm_enc_dec() [all …]
|
H A D | evp_test.c | 556 size_t tag_len; member 668 return parse_bin(value, &cdat->tag, &cdat->tag_len); in cipher_test_parse() 797 expected->tag_len, tag) <= 0) in cipher_test_enc() 938 expected->tag_len, expected->tag) <= 0) { in cipher_test_enc() 996 if (!TEST_size_t_le(expected->tag_len, sizeof(rtag))) { in cipher_test_enc() 1001 expected->tag_len, rtag) <= 0) { in cipher_test_enc() 1006 expected->tag, expected->tag_len, in cipher_test_enc() 1007 rtag, expected->tag_len)) in cipher_test_enc()
|
H A D | acvp_test.inc | 739 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); 254 static int displaytext_str2tag(const char *tagstr, unsigned int *tag_len) in displaytext_str2tag() argument 258 *tag_len = 0; in displaytext_str2tag() 263 *tag_len = len; in displaytext_str2tag() 276 *tag_len = 0; in displaytext_str2tag() 284 unsigned int tag_len; in notice_section() local 304 tag = displaytext_str2tag(value, &tag_len); in notice_section() 307 if (tag_len != 0) in notice_section() 308 value += tag_len + 1; in notice_section()
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_chacha20_poly1305.h | 28 size_t tag_len, nonce_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 | 99 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tag_len)) { in chacha20_poly1305_get_ctx_params() 196 ctx->tag_len = p->data_size; in chacha20_poly1305_set_ctx_params()
|
H A D | cipher_chacha20_poly1305_hw.c | 391 if (CRYPTO_memcmp(temp, ctx->tag, ctx->tag_len)) in chacha20_poly1305_aead_cipher()
|
/openssl/crypto/cms/ |
H A D | cms_enc.c | 172 aparams.tag_len = EVP_CIPHER_CTX_get_tag_length(ctx); in ossl_cms_EncryptedContent_init_bio() 173 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 | 269 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 | 124 unsigned char *out, unsigned char *tag, size_t tag_len);
|
/openssl/providers/fips/ |
H A D | self_test_kats.c | 77 || EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, t->tag_len, in cipher_init() 120 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, t->tag_len, in self_test_cipher() 122 || memcmp(tag, t->tag, t->tag_len) != 0) in self_test_cipher()
|
H A D | self_test_data.inc | 58 size_t tag_len;
|
/openssl/include/crypto/ |
H A D | evp.h | 570 unsigned int tag_len; member
|