Home
last modified time | relevance | path

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

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_export.c32 if (key->type != PK_PRIVATE && type == PK_PRIVATE) { in ecc_export()
39 if (type == PK_PRIVATE) { in ecc_export()
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()
A Decc_shared_secret.c35 if (private_key->type != PK_PRIVATE) { in ecc_shared_secret()
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()
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()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_export.c31 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in rsa_export()
35 if (type == PK_PRIVATE) { in rsa_export()
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()
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()
A Drsa_decrypt_key.c75 if ((err = ltc_mp.rsa_me(in, inlen, tmp, &x, PK_PRIVATE, key)) != CRYPT_OK) { in rsa_decrypt_key_ex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_export.c33 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in dsa_export()
37 if (type == PK_PRIVATE) { in dsa_export()
A Ddsa_set.c79 if (type == PK_PRIVATE) { in dsa_set_key()
80 key->type = PK_PRIVATE; in dsa_set_key()
A Ddsa_generate_key.c32 key->type = PK_PRIVATE; in dsa_generate_key()
A Ddsa_import.c52 key->type = PK_PRIVATE; in dsa_import()
84 key->type = PK_PRIVATE; in dsa_import()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ec25519/
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-3.20.0/core/lib/libtomcrypt/src/pk/ed25519/
A Ded25519_make_key.c29 key->type = PK_PRIVATE; in ed25519_make_key()
A Ded25519_import_raw.c27 if (which == PK_PRIVATE) { in ed25519_import_raw()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/x25519/
A Dx25519_shared_secret.c29 if(private_key->type != PK_PRIVATE) return CRYPT_PK_INVALID_TYPE; in x25519_shared_secret()
A Dx25519_make_key.c35 key->type = PK_PRIVATE; in x25519_make_key()
A Dx25519_import_raw.c27 if (which == PK_PRIVATE) { in x25519_import_raw()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/
A Ddh_set.c92 if (type == PK_PRIVATE) { in dh_set_key()
93 key->type = PK_PRIVATE; in dh_set_key()
A Ddh_export_key.c25 k = (type == PK_PRIVATE) ? key->x : key->y; in dh_export_key()
A Ddh_export.c26 if (type == PK_PRIVATE) { in dh_export()
A Ddh_shared_secret.c29 if (private_key->type != PK_PRIVATE) { in dh_shared_secret()
A Ddh_generate_key.c64 key->type = PK_PRIVATE; in dh_generate_key()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Ded25519.c68 .type = PK_PRIVATE, in crypto_acipher_ed25519_sign()
99 .type = PK_PRIVATE, in crypto_acipher_ed25519ctx_sign()

Completed in 12 milliseconds

12