/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/ |
A D | check_config.h | 37 #error "mbed TLS requires a platform with 8-bit chars" 42 #error "MBEDTLS_PLATFORM_C is required on Windows" 72 #error "MBEDTLS_AESNI_C defined, but not all prerequisites" 80 #error "MBEDTLS_DHM_C defined, but not all prerequisites" 89 #error "MBEDTLS_CMAC_C defined, but not all prerequisites" 98 #error "MBEDTLS_ECDH_C defined, but not all prerequisites" 189 #error "MBEDTLS_CTR_DRBG_ENTROPY_LEN value too high" 194 #error "MBEDTLS_CTR_DRBG_ENTROPY_LEN value too high" 747 #error "Illegal protocol selection" 752 #error "Illegal protocol selection" [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/sequence/ |
A D | der_decode_sequence_flexi.c | 55 goto error; in s_der_decode_sequence_flexi() 63 goto error; in s_der_decode_sequence_flexi() 68 goto error; in s_der_decode_sequence_flexi() 84 goto error; in s_der_decode_sequence_flexi() 90 goto error; in s_der_decode_sequence_flexi() 128 goto error; in s_der_decode_sequence_flexi() 136 goto error; in s_der_decode_sequence_flexi() 140 goto error; in s_der_decode_sequence_flexi() 170 goto error; in s_der_decode_sequence_flexi() 178 goto error; in s_der_decode_sequence_flexi() [all …]
|
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/ |
A D | check_crypto_config.h | 34 #error "PSA_WANT_ALG_CCM defined, but not all prerequisites" 41 #error "PSA_WANT_ALG_CMAC defined, but not all prerequisites" 47 #error "PSA_WANT_ALG_DETERMINISTIC_ECDSA defined, but not all prerequisites" 53 #error "PSA_WANT_ALG_ECDSA defined, but not all prerequisites" 59 #error "PSA_WANT_ALG_GCM defined, but not all prerequisites" 65 #error "PSA_WANT_ALG_RSA_PKCS1V15_CRYPT defined, but not all prerequisites" 71 #error "PSA_WANT_ALG_RSA_PKCS1V15_SIGN defined, but not all prerequisites" 77 #error "PSA_WANT_ALG_RSA_OAEP defined, but not all prerequisites" 83 #error "PSA_WANT_ALG_RSA_PSS defined, but not all prerequisites" 88 #error "PSA_WANT_KEY_TYPE_ECC_KEY_PAIR defined, but not all prerequisites"
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_recover_key.c | 58 goto error; in ecc_recover_key() 67 goto error; in ecc_recover_key() 82 goto error; in ecc_recover_key() 91 err = CRYPT_ERROR; goto error; in ecc_recover_key() 95 goto error; in ecc_recover_key() 102 goto error; in ecc_recover_key() 126 goto error; in ecc_recover_key() 133 goto error; in ecc_recover_key() 139 goto error; in ecc_recover_key() 146 goto error; in ecc_recover_key() [all …]
|
A D | ecc_verify_hash.c | 53 goto error; in ecc_verify_hash_ex() 61 goto error; in ecc_verify_hash_ex() 69 … LTC_ASN1_EOL, 0UL, LTC_NULL)) != CRYPT_OK) { goto error; } in ecc_verify_hash_ex() 76 goto error; in ecc_verify_hash_ex() 78 …read_unsigned_bin(r, (unsigned char *)sig, i)) != CRYPT_OK) { goto error; } in ecc_verify_hash_ex() 85 err = CRYPT_ERROR; goto error; in ecc_verify_hash_ex() 89 goto error; in ecc_verify_hash_ex() 112 goto error; in ecc_verify_hash_ex() 119 goto error; in ecc_verify_hash_ex() 126 goto error; in ecc_verify_hash_ex() [all …]
|
A D | ecc_set_key.c | 24 goto error; in ecc_set_key() 28 goto error; in ecc_set_key() 31 …p.ecc_ptmul(key->k, &key->dp.base, &key->pubkey, a, prime, 1)) != CRYPT_OK) { goto error; } in ecc_set_key() 35 …cc_import_point(in, inlen, prime, a, b, key->pubkey.x, key->pubkey.y)) != CRYPT_OK) { goto error; } in ecc_set_key() 36 …t(key->pubkey.z, 1)) != CRYPT_OK) { goto error; } in ecc_set_key() 40 goto error; in ecc_set_key() 45 goto error; in ecc_set_key() 51 error: in ecc_set_key()
|
A D | ecc_set_curve.c | 23 if ((err = mp_read_radix(key->dp.prime, cu->prime, 16)) != CRYPT_OK) { goto error; } in ecc_set_curve() 24 if ((err = mp_read_radix(key->dp.order, cu->order, 16)) != CRYPT_OK) { goto error; } in ecc_set_curve() 25 if ((err = mp_read_radix(key->dp.A, cu->A, 16)) != CRYPT_OK) { goto error; } in ecc_set_curve() 26 if ((err = mp_read_radix(key->dp.B, cu->B, 16)) != CRYPT_OK) { goto error; } in ecc_set_curve() 27 if ((err = mp_read_radix(key->dp.base.x, cu->Gx, 16)) != CRYPT_OK) { goto error; } in ecc_set_curve() 28 if ((err = mp_read_radix(key->dp.base.y, cu->Gy, 16)) != CRYPT_OK) { goto error; } in ecc_set_curve() 29 if ((err = mp_set(key->dp.base.z, 1)) != CRYPT_OK) { goto error; } in ecc_set_curve() 35 if ((err = pk_oid_str_to_num(cu->OID, key->dp.oid, &key->dp.oidlen)) != CRYPT_OK) { goto error; } in ecc_set_curve() 39 error: in ecc_set_curve()
|
A D | ecc_export_openssl.c | 43 … if (key->dp.oidlen == 0) { err = CRYPT_INVALID_ARG; goto error; } in ecc_export_openssl() 57 …n_a > sizeof(bin_a)) { err = CRYPT_BUFFER_OVERFLOW; goto error; } in ecc_export_openssl() 58 if ((err = mp_to_unsigned_bin(a, bin_a)) != CRYPT_OK) { goto error; } in ecc_export_openssl() 63 …n_b > sizeof(bin_b)) { err = CRYPT_BUFFER_OVERFLOW; goto error; } in ecc_export_openssl() 64 if ((err = mp_to_unsigned_bin(b, bin_b)) != CRYPT_OK) { goto error; } in ecc_export_openssl() 70 if (err != CRYPT_OK) { goto error; } in ecc_export_openssl() 73 if ((err = pk_get_oid(LTC_OID_EC_PRIMEF, &OID)) != CRYPT_OK) { goto error; } in ecc_export_openssl() 95 goto error; in ecc_export_openssl() 122 goto error; in ecc_export_openssl() 139 if ((err = mp_to_unsigned_bin(key->k, bin_k)) != CRYPT_OK) { goto error; } in ecc_export_openssl() [all …]
|
A D | ecc_set_curve_internal.c | 55 if ((err = mp_copy(srckey->dp.prime, key->dp.prime )) != CRYPT_OK) { goto error; } in ecc_copy_curve() 56 if ((err = mp_copy(srckey->dp.order, key->dp.order )) != CRYPT_OK) { goto error; } in ecc_copy_curve() 74 error: in ecc_copy_curve() 99 if ((err = mp_copy(prime, key->dp.prime )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis() 100 if ((err = mp_copy(order, key->dp.order )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis() 101 if ((err = mp_copy(a, key->dp.A )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis() 102 if ((err = mp_copy(b, key->dp.B )) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis() 103 if ((err = mp_copy(gx, key->dp.base.x)) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis() 104 if ((err = mp_copy(gy, key->dp.base.y)) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis() 105 if ((err = mp_set(key->dp.base.z, 1)) != CRYPT_OK) { goto error; } in ecc_set_curve_from_mpis() [all …]
|
A D | ecc_sign_hash.c | 79 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex() 84 if (mp_copy(pubkey.pubkey.x, s) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex() 88 if ((err = mp_sub(s, p, s)) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex() 98 … if ((err = mp_mulmod(pubkey.k, b, p, pubkey.k)) != CRYPT_OK) { goto error; } /* k = kb */ in ecc_sign_hash_ex() 99 … if ((err = mp_invmod(pubkey.k, p, pubkey.k)) != CRYPT_OK) { goto error; } /* k = 1/kb */ in ecc_sign_hash_ex() 100 … if ((err = mp_mulmod(key->k, r, p, s)) != CRYPT_OK) { goto error; } /* s = xr */ in ecc_sign_hash_ex() 101 … if ((err = mp_mulmod(pubkey.k, s, p, s)) != CRYPT_OK) { goto error; } /* s = xr/kb */ in ecc_sign_hash_ex() 102 … if ((err = mp_mulmod(pubkey.k, e, p, e)) != CRYPT_OK) { goto error; } /* e = e/kb */ in ecc_sign_hash_ex() 103 …if ((err = mp_add(e, s, s)) != CRYPT_OK) { goto error; } /* s = e/kb + xr… in ecc_sign_hash_ex() 170 goto error; in ecc_sign_hash_ex() [all …]
|
A D | ecc_import_x509.c | 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() 25 if ((err = ecc_set_curve(curve, key)) != CRYPT_OK) { goto error; } in s_ecc_import_x509_with_oid() 29 error: in s_ecc_import_x509_with_oid() 73 …err = mp_read_unsigned_bin(a, bin_a, len_a)) != CRYPT_OK) { goto error; } in s_ecc_import_x509_with_curve() 74 …err = mp_read_unsigned_bin(b, bin_b, len_b)) != CRYPT_OK) { goto error; } in s_ecc_import_x509_with_curve() 75 …err = ltc_ecc_import_point(bin_g, len_g, prime, a, b, gx, gy)) != CRYPT_OK) { goto error; } in s_ecc_import_x509_with_curve() 77 … = ecc_set_curve_from_mpis(a, b, prime, order, gx, gy, cofactor, key)) != CRYPT_OK) { goto error; } in s_ecc_import_x509_with_curve() 81 error: in s_ecc_import_x509_with_curve()
|
A D | ecc_import_openssl.c | 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() 34 … if ((err = ecc_set_curve(curve, key)) != CRYPT_OK) { goto error; } in s_ecc_import_private_with_oid() 38 error: in s_ecc_import_private_with_oid() 89 …err = mp_read_unsigned_bin(a, bin_a, len_a)) != CRYPT_OK) { goto error; } in s_ecc_import_private_with_curve() 90 …err = mp_read_unsigned_bin(b, bin_b, len_b)) != CRYPT_OK) { goto error; } in s_ecc_import_private_with_curve() 91 …err = ltc_ecc_import_point(bin_g, len_g, prime, a, b, gx, gy)) != CRYPT_OK) { goto error; } in s_ecc_import_private_with_curve() 93 … = ecc_set_curve_from_mpis(a, b, prime, order, gx, gy, cofactor, key)) != CRYPT_OK) { goto error; } in s_ecc_import_private_with_curve() 97 error: in s_ecc_import_private_with_curve()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_exptmod.c | 57 { goto error; } in rsa_exptmod() 63 goto error; in rsa_exptmod() 72 goto error; in rsa_exptmod() 78 goto error; in rsa_exptmod() 84 goto error; in rsa_exptmod() 90 goto error; in rsa_exptmod() 105 …r = mp_exptmod(tmp, key->d, key->N, tmp)) != CRYPT_OK) { goto error; } in rsa_exptmod() 126 goto error; in rsa_exptmod() 147 goto error; in rsa_exptmod() 153 goto error; in rsa_exptmod() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/ssh/ |
A D | ssh_decode_sequence_multi.c | 49 goto error; in ssh_decode_sequence_multi() 78 goto error; in ssh_decode_sequence_multi() 84 goto error; in ssh_decode_sequence_multi() 92 goto error; in ssh_decode_sequence_multi() 125 goto error; in ssh_decode_sequence_multi() 129 goto error; in ssh_decode_sequence_multi() 140 …err = mp_set(vdata, 0)) != CRYPT_OK) { goto error; } in ssh_decode_sequence_multi() 144 goto error; in ssh_decode_sequence_multi() 146 …err = mp_read_unsigned_bin(vdata, (unsigned char *)in, size)) != CRYPT_OK) { goto error; } in ssh_decode_sequence_multi() 155 goto error; in ssh_decode_sequence_multi() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_verify_key.c | 72 goto error; in dsa_int_validate_pqg() 81 goto error; in dsa_int_validate_pqg() 86 error: in dsa_int_validate_pqg() 147 goto error; in dsa_int_validate_xy() 151 goto error; in dsa_int_validate_xy() 158 goto error; in dsa_int_validate_xy() 162 goto error; in dsa_int_validate_xy() 166 goto error; in dsa_int_validate_xy() 174 goto error; in dsa_int_validate_xy() 178 goto error; in dsa_int_validate_xy() [all …]
|
A D | dsa_sign_hash.c | 61 … if ((err = rand_bn_bits(k, qbits, prng, wprng)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 67 … if ((err = mp_gcd(k, key->q, tmp)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 71 …if ((err = mp_invmod(k, key->q, kinv)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 74 …if ((err = mp_exptmod(key->g, k, key->p, r)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 75 …if ((err = mp_mod(r, key->q, r)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 83 …if ((err = mp_read_unsigned_bin(tmp, (unsigned char *)in, inlen)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 84 …if ((err = mp_mul(key->x, r, s)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 85 …if ((err = mp_add(s, tmp, s)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw() 91 error: in dsa_sign_hash_raw() 129 goto error; in dsa_sign_hash() [all …]
|
A D | dsa_verify_hash.c | 46 goto error; in dsa_verify_hash_raw() 53 …((err = mp_invmod(s, key->q, w)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 56 …((err = mp_read_unsigned_bin(u1, (unsigned char *)hash, hashlen)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 57 …((err = mp_mulmod(u1, w, key->q, u1)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 60 …((err = mp_mulmod(r, w, key->q, u2)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 63 …((err = mp_exptmod(key->g, u1, key->p, u1)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 64 …((err = mp_exptmod(key->y, u2, key->p, u2)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 65 …((err = mp_mulmod(u1, u2, key->p, v)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 66 …((err = mp_mod(v, key->q, v)) != CRYPT_OK) { goto error; } in dsa_verify_hash_raw() 74 error: in dsa_verify_hash_raw()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/ |
A D | dh_import.c | 35 goto error; in dh_import() 48 goto error; in dh_import() 52 goto error; in dh_import() 64 goto error; in dh_import() 69 goto error; in dh_import() 74 goto error; in dh_import() 79 goto error; in dh_import() 84 error: in dh_import()
|
A D | dh_make_key.c | 100 goto error; in dh_make_key() 106 goto error; in dh_make_key() 113 goto error; in dh_make_key() 121 goto error; in dh_make_key() 124 goto error; in dh_make_key() 129 goto error; in dh_make_key() 134 error: in dh_make_key()
|
A D | dh_shared_secret.c | 44 goto error; in dh_shared_secret() 49 goto error; in dh_shared_secret() 57 goto error; in dh_shared_secret() 60 goto error; in dh_shared_secret() 65 error: in dh_shared_secret()
|
/optee_os-3.20.0/core/arch/arm/plat-hikey/ |
A D | platform_config.h | 27 #error Unknown console UART 39 #error Unknown console UART 43 #error Unknown HiKey PLATFORM_FLAVOR 119 #error Unknown DRAM size 141 #error Unknown DRAM size 146 #error 32-bit TEE with CFG_CORE_DYN_SHM and without CFG_LARGE_PHYS_ADDR \ 151 #error Unknown HiKey PLATFORM_FLAVOR
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_custom.h | 593 #error LTC_PBES requires LTC_PKCS_5 597 #error LTC_PBES requires LTC_PKCS_12 601 #error LTC_PKCS_5 requires LTC_HMAC 605 #error LTC_PKCS_5 requires LTC_HASH_HELPERS 609 #error Pelican-MAC requires LTC_RIJNDAEL 621 #error ASN.1 DER requires MPI functionality 629 #error LTC_BCRYPT requires LTC_BLOWFISH 641 #error LTC_XSALSA20 requires LTC_SALSA20 645 #error LTC_RC4 requires LTC_RC4_STREAM 653 #error LTC_BLAKE2SMAC requires LTC_BLAKE2S [all …]
|
/optee_os-3.20.0/core/drivers/ |
A D | versal_trng.c | 754 goto error; in trng_reseed_internal() 759 goto error; in trng_reseed_internal() 763 error: in trng_reseed_internal() 778 goto error; in trng_instantiate() 781 goto error; in trng_instantiate() 825 error: in trng_instantiate() 863 error: in trng_reseed() 941 error: in trng_generate() 967 error: in trng_release() 993 error: in trng_health_test() [all …]
|
/optee_os-3.20.0/core/arch/arm/plat-imx/ |
A D | platform_config.h | 39 #error "CFG_DDR_SIZE not defined" 56 #error "Pager not supported for platform mx6ulevk" 59 #error "LPAE not supported for now"
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/encauth/ccm/ |
A D | ccm_memory.c | 135 goto error; in ccm_memory() 170 goto error; in ccm_memory() 195 goto error; in ccm_memory() 204 goto error; in ccm_memory() 239 goto error; in ccm_memory() 248 goto error; in ccm_memory() 283 goto error; in ccm_memory() 299 goto error; in ccm_memory() 308 goto error; in ccm_memory() 318 goto error; in ccm_memory() [all …]
|