Home
last modified time | relevance | path

Searched refs:oid_len (Results 1 – 25 of 69) sorted by relevance

123

/external/mbedtls/include/mbedtls/
Dpsa_util.h173 char const **oid, size_t *oid_len ) in mbedtls_psa_get_ecc_oid_from_id() argument
183 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192R1 ); in mbedtls_psa_get_ecc_oid_from_id()
189 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224R1 ); in mbedtls_psa_get_ecc_oid_from_id()
195 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256R1 ); in mbedtls_psa_get_ecc_oid_from_id()
201 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP384R1 ); in mbedtls_psa_get_ecc_oid_from_id()
207 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP521R1 ); in mbedtls_psa_get_ecc_oid_from_id()
218 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192K1 ); in mbedtls_psa_get_ecc_oid_from_id()
224 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224K1 ); in mbedtls_psa_get_ecc_oid_from_id()
230 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256K1 ); in mbedtls_psa_get_ecc_oid_from_id()
241 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_BP256R1 ); in mbedtls_psa_get_ecc_oid_from_id()
[all …]
Dasn1write.h135 const char *oid, size_t oid_len );
154 const char *oid, size_t oid_len,
358 const char *oid, size_t oid_len,
Dx509.h363 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
371 const char *oid, size_t oid_len,
/external/openthread/third_party/mbedtls/repo/include/mbedtls/
Dpsa_util.h168 char const **oid, size_t *oid_len ) in mbedtls_psa_get_ecc_oid_from_id() argument
178 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192R1 ); in mbedtls_psa_get_ecc_oid_from_id()
184 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224R1 ); in mbedtls_psa_get_ecc_oid_from_id()
190 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256R1 ); in mbedtls_psa_get_ecc_oid_from_id()
196 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP384R1 ); in mbedtls_psa_get_ecc_oid_from_id()
202 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP521R1 ); in mbedtls_psa_get_ecc_oid_from_id()
213 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192K1 ); in mbedtls_psa_get_ecc_oid_from_id()
219 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224K1 ); in mbedtls_psa_get_ecc_oid_from_id()
225 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256K1 ); in mbedtls_psa_get_ecc_oid_from_id()
236 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_BP256R1 ); in mbedtls_psa_get_ecc_oid_from_id()
[all …]
Dasn1write.h139 const char *oid, size_t oid_len );
158 const char *oid, size_t oid_len,
362 const char *oid, size_t oid_len,
Dx509.h355 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len,
363 const char *oid, size_t oid_len,
/external/openthread/third_party/mbedtls/repo/library/
Dasn1write.c178 const char *oid, size_t oid_len ) in mbedtls_asn1_write_oid() argument
184 (const unsigned char *) oid, oid_len ) ); in mbedtls_asn1_write_oid()
192 const char *oid, size_t oid_len, in mbedtls_asn1_write_algorithm_identifier() argument
203 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in mbedtls_asn1_write_algorithm_identifier()
414 const char *oid, size_t oid_len, in mbedtls_asn1_store_named_data() argument
420 if( ( cur = asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data()
429 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data()
430 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data()
437 memcpy( cur->oid.p, oid, oid_len ); in mbedtls_asn1_store_named_data()
Dx509_create.c208 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, in mbedtls_x509_set_extension() argument
213 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension()
242 size_t oid_len = cur_name->oid.len; in x509_write_name() local
254 oid_len ) ); in x509_write_name()
290 const char *oid, size_t oid_len, in mbedtls_x509_write_sig() argument
315 oid_len, 0 ) ); in mbedtls_x509_write_sig()
Dpkwrite.c145 size_t oid_len; in pk_write_ec_param() local
147 if( ( ret = mbedtls_oid_get_oid_by_ec_grp( ec->grp.id, &oid, &oid_len ) ) != 0 ) in pk_write_ec_param()
150 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in pk_write_ec_param()
229 size_t len = 0, par_len = 0, oid_len; in mbedtls_pk_write_pubkey_der() local
283 ret = mbedtls_psa_get_ecc_oid_from_id( curve, bits, &oid, &oid_len ); in mbedtls_pk_write_pubkey_der()
290 oid, oid_len ) ); in mbedtls_pk_write_pubkey_der()
298 &oid_len ) ) != 0 ) in mbedtls_pk_write_pubkey_der()
303 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
/external/mbedtls/library/
Dasn1write.c177 const char *oid, size_t oid_len ) in mbedtls_asn1_write_oid() argument
183 (const unsigned char *) oid, oid_len ) ); in mbedtls_asn1_write_oid()
191 const char *oid, size_t oid_len, in mbedtls_asn1_write_algorithm_identifier() argument
202 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in mbedtls_asn1_write_algorithm_identifier()
413 const char *oid, size_t oid_len, in mbedtls_asn1_store_named_data() argument
419 if( ( cur = asn1_find_named_data( *head, oid, oid_len ) ) == NULL ) in mbedtls_asn1_store_named_data()
428 cur->oid.len = oid_len; in mbedtls_asn1_store_named_data()
429 cur->oid.p = mbedtls_calloc( 1, oid_len ); in mbedtls_asn1_store_named_data()
436 memcpy( cur->oid.p, oid, oid_len ); in mbedtls_asn1_store_named_data()
Dpkwrite.c136 size_t oid_len; in pk_write_ec_param() local
138 if( ( ret = mbedtls_oid_get_oid_by_ec_grp( ec->grp.id, &oid, &oid_len ) ) != 0 ) in pk_write_ec_param()
141 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) ); in pk_write_ec_param()
215 size_t len = 0, par_len = 0, oid_len; in mbedtls_pk_write_pubkey_der() local
270 &oid, &oid_len ); in mbedtls_pk_write_pubkey_der()
278 oid_len ) ); in mbedtls_pk_write_pubkey_der()
296 &oid_len ) ) != 0 ) in mbedtls_pk_write_pubkey_der()
301 MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_algorithm_identifier( &c, buf, oid, oid_len, in mbedtls_pk_write_pubkey_der()
Dx509_create.c208 int mbedtls_x509_set_extension( mbedtls_asn1_named_data **head, const char *oid, size_t oid_len, in mbedtls_x509_set_extension() argument
213 if( ( cur = mbedtls_asn1_store_named_data( head, oid, oid_len, in mbedtls_x509_set_extension()
242 size_t oid_len = cur_name->oid.len; in x509_write_name() local
254 oid_len ) ); in x509_write_name()
290 const char *oid, size_t oid_len, in mbedtls_x509_write_sig() argument
315 oid_len, 0 ) ); in mbedtls_x509_write_sig()
/external/rust/crates/quiche/deps/boringssl/src/crypto/digest_extra/
Ddigest_extra.c125 uint8_t oid_len; member
146 if (CBS_len(cbs) == kMDOIDs[i].oid_len && in cbs_to_md()
147 OPENSSL_memcmp(CBS_data(cbs), kMDOIDs[i].oid, kMDOIDs[i].oid_len) == in cbs_to_md()
211 if (!CBB_add_bytes(&oid, kMDOIDs[i].oid, kMDOIDs[i].oid_len)) { in EVP_marshal_digest_algorithm()
/external/cronet/third_party/boringssl/src/crypto/digest_extra/
Ddigest_extra.c125 uint8_t oid_len; member
146 if (CBS_len(cbs) == kMDOIDs[i].oid_len && in cbs_to_md()
147 OPENSSL_memcmp(CBS_data(cbs), kMDOIDs[i].oid, kMDOIDs[i].oid_len) == in cbs_to_md()
210 if (!CBB_add_bytes(&oid, kMDOIDs[i].oid, kMDOIDs[i].oid_len)) { in EVP_marshal_digest_algorithm()
/external/boringssl/src/crypto/digest_extra/
Ddigest_extra.c125 uint8_t oid_len; member
146 if (CBS_len(cbs) == kMDOIDs[i].oid_len && in cbs_to_md()
147 OPENSSL_memcmp(CBS_data(cbs), kMDOIDs[i].oid, kMDOIDs[i].oid_len) == in cbs_to_md()
210 if (!CBB_add_bytes(&oid, kMDOIDs[i].oid, kMDOIDs[i].oid_len)) { in EVP_marshal_digest_algorithm()
/external/cronet/net/cert/
Dct_objects_extractor.cc107 size_t oid_len, in FindExtensionElement() argument
127 if (CBS_mem_equal(&extension_oid, oid, oid_len)) { in FindExtensionElement()
146 size_t oid_len, in ParseSCTListFromExtensions() argument
149 if (!FindExtensionElement(extensions, oid, oid_len, &extension_element) || in ParseSCTListFromExtensions()
164 DCHECK(CBS_mem_equal(&extension_oid, oid, oid_len)); in ParseSCTListFromExtensions()
/external/arm-trusted-firmware/drivers/auth/mbedtls/
Dmbedtls_x509_parser.c74 int oid_len; in get_ext() local
114 oid_len = mbedtls_oid_get_numeric_string(oid_str, in get_ext()
117 if (oid_len == MBEDTLS_ERR_OID_BUF_TOO_SMALL) { in get_ext()
120 if ((oid_len == strlen(oid_str)) && !strcmp(oid, oid_str)) { in get_ext()
/external/cronet/third_party/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c90 uint8_t oid_len; member
123 if (CBS_mem_equal(cbs, kCipherOIDs[i].oid, kCipherOIDs[i].oid_len)) { in cbs_to_cipher()
137 kCipherOIDs[i].oid_len) && in add_cipher_oid()
/external/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c90 uint8_t oid_len; member
123 if (CBS_mem_equal(cbs, kCipherOIDs[i].oid, kCipherOIDs[i].oid_len)) { in cbs_to_cipher()
137 kCipherOIDs[i].oid_len) && in add_cipher_oid()
/external/rust/crates/quiche/deps/boringssl/src/crypto/pkcs8/
Dp5_pbev2.c90 uint8_t oid_len; member
123 if (CBS_mem_equal(cbs, kCipherOIDs[i].oid, kCipherOIDs[i].oid_len)) { in cbs_to_cipher()
137 kCipherOIDs[i].oid_len) && in add_cipher_oid()
/external/rust/crates/quiche/deps/boringssl/src/crypto/evp/
Dp_rsa_asn1.c75 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_pub_encode()
122 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_priv_encode()
Dp_ed25519_asn1.c136 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_pub_encode()
183 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_priv_encode()
/external/boringssl/src/crypto/evp/
Dp_rsa_asn1.c76 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_pub_encode()
126 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_priv_encode()
/external/cronet/third_party/boringssl/src/crypto/evp/
Dp_rsa_asn1.c76 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_pub_encode()
126 !CBB_add_bytes(&oid, rsa_asn1_meth.oid, rsa_asn1_meth.oid_len) || in rsa_priv_encode()
Dp_ed25519_asn1.c134 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_pub_encode()
183 !CBB_add_bytes(&oid, ed25519_asn1_meth.oid, ed25519_asn1_meth.oid_len) || in ed25519_priv_encode()

123