/openssl/crypto/asn1/ |
H A D | a_object.c | 221 int tag, xclass; in d2i_ASN1_OBJECT() local 225 inf = ASN1_get_object(&p, &len, &tag, &xclass, length); in d2i_ASN1_OBJECT() 231 if (tag != V_ASN1_OBJECT) { in d2i_ASN1_OBJECT()
|
H A D | a_int.c | 402 int inf, tag, xclass; in d2i_ASN1_UINTEGER() local 413 inf = ASN1_get_object(&p, &len, &tag, &xclass, length); in d2i_ASN1_UINTEGER() 419 if (tag != V_ASN1_INTEGER) { in d2i_ASN1_UINTEGER()
|
/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_gcm_hw_vaes_avx512.inc | 172 static int vaes_gcm_cipherfinal(PROV_GCM_CTX *ctx, unsigned char *tag) 185 memcpy(tag, gcmctx->Xi.c, 190 return !CRYPTO_memcmp(gcmctx->Xi.c, tag, ctx->taglen);
|
H A D | cipher_chacha20_poly1305.h | 23 unsigned char tag[POLY1305_BLOCK_SIZE]; member
|
H A D | cipher_chacha20_poly1305.c | 123 memcpy(p->data, ctx->tag, p->data_size); in chacha20_poly1305_get_ctx_params() 194 memcpy(ctx->tag, p->data, p->data_size); in chacha20_poly1305_set_ctx_params()
|
H A D | ciphercommon_gcm.c | 513 unsigned char *tag = NULL; in gcm_tls_cipher() local 550 tag = ctx->enc ? out + len : (unsigned char *)in + len; in gcm_tls_cipher() 551 if (!ctx->hw->oneshot(ctx, ctx->buf, ctx->tls_aad_len, in, len, out, tag, in gcm_tls_cipher()
|
/openssl/crypto/ts/ |
H A D | ts_conf.c | 113 static void ts_CONF_lookup_fail(const char *name, const char *tag) in ts_CONF_lookup_fail() argument 115 ERR_raise_data(ERR_LIB_TS, TS_R_VAR_LOOKUP_FAILURE, "%s::%s", name, tag); in ts_CONF_lookup_fail() 118 static void ts_CONF_invalid(const char *name, const char *tag) in ts_CONF_invalid() argument 120 ERR_raise_data(ERR_LIB_TS, TS_R_VAR_BAD_VALUE, "%s::%s", name, tag); in ts_CONF_invalid()
|
/openssl/crypto/crmf/ |
H A D | crmf_lib.c | 405 ASN1_INTEGER *tag = NULL; in OSSL_CRMF_MSG_create_popo() local 442 tag = ASN1_INTEGER_new(); in OSSL_CRMF_MSG_create_popo() 445 pp->value.keyEncipherment->value.subsequentMessage = tag; in OSSL_CRMF_MSG_create_popo() 446 if (tag == NULL in OSSL_CRMF_MSG_create_popo() 447 || !ASN1_INTEGER_set(tag, OSSL_CRMF_SUBSEQUENTMESSAGE_ENCRCERT)) in OSSL_CRMF_MSG_create_popo()
|
/openssl/crypto/evp/ |
H A D | e_aria.c | 678 unsigned char tag[16]; in aria_ccm_tls_cipher() local 679 if (CRYPTO_ccm128_tag(ccm, tag, cctx->M)) { in aria_ccm_tls_cipher() 680 if (!CRYPTO_memcmp(tag, in + len, cctx->M)) in aria_ccm_tls_cipher() 744 unsigned char tag[16]; in aria_ccm_cipher() local 745 if (CRYPTO_ccm128_tag(ccm, tag, cctx->M)) { in aria_ccm_cipher() 746 if (!CRYPTO_memcmp(tag, EVP_CIPHER_CTX_buf_noconst(ctx), in aria_ccm_cipher()
|
/openssl/test/ |
H A D | acvp_test.c | 722 const unsigned char *tag, size_t tag_len, in aes_ccm_enc_dec() argument 740 enc ? NULL : (void *)tag), 0) in aes_ccm_enc_dec() 759 || !TEST_mem_eq(out + out_len, tag_len, tag, tag_len)) in aes_ccm_enc_dec() 780 const unsigned char *tag = tst->ct + ct_len; in aes_ccm_enc_dec_test() local 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 830 (void *)tag), 0)) in aes_gcm_enc_dec() 855 || !TEST_mem_eq(out + out_len, tag_len, tag, tag_len)) in aes_gcm_enc_dec() 878 tst->ct, tst->ct_len, tst->tag, tst->tag_len, in aes_gcm_enc_dec_test() [all …]
|
H A D | evp_extra_test.c | 3496 const unsigned char *tag; member 3578 unsigned char tag[16]; in test_evp_init_seq() local 3582 size_t taglen = sizeof(tag); in test_evp_init_seq() 3622 if (t->finalenc == 0 && t->tag != NULL) { in test_evp_init_seq() 3625 t->taglen, (void *)t->tag), 0)) { in test_evp_init_seq() 3638 if (t->finalenc != 0 && t->tag != NULL) { in test_evp_init_seq() 3643 if (!TEST_mem_eq(t->tag, t->taglen, tag, taglen)) { in test_evp_init_seq() 3881 unsigned char tag[16]; in test_gcm_reinit() local 3885 size_t taglen = sizeof(tag); in test_gcm_reinit() 3930 if (!TEST_mem_eq(t->tag1, taglen, tag, taglen)) { in test_gcm_reinit() [all …]
|
H A D | evp_test.c | 554 unsigned char *tag; member 620 OPENSSL_free(cdat->tag); in cipher_test_cleanup() 668 return parse_bin(value, &cdat->tag, &cdat->tag_len); in cipher_test_parse() 783 unsigned char *tag; in cipher_test_enc() local 790 tag = NULL; in cipher_test_enc() 793 tag = expected->tag; in cipher_test_enc() 795 if (tag || expected->aead != EVP_CIPH_GCM_MODE) { in cipher_test_enc() 797 expected->tag_len, tag) <= 0) in cipher_test_enc() 938 expected->tag_len, expected->tag) <= 0) { in cipher_test_enc() 1006 expected->tag, expected->tag_len, in cipher_test_enc() [all …]
|
/openssl/doc/internal/man7/ |
H A D | VERSION.pod | 33 This is the added pre-release tag, which is added to the version separated by 40 the version and possible pre-release tag, separated by a plus sign. For a
|
/openssl/doc/man3/ |
H A D | EVP_aes_128_gcm.pod | 101 128 and 256 bits length respectively. The authentication tag is 160 bits long. 111 HMAC, with keys of 128 and 256 bits length respectively. The authentication tag
|
H A D | EVP_chacha20.pod | 38 (AAD) and produces a 128-bit authentication tag. See the
|
/openssl/apps/ |
H A D | srp.c | 114 static char *lookup_conf(const CONF *conf, const char *section, const char *tag) in lookup_conf() argument 116 char *entry = NCONF_get_string(conf, section, tag); in lookup_conf() 118 BIO_printf(bio_err, "variable lookup failed for %s::%s\n", section, tag); in lookup_conf()
|
H A D | s_client.c | 3450 int tag, xclass, inf, ret = -1; in ldap_ExtendedResponse_parse() local 3483 inf = ASN1_get_object(&cur, &len, &tag, &xclass, rem); in ldap_ExtendedResponse_parse() 3484 if (inf != V_ASN1_CONSTRUCTED || tag != V_ASN1_SEQUENCE || in ldap_ExtendedResponse_parse() 3493 inf = ASN1_get_object(&cur, &len, &tag, &xclass, rem); in ldap_ExtendedResponse_parse() 3494 if (inf != V_ASN1_UNIVERSAL || tag != V_ASN1_INTEGER || in ldap_ExtendedResponse_parse() 3504 inf = ASN1_get_object(&cur, &len, &tag, &xclass, rem); in ldap_ExtendedResponse_parse() 3506 tag != 24) { in ldap_ExtendedResponse_parse() 3513 inf = ASN1_get_object(&cur, &len, &tag, &xclass, rem); in ldap_ExtendedResponse_parse() 3514 if (inf != V_ASN1_UNIVERSAL || tag != V_ASN1_ENUMERATED || len == 0 || in ldap_ExtendedResponse_parse()
|
/openssl/crypto/x509/ |
H A D | v3_cpols.c | 283 int i, ret, len, tag; in notice_section() local 304 tag = displaytext_str2tag(value, &tag_len); in notice_section() 305 if ((not->exptext = ASN1_STRING_type_new(tag)) == NULL) in notice_section()
|
H A D | x_pubkey.c | 130 const ASN1_ITEM *it, int tag, int aclass, in x509_pubkey_ex_d2i_ex() argument 151 tag, aclass, opt, ctx)) <= 0) in x509_pubkey_ex_d2i_ex() 239 const ASN1_ITEM *it, int tag, int aclass) in x509_pubkey_ex_i2d() argument 242 tag, aclass); in x509_pubkey_ex_i2d()
|
/openssl/crypto/cms/ |
H A D | cms_env.c | 1219 ec->tag = aenv->mac->data; in ossl_cms_AuthEnvelopedData_init_bio() 1293 unsigned char *tag = NULL; in ossl_cms_AuthEnvelopedData_final() local 1307 || (tag = OPENSSL_malloc(taglen)) == NULL in ossl_cms_AuthEnvelopedData_final() 1309 tag) <= 0) { in ossl_cms_AuthEnvelopedData_final() 1314 if (!ASN1_OCTET_STRING_set(cms->d.authEnvelopedData->mac, tag, taglen)) in ossl_cms_AuthEnvelopedData_final() 1319 OPENSSL_free(tag); in ossl_cms_AuthEnvelopedData_final()
|
H A D | cms_enc.c | 105 ec->taglen, ec->tag) <= 0) { in ossl_cms_EncryptedContent_init_bio()
|
/openssl/include/crypto/ |
H A D | modes.h | 222 SIV_BLOCK tag; member
|
/openssl/crypto/err/ |
H A D | openssl.txt | 32 ASN1_R_EXPLICIT_TAG_NOT_CONSTRUCTED:120:explicit tag not constructed 41 ASN1_R_ILLEGAL_IMPLICIT_TAG:179:illegal implicit tag 78 ASN1_R_MSTRING_WRONG_TAG:140:mstring wrong tag 117 ASN1_R_UNKNOWN_TAG:194:unknown tag 124 ASN1_R_WRONG_TAG:168:wrong tag 286 CMS_R_CIPHER_AEAD_SET_TAG_ERROR:184:cipher aead set tag error 287 CMS_R_CIPHER_GET_TAG:185:cipher get tag 1031 PROV_R_INVALID_TAG:110:invalid tag 1032 PROV_R_INVALID_TAG_LENGTH:118:invalid tag length 1084 PROV_R_TAG_NOT_NEEDED:120:tag not needed [all …]
|
/openssl/crypto/modes/ |
H A D | ccm128.c | 432 size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len) in CRYPTO_ccm128_tag() argument 440 memcpy(tag, ctx->cmac.c, M); in CRYPTO_ccm128_tag()
|
/openssl/include/openssl/ |
H A D | asn1.h.in | 62 /* ASN.1 tag values */ 95 * the wire tag values. 727 unsigned long ASN1_tag2bit(int tag); 735 int tag, int xclass); 737 int ASN1_object_size(int constructed, int length, int tag); 821 const char *ASN1_tag2str(int tag);
|