Home
last modified time | relevance | path

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

12

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_export.c32 if (key->type != PK_PRIVATE && type == PK_PRIVATE) { in ecc_export()
39 if (type == PK_PRIVATE) { in ecc_export()
H A Decc_get_key.c34 else if (type == PK_PRIVATE) { in ecc_get_key()
35 …if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_M… in ecc_get_key()
H A Decc_import_openssl.c36 err = ecc_set_key(bin_k, seq_priv[1].size, PK_PRIVATE, key); in s_ecc_import_private_with_oid()
95 err = ecc_set_key(bin_k, len_k, PK_PRIVATE, key); in s_ecc_import_private_with_curve()
H A Decc_export_openssl.c29 int flag_pri = type & PK_PRIVATE ? 1 : 0; in ecc_export_openssl()
35 if (key->type != PK_PRIVATE && flag_pri) return CRYPT_PK_TYPE_MISMATCH; in ecc_export_openssl()
H A Decc_shared_secret.c35 if (private_key->type != PK_PRIVATE) { in ecc_shared_secret()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
H A Drsa_export.c31 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in rsa_export()
35 if (type == PK_PRIVATE) { in rsa_export()
H A Drsa_set.c38 key->type = PK_PRIVATE; in rsa_set_key()
73 if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_MISMATCH; in rsa_set_factors()
111 if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_MISMATCH; in rsa_set_crt_params()
H A Drsa_exptmod.c40 if (which == PK_PRIVATE && (key->type != PK_PRIVATE)) { in rsa_exptmod()
45 if (which != PK_PRIVATE && which != PK_PUBLIC) { in rsa_exptmod()
67 if (which == PK_PRIVATE) { in rsa_exptmod()
H A Drsa_decrypt_key.c77 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/
H A Ddsa_export.c33 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in dsa_export()
37 if (type == PK_PRIVATE) { in dsa_export()
H A Ddsa_set.c79 if (type == PK_PRIVATE) { in dsa_set_key()
80 key->type = PK_PRIVATE; in dsa_set_key()
H A Ddsa_generate_key.c32 key->type = PK_PRIVATE; in dsa_generate_key()
H A Ddsa_import.c52 key->type = PK_PRIVATE; in dsa_import()
84 key->type = PK_PRIVATE; in dsa_import()
/optee_os/core/lib/libtomcrypt/src/pk/ec25519/
H A Dec25519_export.c38 if (which == PK_PRIVATE) { in ec25519_export()
39 if(key->type != PK_PRIVATE) return CRYPT_PK_INVALID_TYPE; in ec25519_export()
/optee_os/core/lib/libtomcrypt/src/pk/dh/
H A Ddh_set.c92 if (type == PK_PRIVATE) { in dh_set_key()
93 key->type = PK_PRIVATE; in dh_set_key()
H A Ddh_export_key.c25 k = (type == PK_PRIVATE) ? key->x : key->y; in dh_export_key()
H A Ddh_export.c26 if (type == PK_PRIVATE) { in dh_export()
H A Ddh_shared_secret.c29 if (private_key->type != PK_PRIVATE) { in dh_shared_secret()
H A Ddh_generate_key.c64 key->type = PK_PRIVATE; in dh_generate_key()
/optee_os/core/lib/libtomcrypt/src/pk/ed25519/
H A Ded25519_make_key.c29 key->type = PK_PRIVATE; in ed25519_make_key()
H A Ded25519_import_raw.c27 if (which == PK_PRIVATE) { in ed25519_import_raw()
/optee_os/core/lib/libtomcrypt/src/pk/x25519/
H A Dx25519_shared_secret.c29 if(private_key->type != PK_PRIVATE) return CRYPT_PK_INVALID_TYPE; in x25519_shared_secret()
H A Dx25519_make_key.c35 key->type = PK_PRIVATE; in x25519_make_key()
H A Dx25519_import_raw.c27 if (which == PK_PRIVATE) { in x25519_import_raw()
/optee_os/core/lib/libtomcrypt/
H A Ded25519.c85 .type = PK_PRIVATE, in crypto_acipher_ed25519_sign()
121 .type = PK_PRIVATE, in crypto_acipher_ed25519ctx_sign()

12