/optee_os/core/drivers/crypto/caam/ |
A D | caam_key.c | 91 uint8_t key[]; member 136 struct caam_key_serialized *key = data_to_serialized_key(data, size); in get_key_type() local 152 struct caam_key_serialized *key = data_to_serialized_key(data, size); in get_key_sec_size() local 193 size_t caam_key_get_alloc_size(const struct caamkey *key) in caam_key_get_alloc_size() 224 void caam_key_dump(const char *trace, const struct caamkey *key) in caam_key_dump() 240 enum caam_status caam_key_alloc(struct caamkey *key) in caam_key_alloc() 259 void caam_key_free(struct caamkey *key) in caam_key_free() 411 struct caamkey *key, in caam_key_deserialize_from_bin() 481 const struct caamkey *key) in caam_key_serialize_to_bin() 646 enum caam_status caam_key_black_encapsulation(struct caamkey *key, in caam_key_black_encapsulation() [all …]
|
/optee_os/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() 269 struct rsa_public_key *key, in crypto_acipher_rsaes_encrypt() 361 TEE_Result crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in crypto_acipher_rsassa_sign() [all …]
|
A D | ecc.c | 107 static void ecc_free_public_key(struct ecc_public_key *key) in ecc_free_public_key() 126 static TEE_Result ecc_generate_keypair(struct ecc_keypair *key, in ecc_generate_keypair() 161 static TEE_Result ecc_sign(uint32_t algo, struct ecc_keypair *key, in ecc_sign() 233 static TEE_Result ecc_verify(uint32_t algo, struct ecc_public_key *key, in ecc_verify() 350 static TEE_Result ecc_sm2_encrypt(struct ecc_public_key *key, in ecc_sm2_encrypt() 388 static TEE_Result ecc_encrypt(struct ecc_public_key *key, in ecc_encrypt() 411 static TEE_Result ecc_sm2_decrypt(struct ecc_keypair *key, in ecc_sm2_decrypt() 472 static TEE_Result ecc_decrypt(struct ecc_keypair *key, in ecc_decrypt() 502 TEE_Result drvcrypt_asym_alloc_ecc_keypair(struct ecc_keypair *key, in drvcrypt_asym_alloc_ecc_keypair() 553 TEE_Result drvcrypt_asym_alloc_ecc_public_key(struct ecc_public_key *key, in drvcrypt_asym_alloc_ecc_public_key()
|
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()
|
/optee_os/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()
|
/optee_os/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() 40 crypto_acipher_alloc_ed25519_public_key(struct ed25519_public_key *key, in crypto_acipher_alloc_ed25519_public_key() 56 TEE_Result crypto_acipher_gen_ed25519_key(struct ed25519_keypair *key, in crypto_acipher_gen_ed25519_key() 78 TEE_Result crypto_acipher_ed25519_sign(struct ed25519_keypair *key, in crypto_acipher_ed25519_sign() 112 TEE_Result crypto_acipher_ed25519ctx_sign(struct ed25519_keypair *key, in crypto_acipher_ed25519ctx_sign() 154 TEE_Result crypto_acipher_ed25519_verify(struct ed25519_public_key *key, in crypto_acipher_ed25519_verify() 179 TEE_Result crypto_acipher_ed25519ctx_verify(struct ed25519_public_key *key, in crypto_acipher_ed25519ctx_verify()
|
/optee_os/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/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_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_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_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/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/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/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/lib/libmbedtls/core/ |
A D | rsa.c | 101 struct rsa_keypair *key) in rsa_complete_from_key_pair() 152 struct rsa_keypair *key) in rsa_init_and_complete_from_key_pair() 159 static void mbd_rsa_free(mbedtls_rsa_context *rsa, struct rsa_keypair *key) in mbd_rsa_free() 180 static void mbd_pk_free(mbedtls_pk_context *ctx, struct rsa_keypair *key) in mbd_pk_free() 283 TEE_Result sw_crypto_acipher_gen_rsa_key(struct rsa_keypair *key, in sw_crypto_acipher_gen_rsa_key() 337 TEE_Result sw_crypto_acipher_rsanopad_encrypt(struct rsa_public_key *key, in sw_crypto_acipher_rsanopad_encrypt() 402 TEE_Result sw_crypto_acipher_rsanopad_decrypt(struct rsa_keypair *key, in sw_crypto_acipher_rsanopad_decrypt() 464 struct rsa_keypair *key, in sw_crypto_acipher_rsaes_decrypt() 572 struct rsa_public_key *key, in sw_crypto_acipher_rsaes_encrypt() 658 TEE_Result sw_crypto_acipher_rsassa_sign(uint32_t algo, struct rsa_keypair *key, in sw_crypto_acipher_rsassa_sign() [all …]
|
A D | aes.c | 29 int mbedtls_aes_setkey_enc(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_enc() 44 int mbedtls_aes_setkey_dec(mbedtls_aes_context *ctx, const unsigned char *key, in mbedtls_aes_setkey_dec()
|
/optee_os/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/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
|
/optee_os/core/drivers/crypto/hisilicon/ |
A D | hpre_dh.c | 20 static TEE_Result hpre_dh_alloc_keypair(struct dh_keypair *key, in hpre_dh_alloc_keypair() 207 struct dh_keypair *key, in hpre_dh_params_bn2bin() 250 struct dh_keypair *key, in hpre_dh_request_init() 278 static TEE_Result hpre_dh_gen_keypair(struct dh_keypair *key, in hpre_dh_gen_keypair() 333 struct dh_keypair *key = NULL; in hpre_dh_do_shared_secret() local
|