/openssl/crypto/ |
H A D | der_writer.c | 18 if (tag < 0) in int_start_context() 20 if (!ossl_assert(tag <= 30)) in int_start_context() 37 if (tag < 0) in int_end_context() 39 if (!ossl_assert(tag <= 30)) in int_end_context() 55 return int_start_context(pkt, tag) in ossl_DER_w_precompiled() 57 && int_end_context(pkt, tag); in ossl_DER_w_precompiled() 62 return int_start_context(pkt, tag) in ossl_DER_w_boolean() 67 && int_end_context(pkt, tag); in ossl_DER_w_boolean() 73 return int_start_context(pkt, tag) in ossl_DER_w_octet_string() 78 && int_end_context(pkt, tag); in ossl_DER_w_octet_string() [all …]
|
H A D | asn1_dsa.c | 190 unsigned int tag, tmp; in ossl_decode_der_integer() local 193 if (!PACKET_get_1(pkt, &tag) in ossl_decode_der_integer() 194 || tag != ID_INTEGER in ossl_decode_der_integer() 238 unsigned int tag; in ossl_decode_der_dsa_sig() local 241 || !PACKET_get_1(&pkt, &tag) in ossl_decode_der_dsa_sig() 242 || tag != ID_SEQUENCE in ossl_decode_der_dsa_sig()
|
/openssl/crypto/asn1/ |
H A D | asn1_parse.c | 68 else if (tag > 30) in asn1_print_info() 71 p = ASN1_tag2str(tag); in asn1_print_info() 99 int tag, xclass, ret = 0; in asn1_parse2() local 173 (tag == V_ASN1_T61STRING) || in asn1_parse2() 174 (tag == V_ASN1_IA5STRING) || in asn1_parse2() 178 (tag == V_ASN1_UTCTIME) || (tag == V_ASN1_GENERALIZEDTIME)) { in asn1_parse2() 360 const char *ASN1_tag2str(int tag) in ASN1_tag2str() argument 381 if ((tag == V_ASN1_NEG_INTEGER) || (tag == V_ASN1_NEG_ENUMERATED)) in ASN1_tag2str() 382 tag &= ~0x100; in ASN1_tag2str() 384 if (tag < 0 || tag > 30) in ASN1_tag2str() [all …]
|
H A D | tasn_enc.c | 111 if (tag != -1) { in ASN1_item_ex_i2d() 122 if (tag != -1) { in ASN1_item_ex_i2d() 163 if (tag == -1) { in ASN1_item_ex_i2d() 164 tag = V_ASN1_SEQUENCE; in ASN1_item_ex_i2d() 238 if (tag != -1) in asn1_template_ex_i2d() 242 ttag = tt->tag; in asn1_template_ex_i2d() 244 } else if (tag != -1) { in asn1_template_ex_i2d() 246 ttag = tag; in asn1_template_ex_i2d() 501 if (tag == -1) in asn1_i2d_ex_primitive() 502 tag = utype; in asn1_i2d_ex_primitive() [all …]
|
H A D | asn1_lib.c | 52 int tag, xclass, inf; in ASN1_get_object() local 77 tag = (int)len; in ASN1_get_object() 81 tag = i; in ASN1_get_object() 86 *ptag = tag; in ASN1_get_object() 168 if (tag < 31) { in ASN1_put_object() 172 for (i = 0, ttag = tag; ttag > 0; i++) in ASN1_put_object() 176 p[i] = tag & 0x7f; in ASN1_put_object() 179 tag >>= 7; in ASN1_put_object() 228 if (tag >= 31) { in ASN1_object_size() 229 while (tag > 0) { in ASN1_object_size() [all …]
|
H A D | tasn_dec.c | 89 if ((tag < 0) || (tag > 30)) in ASN1_tag2bit() 91 return tag2bit[tag]; in ASN1_tag2bit() 225 if (tag != -1) { in asn1_item_embed_d2i() 271 if (tag != -1) { in asn1_item_embed_d2i() 341 if (tag == -1) { in asn1_item_embed_d2i() 600 sktag = tt->tag; in asn1_template_noexp_d2i() 717 utype = tag; in asn1_d2i_ex_primitive() 718 tag = -1; in asn1_d2i_ex_primitive() 725 if (tag >= 0) { in asn1_d2i_ex_primitive() 743 if (tag == -1) { in asn1_d2i_ex_primitive() [all …]
|
/openssl/include/internal/ |
H A D | der.h | 76 int ossl_DER_w_precompiled(WPACKET *pkt, int tag, 80 int ossl_DER_w_boolean(WPACKET *pkt, int tag, int b); 81 int ossl_DER_w_uint32(WPACKET *pkt, int tag, uint32_t v); 82 int ossl_DER_w_bn(WPACKET *pkt, int tag, const BIGNUM *v); 83 int ossl_DER_w_null(WPACKET *pkt, int tag); 84 int ossl_DER_w_octet_string(WPACKET *pkt, int tag, 86 int ossl_DER_w_octet_string_uint32(WPACKET *pkt, int tag, uint32_t value); 91 int ossl_DER_w_begin_sequence(WPACKET *pkt, int tag); 92 int ossl_DER_w_end_sequence(WPACKET *pkt, int tag);
|
/openssl/test/ |
H A D | aesgcmtest.c | 39 unsigned char *tag, int *tag_len) in do_encrypt() argument 59 tag) > 0) 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() 95 unsigned char tag[32]; in kat_test() local 99 return do_encrypt(NULL, ct, &ctlen, tag, &taglen) in kat_test() 101 && TEST_mem_eq(gcm_tag, sizeof(gcm_tag), tag, taglen) in kat_test() 102 && do_decrypt(gcm_iv, ct, ctlen, tag, taglen); in kat_test() 122 unsigned char tag[32]; in ivgen_test() local 126 return do_encrypt(iv_gen, ct, &ctlen, tag, &taglen) in ivgen_test() [all …]
|
/openssl/providers/implementations/ciphers/ |
H A D | ciphercommon_ccm_hw.c | 26 int ossl_ccm_generic_gettag(PROV_CCM_CTX *ctx, unsigned char *tag, size_t tlen) in ossl_ccm_generic_gettag() argument 28 return CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, tlen) > 0; in ossl_ccm_generic_gettag() 33 unsigned char *tag, size_t taglen) in ossl_ccm_generic_auth_encrypt() argument 43 if (rv == 1 && tag != NULL) in ossl_ccm_generic_auth_encrypt() 44 rv = (CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, taglen) > 0); in ossl_ccm_generic_auth_encrypt() 60 unsigned char tag[16]; in ossl_ccm_generic_auth_decrypt() local 62 if (!CRYPTO_ccm128_tag(&ctx->ccm_ctx, tag, taglen) in ossl_ccm_generic_auth_decrypt() 63 || CRYPTO_memcmp(tag, expected_tag, taglen) != 0) in ossl_ccm_generic_auth_decrypt()
|
H A D | ciphercommon_gcm_hw.c | 39 int ossl_gcm_cipher_final(PROV_GCM_CTX *ctx, unsigned char *tag) in ossl_gcm_cipher_final() argument 42 CRYPTO_gcm128_tag(&ctx->gcm, tag, GCM_TAG_MAX_SIZE); in ossl_gcm_cipher_final() 45 if (CRYPTO_gcm128_finish(&ctx->gcm, tag, ctx->taglen) != 0) in ossl_gcm_cipher_final() 53 unsigned char *out, unsigned char *tag, size_t tag_len) in ossl_gcm_one_shot() argument 63 if (!ctx->hw->cipherfinal(ctx, tag)) in ossl_gcm_one_shot()
|
H A D | cipher_aes_gcm_siv_polyval.c | 78 void ossl_polyval_ghash_hash(const u128 Htable[16], uint8_t *tag, const uint8_t *inp, size_t len) in ossl_polyval_ghash_hash() argument 84 byte_reverse16((uint8_t *)out, (uint8_t *)tag); in ossl_polyval_ghash_hash() 94 byte_reverse16(tag, (uint8_t *)out); in ossl_polyval_ghash_hash()
|
/openssl/include/openssl/ |
H A D | asn1t.h.in | 358 (flags), (tag), 0,\ 392 # define ASN1_IMP(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, 0) argument 393 # define ASN1_IMP_EMBED(stname, field, type, tag) ASN1_IMP_EX(stname, field, type, tag, ASN1_TFLG_E… argument 401 # define ASN1_EXP(stname, field, type, tag) ASN1_EXP_EX(stname, field, type, tag, 0) argument 492 long tag; /* tag, not used if no tagging */ member 543 * These flags mean the tag should be taken from the tag field. If EXPLICIT 567 /* Universal tag */ 569 /* Application tag */ 571 /* Context specific tag */ 573 /* Private tag */ [all …]
|
/openssl/providers/common/der/ |
H A D | der_rsa_key.c | 247 static int DER_w_MaskGenAlgorithm(WPACKET *pkt, int tag, in DER_w_MaskGenAlgorithm() argument 272 return ossl_DER_w_precompiled(pkt, tag, maskgenalg, maskgenalg_sz); in DER_w_MaskGenAlgorithm() 283 int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag, in ossl_DER_w_RSASSA_PSS_params() argument 348 return ossl_DER_w_begin_sequence(pkt, tag) in ossl_DER_w_RSASSA_PSS_params() 355 && ossl_DER_w_end_sequence(pkt, tag); in ossl_DER_w_RSASSA_PSS_params() 367 int ossl_DER_w_algorithmIdentifier_RSA_PSS(WPACKET *pkt, int tag, in ossl_DER_w_algorithmIdentifier_RSA_PSS() argument 385 return ossl_DER_w_begin_sequence(pkt, tag) in ossl_DER_w_algorithmIdentifier_RSA_PSS() 390 && ossl_DER_w_end_sequence(pkt, tag); in ossl_DER_w_algorithmIdentifier_RSA_PSS() 393 int ossl_DER_w_algorithmIdentifier_RSA(WPACKET *pkt, int tag, RSA *rsa) in ossl_DER_w_algorithmIdentifier_RSA() argument 398 return ossl_DER_w_algorithmIdentifier_RSA_PSS(pkt, tag, rsa_type, in ossl_DER_w_algorithmIdentifier_RSA()
|
H A D | der_dsa_key.c | 20 int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa) in ossl_DER_w_algorithmIdentifier_DSA() argument 22 return ossl_DER_w_begin_sequence(pkt, tag) in ossl_DER_w_algorithmIdentifier_DSA() 26 && ossl_DER_w_end_sequence(pkt, tag); in ossl_DER_w_algorithmIdentifier_DSA()
|
H A D | der_dsa_sig.c | 26 int ossl_DER_w_algorithmIdentifier_DSA_with_MD(WPACKET *pkt, int tag, in ossl_DER_w_algorithmIdentifier_DSA_with_MD() argument 46 return ossl_DER_w_begin_sequence(pkt, tag) in ossl_DER_w_algorithmIdentifier_DSA_with_MD() 49 && ossl_DER_w_end_sequence(pkt, tag); in ossl_DER_w_algorithmIdentifier_DSA_with_MD()
|
H A D | der_rsa_sig.c | 33 int ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption(WPACKET *pkt, int tag, in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption() argument 67 return ossl_DER_w_begin_sequence(pkt, tag) in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption() 72 && ossl_DER_w_end_sequence(pkt, tag); in ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption()
|
/openssl/util/ |
H A D | cavs-to-evptest.pl | 22 my $tag = ""; 73 $tag = substr($2, $taglen * -2); 100 print " $tag"; 117 $tag = "";
|
/openssl/doc/internal/man3/ |
H A D | ossl_DER_w_bn.pod | 13 int ossl_DER_w_boolean(WPACKET *pkt, int tag, int b); 14 int ossl_DER_w_uint32(WPACKET *pkt, int tag, uint32_t v); 15 int ossl_DER_w_bn(WPACKET *pkt, int tag, const BIGNUM *v); 16 int ossl_DER_w_null(WPACKET *pkt, int tag); 17 int ossl_DER_w_octet_string(WPACKET *pkt, int tag, 19 int ossl_DER_w_octet_string_uint32(WPACKET *pkt, int tag, uint32_t value); 51 I<tag> value being too large for the implementation.
|
H A D | ossl_DER_w_begin_sequence.pod | 12 int ossl_DER_w_begin_sequence(WPACKET *pkt, int tag); 13 int ossl_DER_w_end_sequence(WPACKET *pkt, int tag); 22 When using these, special care must be taken to ensure that the ASN.1 tag 23 value I<tag> is the same in the matching C<begin> and C<end> function calls. 33 I<tag> value being too large for the implementation.
|
/openssl/providers/implementations/include/prov/ |
H A D | ciphercommon_ccm.h | 64 unsigned char *tag, size_t taglen)); 68 unsigned char *tag, size_t taglen)); 70 unsigned char *tag, size_t taglen)); 98 int ossl_ccm_generic_gettag(PROV_CCM_CTX *ctx, unsigned char *tag, size_t tlen); 101 unsigned char *tag, size_t taglen);
|
H A D | ciphercommon_gcm.h | 93 PROV_CIPHER_FUNC(int, GCM_cipherfinal, (PROV_GCM_CTX *ctx, unsigned char *tag)); 97 unsigned char *tag, size_t taglen)); 120 int ossl_gcm_cipher_final(PROV_GCM_CTX *ctx, unsigned char *tag); 123 unsigned char *out, unsigned char *tag, size_t tag_len);
|
/openssl/crypto/modes/ |
H A D | siv128.c | 287 memcpy(ctx->tag.byte, &q, SIV_LEN); in ossl_siv128_encrypt() 313 memcpy(&q, ctx->tag.byte, SIV_LEN); in ossl_siv128_decrypt() 321 p = ctx->tag.byte; in ossl_siv128_decrypt() 344 int ossl_siv128_set_tag(SIV128_CONTEXT *ctx, const unsigned char *tag, size_t len) in ossl_siv128_set_tag() argument 350 memcpy(ctx->tag.byte, tag, len); in ossl_siv128_set_tag() 357 int ossl_siv128_get_tag(SIV128_CONTEXT *ctx, unsigned char *tag, size_t len) in ossl_siv128_get_tag() argument 363 memcpy(tag, ctx->tag.byte, len); in ossl_siv128_get_tag() 380 OPENSSL_cleanse(&ctx->tag, sizeof(ctx->tag)); in ossl_siv128_cleanup()
|
/openssl/providers/common/include/prov/ |
H A D | der_rsa.h.in | 24 int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag, 27 int ossl_DER_w_algorithmIdentifier_RSA(WPACKET *pkt, int tag, RSA *rsa); 28 int ossl_DER_w_algorithmIdentifier_RSA_PSS(WPACKET *pkt, int tag, 32 int ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption(WPACKET *pkt, int tag,
|
/openssl/doc/internal/man7/ |
H A D | DERlib.pod | 17 int DER_w_something(WPACKET *pkt, int tag, ...); 23 int DER_r_something(PACKET *pkt, int tag, ...); 27 I<pkt> is the packet context used, and I<tag> should be the 28 context-specific tag value of the element being handled, or -1 if there 29 is no tag number for that element (you may use the convenience macro 58 As an example of the use of I<tag>, an ASN.1 element like this: 116 int tag, 119 return ossl_DER_w_begin_sequence(pkt, tag) 132 && ossl_DER_w_end_sequence(pkt, tag);
|
/openssl/crypto/ffc/ |
H A D | ffc_dh.c | 32 # define RFC5114(name, uid, sz, tag) { \ argument 36 &ossl_bignum_dh##tag##_p, &ossl_bignum_dh##tag##_q, \ 37 &ossl_bignum_dh##tag##_g \ 44 # define RFC5114(name, uid, sz, tag) { name, uid } argument
|