Home
last modified time | relevance | path

Searched refs:ecc_keypair (Results 1 – 25 of 25) sorted by relevance

/optee_os/core/lib/libtomcrypt/
H A Dacipher_helpers.h40 struct ecc_keypair *key,
55 TEE_Result sm2_ltc_dsa_sign(uint32_t algo, struct ecc_keypair *key,
64 sm2_ltc_dsa_sign(uint32_t algo __unused, struct ecc_keypair *key __unused, in sm2_ltc_dsa_sign()
81 TEE_Result sm2_ltc_pke_decrypt(struct ecc_keypair *key, const uint8_t *src,
88 static inline TEE_Result sm2_ltc_pke_decrypt(struct ecc_keypair *key __unused, in sm2_ltc_pke_decrypt()
H A Decc.c130 static TEE_Result _ltc_ecc_generate_keypair(struct ecc_keypair *key, in _ltc_ecc_generate_keypair()
189 struct ecc_keypair *key, in ecc_populate_ltc_private_key()
245 static TEE_Result _ltc_ecc_sign(uint32_t algo, struct ecc_keypair *key, in _ltc_ecc_sign()
315 static TEE_Result _ltc_ecc_shared_secret(struct ecc_keypair *private_key, in _ltc_ecc_shared_secret()
415 TEE_Result crypto_asym_alloc_ecc_keypair(struct ecc_keypair *s, in crypto_asym_alloc_ecc_keypair()
H A Dsm2-kep.c403 TEE_Result crypto_acipher_sm2_kep_derive(struct ecc_keypair *my_key, in crypto_acipher_sm2_kep_derive()
404 struct ecc_keypair *my_eph_key, in crypto_acipher_sm2_kep_derive()
H A Dsm2-dsa.c21 TEE_Result sm2_ltc_dsa_sign(uint32_t algo, struct ecc_keypair *key, in sm2_ltc_dsa_sign()
H A Dsm2-pke.c109 TEE_Result sm2_ltc_pke_decrypt(struct ecc_keypair *key, const uint8_t *src, in sm2_ltc_pke_decrypt()
/optee_os/core/drivers/crypto/se050/adaptors/include/
H A Dse050_utils.h38 struct ecc_keypair;
41 uint32_t se050_ecc_keypair_from_nvm(struct ecc_keypair *key);
/optee_os/core/include/crypto/
H A Dcrypto.h163 struct ecc_keypair { struct
207 TEE_Result crypto_acipher_alloc_ecc_keypair(struct ecc_keypair *s,
228 TEE_Result crypto_acipher_gen_ecc_key(struct ecc_keypair *key, size_t key_size);
289 TEE_Result crypto_acipher_ecc_sign(uint32_t algo, struct ecc_keypair *key,
295 TEE_Result crypto_acipher_ecc_shared_secret(struct ecc_keypair *private_key,
299 TEE_Result crypto_acipher_sm2_pke_decrypt(struct ecc_keypair *key,
328 TEE_Result crypto_acipher_sm2_kep_derive(struct ecc_keypair *my_key,
329 struct ecc_keypair *my_eph_key,
H A Dcrypto_impl.h432 TEE_Result (*generate)(struct ecc_keypair *key, size_t key_size_bits);
433 TEE_Result (*sign)(uint32_t algo, struct ecc_keypair *key,
436 TEE_Result (*shared_secret)(struct ecc_keypair *private_key,
439 TEE_Result (*decrypt)(struct ecc_keypair *key, const uint8_t *src,
453 TEE_Result crypto_asym_alloc_ecc_keypair(struct ecc_keypair *key,
478 crypto_asym_alloc_ecc_keypair(struct ecc_keypair *key __unused, in crypto_asym_alloc_ecc_keypair()
490 TEE_Result drvcrypt_asym_alloc_ecc_keypair(struct ecc_keypair *key,
503 drvcrypt_asym_alloc_ecc_keypair(struct ecc_keypair *key __unused, in drvcrypt_asym_alloc_ecc_keypair()
/optee_os/core/drivers/crypto/crypto_api/acipher/
H A Decc.c126 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()
291 static TEE_Result ecc_shared_secret(struct ecc_keypair *private_key, in ecc_shared_secret()
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()
/optee_os/core/drivers/crypto/se050/core/
H A Decc.c294 struct ecc_keypair *key, in se050_inject_keypair()
369 static TEE_Result gen_fallback(struct ecc_keypair *key, size_t len) in gen_fallback()
378 static TEE_Result shared_secret_fallback(struct ecc_keypair *private_key, in shared_secret_fallback()
410 static TEE_Result sign_fallback(uint32_t algo, struct ecc_keypair *key, in sign_fallback()
424 static TEE_Result shared_secret(struct ecc_keypair *private_key, in shared_secret()
489 static TEE_Result sign(uint32_t algo, struct ecc_keypair *key, in sign()
632 static TEE_Result gen_keypair(struct ecc_keypair *key, size_t key_size) in gen_keypair()
696 static TEE_Result do_gen_keypair(struct ecc_keypair *key, size_t size_bytes) in do_gen_keypair()
729 static TEE_Result do_alloc_keypair(struct ecc_keypair *s, uint32_t type, in do_alloc_keypair()
/optee_os/lib/libmbedtls/core/
H A Dsm2-pke.h16 TEE_Result sm2_mbedtls_pke_decrypt(struct ecc_keypair *key, const uint8_t *src,
H A Dsm2-dsa.h13 TEE_Result sm2_mbedtls_dsa_sign(uint32_t algo, struct ecc_keypair *key,
H A Decc.c107 static TEE_Result ecc_generate_keypair(struct ecc_keypair *key, size_t key_size) in ecc_generate_keypair()
164 static TEE_Result ecc_sign(uint32_t algo, struct ecc_keypair *key, in ecc_sign()
312 static TEE_Result ecc_shared_secret(struct ecc_keypair *private_key, in ecc_shared_secret()
399 TEE_Result crypto_asym_alloc_ecc_keypair(struct ecc_keypair *s, in crypto_asym_alloc_ecc_keypair()
H A Dsm2-kep.c256 const struct ecc_keypair *pair) in extract_xy_from_keypair()
274 TEE_Result crypto_acipher_sm2_kep_derive(struct ecc_keypair *my_key, in crypto_acipher_sm2_kep_derive()
275 struct ecc_keypair *my_eph_key, in crypto_acipher_sm2_kep_derive()
H A Dsm2-dsa.c25 TEE_Result sm2_mbedtls_dsa_sign(uint32_t algo __unused, struct ecc_keypair *key, in sm2_mbedtls_dsa_sign()
H A Dsm2-pke.c110 TEE_Result sm2_mbedtls_pke_decrypt(struct ecc_keypair *key, const uint8_t *src, in sm2_mbedtls_pke_decrypt()
/optee_os/core/drivers/crypto/versal/
H A Decc.c226 static TEE_Result sign(uint32_t algo, struct ecc_keypair *key, in sign()
232 struct ecc_keypair ephemeral = { }; in sign()
323 static TEE_Result shared_secret(struct ecc_keypair *private_key, in shared_secret()
359 static TEE_Result do_gen_keypair(struct ecc_keypair *s, size_t size_bits) in do_gen_keypair()
369 static TEE_Result do_alloc_keypair(struct ecc_keypair *s, in do_alloc_keypair()
/optee_os/core/drivers/crypto/crypto_api/include/
H A Ddrvcrypt_acipher.h154 TEE_Result (*alloc_keypair)(struct ecc_keypair *key, uint32_t type,
162 TEE_Result (*gen_keypair)(struct ecc_keypair *key, size_t size_bits);
/optee_os/core/crypto/
H A Dcrypto.c728 TEE_Result crypto_acipher_alloc_ecc_keypair(struct ecc_keypair *key, in crypto_acipher_alloc_ecc_keypair()
753 TEE_Result crypto_acipher_gen_ecc_key(struct ecc_keypair *key, in crypto_acipher_gen_ecc_key()
761 TEE_Result crypto_acipher_ecc_sign(uint32_t algo, struct ecc_keypair *key, in crypto_acipher_ecc_sign()
785 TEE_Result crypto_acipher_ecc_shared_secret(struct ecc_keypair *private_key, in crypto_acipher_ecc_shared_secret()
799 TEE_Result crypto_acipher_sm2_pke_decrypt(struct ecc_keypair *key, in crypto_acipher_sm2_pke_decrypt()
824 TEE_Result crypto_acipher_sm2_kep_derive(struct ecc_keypair *my_key __unused, in crypto_acipher_sm2_kep_derive()
825 struct ecc_keypair *my_eph_key in crypto_acipher_sm2_kep_derive()
/optee_os/core/drivers/crypto/stm32/
H A Decc.c70 static TEE_Result stm32_gen_keypair(struct ecc_keypair *key, size_t size_bits) in stm32_gen_keypair()
145 static TEE_Result sign(uint32_t algo, struct ecc_keypair *key, in sign()
291 static TEE_Result stm32_alloc_keypair(struct ecc_keypair *s, uint32_t type, in stm32_alloc_keypair()
386 static TEE_Result shared_secret(struct ecc_keypair *private_key, in shared_secret()
/optee_os/core/drivers/crypto/caam/acipher/
H A Dcaam_ecc.c99 const struct ecc_keypair *inkey, in do_keypair_conv()
148 static TEE_Result do_allocate_keypair(struct ecc_keypair *key, in do_allocate_keypair()
254 static TEE_Result do_gen_keypair(struct ecc_keypair *key, size_t key_size) in do_gen_keypair()
441 struct ecc_keypair *inkey = sdata->key; in do_sign()
784 struct ecc_keypair *inprivkey = sdata->key_priv; in do_shared_secret()
/optee_os/core/pta/veraison_attestation/
H A Dsign.c17 static struct ecc_keypair *key;
/optee_os/core/drivers/crypto/se050/adaptors/utils/
H A Dutils.c145 uint32_t se050_ecc_keypair_from_nvm(struct ecc_keypair *key) in se050_ecc_keypair_from_nvm()
/optee_os/core/drivers/crypto/hisilicon/
H A Dhpre_ecc.c610 static TEE_Result hpre_ecc_alloc_keypair(struct ecc_keypair *key, in hpre_ecc_alloc_keypair()
904 static TEE_Result hpre_ecc_gen_keypair(struct ecc_keypair *key, in hpre_ecc_gen_keypair()
965 struct ecc_keypair *ecc_key = NULL; in hpre_ecc_do_shared_secret()
1021 struct ecc_keypair *ecc_key = sdata->key; in hpre_ecc_sign_params_fill()
1172 struct ecc_keypair *ecc_key = NULL; in hpre_ecc_sign()
/optee_os/core/tee/
H A Dtee_svc_cryp.c373 RAW_DATA(struct ecc_keypair, d)
380 RAW_DATA(struct ecc_keypair, x)
387 RAW_DATA(struct ecc_keypair, y)
395 RAW_DATA(struct ecc_keypair, curve)
420 RAW_DATA(struct ecc_keypair, d)
427 RAW_DATA(struct ecc_keypair, x)
434 RAW_DATA(struct ecc_keypair, y)
623 sizeof(struct ecc_keypair),
631 sizeof(struct ecc_keypair),
639 sizeof(struct ecc_keypair),
[all …]