| /optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
| H A D | ecc_find_curve.c | 9 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 D | ecc_import_x509.c | 12 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 D | ecc_import_openssl.c | 13 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 D | ecc_import_pkcs8.c | 48 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 D | ecc_export_openssl.c | 24 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 D | ecc_set_curve_internal.c | 33 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 D | ecc_encrypt_key.c | 100 … LTC_ASN1_OBJECT_IDENTIFIER, hash_descriptor[hash]->OIDlen, hash_descriptor[hash]->OID, in ecc_encrypt_key()
|
| H A D | ecc_set_curve.c | 35 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 D | pk_oid_str.c | 6 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 D | x509_encode_subject_public_key_info.c | 40 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 D | ec25519_export.c | 25 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 D | crypt_find_hash_oid.c | 16 …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 D | rsa_sign_hash.c | 98 …LTC_SET_ASN1(digestinfo, 0, LTC_ASN1_OBJECT_IDENTIFIER, hash_descriptor[hash_idx]->OID, hash_descr… in rsa_sign_hash_ex()
|
| H A D | rsa_verify_hash.c | 166 …(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 D | dsa_encrypt_key.c | 99 … 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 D | tomcrypt_private.h | 287 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 D | tomcrypt_hash.h | 209 unsigned long OID[16]; member
|
| H A D | tomcrypt_pk.h | 193 const char *OID; member
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 763 * 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
|