Home
last modified time | relevance | path

Searched refs:OID (Results 1 – 19 of 19) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_find_curve.c9 const char *OID; member
217 const char *OID = NULL; in ecc_find_curve() local
224 for (i = 0; s_curve_names[i].OID != NULL && !OID; i++) { in ecc_find_curve()
225 if (XSTRCMP(s_curve_names[i].OID, name_or_oid) == 0) { in ecc_find_curve()
226 OID = s_curve_names[i].OID; in ecc_find_curve()
228 for (j = 0; s_curve_names[i].names[j] != NULL && !OID; j++) { in ecc_find_curve()
230 OID = s_curve_names[i].OID; in ecc_find_curve()
235 if (OID != NULL) { in ecc_find_curve()
237 if (XSTRCMP(ltc_ecc_curves[i].OID, OID) == 0) { in ecc_find_curve()
H A Decc_import_x509.c12 char OID[256]; in s_ecc_import_x509_with_oid() local
22 len = sizeof(OID); in s_ecc_import_x509_with_oid()
23 if ((err = pk_oid_num_to_str(curveoid, len_oid, OID, &len)) != CRYPT_OK) { goto error; } in s_ecc_import_x509_with_oid()
24 if ((err = ecc_find_curve(OID, &curve)) != CRYPT_OK) { goto error; } in s_ecc_import_x509_with_oid()
H A Decc_import_openssl.c13 char OID[256]; in s_ecc_import_private_with_oid() local
31 len = sizeof(OID); in s_ecc_import_private_with_oid()
32 … if ((err = pk_oid_num_to_str(curveoid, custom[0].size, OID, &len)) != CRYPT_OK) { goto error; } in s_ecc_import_private_with_oid()
33 … if ((err = ecc_find_curve(OID, &curve)) != CRYPT_OK) { goto error; } in s_ecc_import_private_with_oid()
H A Decc_import_pkcs8.c48 char OID[256]; in ecc_import_pkcs8() local
100 len = sizeof(OID); in ecc_import_pkcs8()
101 …if ((err = pk_oid_num_to_str(curve_oid->data, curve_oid->size, OID, &len)) != CRYPT_OK) { goto LBL… in ecc_import_pkcs8()
102 … if ((err = ecc_find_curve(OID, &curve)) != CRYPT_OK) { goto LBL_DONE; } in ecc_import_pkcs8()
H A Decc_export_openssl.c24 const char *OID; in ecc_export_openssl() local
73 if ((err = pk_get_oid(LTC_OID_EC_PRIMEF, &OID)) != CRYPT_OK) { goto error; } in ecc_export_openssl()
94 if ((err = pk_oid_str_to_num(OID, oid, &oidlen)) != CRYPT_OK) { in ecc_export_openssl()
H A Decc_set_curve_internal.c33 if (curve->prime && curve->OID) { in s_ecc_oid_lookup()
35 pk_oid_str_to_num(curve->OID, key->dp.oid, &key->dp.oidlen); in s_ecc_oid_lookup()
H A Decc_encrypt_key.c100 … LTC_ASN1_OBJECT_IDENTIFIER, hash_descriptor[hash]->OIDlen, hash_descriptor[hash]->OID, in ecc_encrypt_key()
H A Decc_set_curve.c35 if ((err = pk_oid_str_to_num(cu->OID, key->dp.oid, &key->dp.oidlen)) != CRYPT_OK) { goto error; } in ecc_set_curve()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/oid/
H A Dpk_oid_str.c6 int pk_oid_str_to_num(const char *OID, unsigned long *oid, unsigned long *oidlen) in pk_oid_str_to_num() argument
17 if (OID == NULL) return CRYPT_OK; in pk_oid_str_to_num()
19 OID_len = XSTRLEN(OID); in pk_oid_str_to_num()
23 if (OID[i] == '.') { in pk_oid_str_to_num()
26 else if ((OID[i] >= '0') && (OID[i] <= '9')) { in pk_oid_str_to_num()
29 oid[j] = oid[j] * 10 + (OID[i] - '0'); in pk_oid_str_to_num()
45 int pk_oid_num_to_str(const unsigned long *oid, unsigned long oidlen, char *OID, unsigned long *out… in pk_oid_num_to_str() argument
77 LTC_ARGCHK(OID != NULL); in pk_oid_num_to_str()
78 for (j = 0; j < k; j++) OID[j] = tmp[k - j - 1]; in pk_oid_num_to_str()
79 OID[k] = '\0'; in pk_oid_num_to_str()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/
H A Dx509_encode_subject_public_key_info.c40 const char *OID; in x509_encode_subject_public_key_info() local
46 if ((err = pk_get_oid(algorithm, &OID)) != CRYPT_OK) { in x509_encode_subject_public_key_info()
51 if ((err = pk_oid_str_to_num(OID, oid, &oidlen)) != CRYPT_OK) { in x509_encode_subject_public_key_info()
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
H A Dec25519_export.c25 const char* OID; in ec25519_export() local
42 if ((err = pk_get_oid(key->algo, &OID)) != CRYPT_OK) { in ec25519_export()
46 if ((err = pk_oid_str_to_num(OID, oid, &oidlen)) != CRYPT_OK) { in ec25519_export()
/optee_os/core/lib/libtomcrypt/src/misc/crypt/
H A Dcrypt_find_hash_oid.c16 …ULL && hash_descriptor[x]->OIDlen == IDlen && !XMEMCMP(hash_descriptor[x]->OID, ID, sizeof(unsigne… in find_hash_oid()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
H A Drsa_sign_hash.c98 …LTC_SET_ASN1(digestinfo, 0, LTC_ASN1_OBJECT_IDENTIFIER, hash_descriptor[hash_idx]->OID, hash_descr… in rsa_sign_hash_ex()
H A Drsa_verify_hash.c166 …(XMEMCMP(digestinfo[0].data, hash_descriptor[hash_idx]->OID, sizeof(unsigned long) * hash_descript… in rsa_verify_hash_ex()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
H A Ddsa_encrypt_key.c99 … LTC_ASN1_OBJECT_IDENTIFIER, hash_descriptor[hash]->OIDlen, hash_descriptor[hash]->OID, in dsa_encrypt_key()
/optee_os/core/lib/libtomcrypt/src/headers/
H A Dtomcrypt_private.h287 int pk_oid_str_to_num(const char *OID, unsigned long *oid, unsigned long *oidlen);
288 int pk_oid_num_to_str(const unsigned long *oid, unsigned long oidlen, char *OID, unsigned long *out…
H A Dtomcrypt_hash.h209 unsigned long OID[16]; member
H A Dtomcrypt_pk.h193 const char *OID; member
/optee_os/lib/libmbedtls/mbedtls/
H A DChangeLog763 * Add function mbedtls_oid_from_numeric_string() to parse an OID from a
1117 * Fix bug in conversion from OID to string in
4495 * Added optimization for code space for X.509/OID based on configured
4617 * Fix typo in name of the extKeyUsage OID. Found by inestlerode, #314
5501 * Moved all OID functionality to a separate module. RSA function
6146 * Support more exotic OID's when parsing certificates