Home
last modified time | relevance | path

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

12

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_export.c39 if (key->type != PK_PRIVATE && type == PK_PRIVATE) { in ecc_export()
46 if (type == PK_PRIVATE) { in ecc_export()
A Decc_get_key.c41 else if (type == PK_PRIVATE) { in ecc_get_key()
42 …if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_M… in ecc_get_key()
A Decc_export_openssl.c36 int flag_pri = type & PK_PRIVATE ? 1 : 0; in ecc_export_openssl()
42 if (key->type != PK_PRIVATE && flag_pri) return CRYPT_PK_TYPE_MISMATCH; in ecc_export_openssl()
A Decc_import_openssl.c43 err = ecc_set_key(bin_k, seq_priv[1].size, PK_PRIVATE, key); in _ecc_import_private_with_oid()
102 err = ecc_set_key(bin_k, len_k, PK_PRIVATE, key); in _ecc_import_private_with_curve()
A Decc_shared_secret.c42 if (private_key->type != PK_PRIVATE) { in ecc_shared_secret()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_export.c38 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in rsa_export()
42 if (type == PK_PRIVATE) { in rsa_export()
A Drsa_exptmod.c47 if (which == PK_PRIVATE && (key->type != PK_PRIVATE)) { in rsa_exptmod()
52 if (which != PK_PRIVATE && which != PK_PUBLIC) { in rsa_exptmod()
74 if (which == PK_PRIVATE) { in rsa_exptmod()
A Drsa_set.c46 key->type = PK_PRIVATE; in rsa_set_key()
81 if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_MISMATCH; in rsa_set_factors()
119 if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_MISMATCH; in rsa_set_crt_params()
A Drsa_decrypt_key.c82 if ((err = ltc_mp.rsa_me(in, inlen, tmp, &x, PK_PRIVATE, key)) != CRYPT_OK) { in rsa_decrypt_key_ex()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_export.c40 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in dsa_export()
44 if (type == PK_PRIVATE) { in dsa_export()
A Ddsa_set.c86 if (type == PK_PRIVATE) { in dsa_set_key()
87 key->type = PK_PRIVATE; in dsa_set_key()
A Ddsa_import.c59 key->type = PK_PRIVATE; in dsa_import()
91 key->type = PK_PRIVATE; in dsa_import()
A Ddsa_generate_key.c39 key->type = PK_PRIVATE; in dsa_generate_key()
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
A Dec25519_export.c45 if (which == PK_PRIVATE) { in ec25519_export()
46 if(key->type != PK_PRIVATE) return CRYPT_PK_INVALID_TYPE; in ec25519_export()
/optee_os/core/lib/libtomcrypt/src/pk/dh/
A Ddh_set.c99 if (type == PK_PRIVATE) { in dh_set_key()
100 key->type = PK_PRIVATE; in dh_set_key()
A Ddh_export_key.c32 k = (type == PK_PRIVATE) ? key->x : key->y; in dh_export_key()
A Ddh_export.c33 if (type == PK_PRIVATE) { in dh_export()
A Ddh_shared_secret.c36 if (private_key->type != PK_PRIVATE) { in dh_shared_secret()
A Ddh_generate_key.c71 key->type = PK_PRIVATE; in dh_generate_key()
/optee_os/core/lib/libtomcrypt/src/pk/ed25519/
A Ded25519_make_key.c37 key->type = PK_PRIVATE; in ed25519_make_key()
A Ded25519_set_key.c49 key->type = PK_PRIVATE; in ed25519_set_key()
A Ded25519_sign.c41 if (private_key->type != PK_PRIVATE) return CRYPT_PK_INVALID_TYPE; in ed25519_sign()
/optee_os/core/lib/libtomcrypt/src/pk/x25519/
A Dx25519_shared_secret.c36 if(private_key->type != PK_PRIVATE) return CRYPT_PK_INVALID_TYPE; in x25519_shared_secret()
A Dx25519_make_key.c43 key->type = PK_PRIVATE; in x25519_make_key()
A Dx25519_set_key.c49 key->type = PK_PRIVATE; in x25519_set_key()

Completed in 14 milliseconds

12