/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_verify_key.c | 23 int dsa_verify_key(const dsa_key *key, int *stat) in dsa_verify_key() 44 int dsa_int_validate_pqg(const dsa_key *key, int *stat) in dsa_int_validate_pqg() 98 int dsa_int_validate_primes(const dsa_key *key, int *stat) in dsa_int_validate_primes() 133 int dsa_int_validate_xy(const dsa_key *key, int *stat) in dsa_int_validate_xy()
|
A D | dsa_set.c | 22 dsa_key *key) in dsa_set_pqg() 67 int dsa_set_key(const unsigned char *in, unsigned long inlen, int type, dsa_key *key) in dsa_set_key()
|
/optee_os-3.20.0/core/drivers/crypto/crypto_api/acipher/ |
A D | rsa.c | 17 TEE_Result crypto_acipher_alloc_rsa_keypair(struct rsa_keypair *key, in crypto_acipher_alloc_rsa_keypair() 39 TEE_Result crypto_acipher_alloc_rsa_public_key(struct rsa_public_key *key, in crypto_acipher_alloc_rsa_public_key() 60 void crypto_acipher_free_rsa_public_key(struct rsa_public_key *key) in crypto_acipher_free_rsa_public_key() 73 void crypto_acipher_free_rsa_keypair(struct rsa_keypair *key) in crypto_acipher_free_rsa_keypair() 86 TEE_Result crypto_acipher_gen_rsa_key(struct rsa_keypair *key, size_t size_bits) in crypto_acipher_gen_rsa_key() 107 TEE_Result crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, in crypto_acipher_rsanopad_decrypt() 147 TEE_Result crypto_acipher_rsanopad_encrypt(struct rsa_public_key *key, in crypto_acipher_rsanopad_encrypt() 200 TEE_Result crypto_acipher_rsaes_decrypt(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsaes_decrypt() 262 struct rsa_public_key *key, in crypto_acipher_rsaes_encrypt() 347 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() [all …]
|
A D | dsa.c | 37 TEE_Result crypto_acipher_alloc_dsa_keypair(struct dsa_keypair *key, in crypto_acipher_alloc_dsa_keypair() 65 TEE_Result crypto_acipher_alloc_dsa_public_key(struct dsa_public_key *key, in crypto_acipher_alloc_dsa_public_key() 93 TEE_Result crypto_acipher_gen_dsa_key(struct dsa_keypair *key, size_t key_size) in crypto_acipher_gen_dsa_key() 121 TEE_Result crypto_acipher_dsa_sign(uint32_t algo, struct dsa_keypair *key, in crypto_acipher_dsa_sign() 181 TEE_Result crypto_acipher_dsa_verify(uint32_t algo, struct dsa_public_key *key, in crypto_acipher_dsa_verify()
|
A D | ecc.c | 100 static void ecc_free_public_key(struct ecc_public_key *key) in ecc_free_public_key() 119 static TEE_Result ecc_generate_keypair(struct ecc_keypair *key, in ecc_generate_keypair() 154 static TEE_Result ecc_sign(uint32_t algo, struct ecc_keypair *key, in ecc_sign() 226 static TEE_Result ecc_verify(uint32_t algo, struct ecc_public_key *key, in ecc_verify() 349 TEE_Result drvcrypt_asym_alloc_ecc_keypair(struct ecc_keypair *key, in drvcrypt_asym_alloc_ecc_keypair() 386 TEE_Result drvcrypt_asym_alloc_ecc_public_key(struct ecc_public_key *key, in drvcrypt_asym_alloc_ecc_public_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_key.c | 76 void rsa_shrink_key(rsa_key *key) in rsa_shrink_key() 87 int rsa_init(rsa_key *key) in rsa_init() 97 void rsa_free(rsa_key *key) in rsa_free()
|
A D | rsa_import_x509.c | 12 static int s_rsa_decode(const unsigned char *in, unsigned long inlen, rsa_key *key) in s_rsa_decode() 28 int rsa_import_x509(const unsigned char *in, unsigned long inlen, rsa_key *key) in rsa_import_x509()
|
A D | rsa_make_key.c | 12 static int s_rsa_make_key(prng_state *prng, int wprng, int size, void *e, rsa_key *key) in s_rsa_make_key() 92 int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key) in rsa_make_key() 124 const unsigned char *e, unsigned long elen, rsa_key *key) in rsa_make_key_ubin_e() 150 int rsa_make_key_bn_e(prng_state *prng, int wprng, int size, void *e, rsa_key *key) in rsa_make_key_bn_e()
|
A D | rsa_set.c | 23 rsa_key *key) in rsa_set_key() 64 rsa_key *key) in rsa_set_factors() 101 rsa_key *key) in rsa_set_crt_params()
|
A D | rsa_import.c | 24 int rsa_import_pkcs1(const unsigned char *in, unsigned long inlen, rsa_key *key) in rsa_import_pkcs1() 85 int rsa_import(const unsigned char *in, unsigned long inlen, rsa_key *key) in rsa_import()
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | ed25519.c | 19 TEE_Result crypto_acipher_alloc_ed25519_keypair(struct ed25519_keypair *key, in crypto_acipher_alloc_ed25519_keypair() 39 TEE_Result crypto_acipher_gen_ed25519_key(struct ed25519_keypair *key, in crypto_acipher_gen_ed25519_key() 61 TEE_Result crypto_acipher_ed25519_sign(struct ed25519_keypair *key, in crypto_acipher_ed25519_sign() 90 TEE_Result crypto_acipher_ed25519ctx_sign(struct ed25519_keypair *key, in crypto_acipher_ed25519ctx_sign() 127 TEE_Result crypto_acipher_ed25519_verify(struct ed25519_keypair *key, in crypto_acipher_ed25519_verify() 152 TEE_Result crypto_acipher_ed25519ctx_verify(struct ed25519_keypair *key, in crypto_acipher_ed25519ctx_verify()
|
A D | x25519.c | 19 TEE_Result crypto_acipher_alloc_x25519_keypair(struct x25519_keypair *key, in crypto_acipher_alloc_x25519_keypair() 44 TEE_Result crypto_acipher_gen_x25519_key(struct x25519_keypair *key, in crypto_acipher_gen_x25519_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_make_key.c | 21 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key) in ecc_make_key() 30 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_curve *cu) in ecc_make_key_ex() 38 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key) in ecc_generate_key()
|
A D | ecc_set_curve.c | 8 int ecc_set_curve(const ltc_ecc_curve *cu, ecc_key *key) in ecc_set_curve() 44 int ecc_set_curve_by_size(int size, ecc_key *key) in ecc_set_curve_by_size()
|
A D | ecc_ansi_x963_import.c | 18 int ecc_ansi_x963_import(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_ansi_x963_import() 23 int ecc_ansi_x963_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_e… in ecc_ansi_x963_import_ex()
|
A D | ecc_set_curve_internal.c | 15 static void s_ecc_oid_lookup(ecc_key *key) in s_ecc_oid_lookup() 39 int ecc_copy_curve(const ecc_key *srckey, ecc_key *key) in ecc_copy_curve() 79 …id *a, void *b, void *prime, void *order, void *gx, void *gy, unsigned long cofactor, ecc_key *key) in ecc_set_curve_from_mpis()
|
A D | ecc_import.c | 20 int ecc_import(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import() 33 int ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve *… in ecc_import_ex()
|
A D | ecc_import_x509.c | 7 static int s_ecc_import_x509_with_oid(const unsigned char *in, unsigned long inlen, ecc_key *key) in s_ecc_import_x509_with_oid() 33 static int s_ecc_import_x509_with_curve(const unsigned char *in, unsigned long inlen, ecc_key *key) in s_ecc_import_x509_with_curve() 86 int ecc_import_subject_public_key_info(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_subject_public_key_info() 107 int ecc_import_x509(const unsigned char *in, unsigned long inlen, ecc_key *key) in ecc_import_x509()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/ |
A D | dh_set.c | 20 dh_key *key) in dh_set_pg() 50 int dh_set_pg_groupsize(int groupsize, dh_key *key) in dh_set_pg_groupsize() 85 int dh_set_key(const unsigned char *in, unsigned long inlen, int type, dh_key *key) in dh_set_key()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/x25519/ |
A D | x25519_import_x509.c | 12 static int s_x25519_decode(const unsigned char *in, unsigned long inlen, curve25519_key *key) in s_x25519_decode() 26 int x25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key) in x25519_import_x509()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ed25519/ |
A D | ed25519_import_x509.c | 12 static int s_ed25519_decode(const unsigned char *in, unsigned long inlen, curve25519_key *key) in s_ed25519_decode() 26 int ed25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key) in ed25519_import_x509()
|
/optee_os-3.20.0/lib/libmbedtls/core/ |
A D | aes.c | 16 TEE_Result crypto_aes_expand_enc_key(const void *key, size_t key_len, in crypto_aes_expand_enc_key() 73 int mbedtls_aes_setkey_enc(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_enc() 88 int mbedtls_aes_setkey_dec(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_dec()
|
A D | rsa.c | 98 struct rsa_keypair *key) in rsa_init_from_key_pair() 222 TEE_Result sw_crypto_acipher_gen_rsa_key(struct rsa_keypair *key, in sw_crypto_acipher_gen_rsa_key() 276 TEE_Result sw_crypto_acipher_rsanopad_encrypt(struct rsa_public_key *key, in sw_crypto_acipher_rsanopad_encrypt() 341 TEE_Result sw_crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, in sw_crypto_acipher_rsanopad_decrypt() 401 struct rsa_keypair *key, in sw_crypto_acipher_rsaes_decrypt() 498 struct rsa_public_key *key, in sw_crypto_acipher_rsaes_encrypt() 574 TEE_Result sw_crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in sw_crypto_acipher_rsassa_sign() 670 struct rsa_public_key *key, in sw_crypto_acipher_rsassa_verify()
|
/optee_os-3.20.0/core/drivers/crypto/se050/core/ |
A D | rsa.c | 41 static bool rsa_keypair_has_crt(struct rsa_keypair *key) in rsa_keypair_has_crt() 53 static bool keypair_supported(struct rsa_keypair *key, sss_cipher_type_t ctype) in keypair_supported() 132 struct rsa_public_key *key) in se050_inject_public_key() 174 struct rsa_keypair *key) in se050_inject_keypair() 233 static TEE_Result decrypt_es(uint32_t algo, struct rsa_keypair *key, in decrypt_es() 288 static TEE_Result encrypt_es(uint32_t algo, struct rsa_public_key *key, in encrypt_es() 323 static TEE_Result decrypt_nopad(struct rsa_keypair *key, const uint8_t *src, in decrypt_nopad() 387 static TEE_Result encrypt_nopad(struct rsa_public_key *key, const uint8_t *src, in encrypt_nopad() 447 static TEE_Result sign_ssa(uint32_t algo, struct rsa_keypair *key, in sign_ssa() 486 static TEE_Result verify_ssa(uint32_t algo, struct rsa_public_key *key, in verify_ssa() [all …]
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/ciphers/safer/ |
A D | safer.c | 98 safer_key_t key) in s_safer_expand_userkey() 167 safer_key_t key) in safer_expand_userkey() 174 int safer_k64_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in safer_k64_setup() 191 int safer_sk64_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in safer_sk64_setup() 208 int safer_k128_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in safer_k128_setup() 225 int safer_sk128_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey) in safer_sk128_setup() 253 const unsigned char *key; in s_safer_ecb_encrypt() local 307 const unsigned char *key; in s_safer_ecb_decrypt() local
|