Home
last modified time | relevance | path

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

12

/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_export.c37 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in dsa_export()
41 if (type != PK_PUBLIC && type != PK_PRIVATE) { in dsa_export()
47 if (type == PK_PRIVATE) { in dsa_export()
Ddsa_import.c59 key->type = PK_PRIVATE; in dsa_import()
Ddsa_decrypt_key.c45 if (key->type != PK_PRIVATE) { in dsa_decrypt_key()
Ddsa_sign_hash.c47 if (key->type != PK_PRIVATE) { in dsa_sign_hash_raw()
Ddsa_make_key.c116 key->type = PK_PRIVATE; in dsa_make_key()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_exptmod.c44 if (which == PK_PRIVATE && (key->type != PK_PRIVATE)) { in rsa_exptmod()
49 if (which != PK_PRIVATE && which != PK_PUBLIC) { in rsa_exptmod()
64 if (which == PK_PRIVATE) { in rsa_exptmod()
Drsa_export.c36 if (!(key->type == PK_PRIVATE) && (type == PK_PRIVATE)) { in rsa_export()
40 if (type == PK_PRIVATE) { in rsa_export()
Drsa_decrypt_key.c83 if ((err = ltc_mp.rsa_me(in, inlen, tmp, &x, PK_PRIVATE, key)) != CRYPT_OK) { in rsa_decrypt_key_ex()
Drsa_sign_hash.c127 return ltc_mp.rsa_me(out, x, out, outlen, PK_PRIVATE, key); in rsa_sign_hash_ex()
Drsa_import.c117 key->type = PK_PRIVATE; in rsa_import()
Drsa_make_key.c96 key->type = PK_PRIVATE; in rsa_make_key()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_export.c38 if (!(key->type == PK_PRIVATE) && (type == PK_PRIVATE)) { in katja_export()
42 if (type == PK_PRIVATE) { in katja_export()
Dkatja_exptmod.c44 if (which == PK_PRIVATE && (key->type != PK_PRIVATE)) { in katja_exptmod()
49 if (which != PK_PRIVATE && which != PK_PUBLIC) { in katja_exptmod()
64 if (which == PK_PRIVATE) { in katja_exptmod()
Dkatja_decrypt_key.c79 if ((err = katja_exptmod(in, inlen, tmp, &x, PK_PRIVATE, key)) != CRYPT_OK) { in katja_decrypt_key()
Dkatja_import.c63 key->type = PK_PRIVATE; in katja_import()
Dkatja_make_key.c84 key->type = PK_PRIVATE; in katja_make_key()
/external/dropbear/libtomcrypt/src/pk/ecc/
Decc_export.c45 if (key->type != PK_PRIVATE && type == PK_PRIVATE) { in ecc_export()
56 if (type == PK_PRIVATE) { in ecc_export()
Decc_shared_secret.c48 if (private_key->type != PK_PRIVATE) { in ecc_shared_secret()
Decc_sign_hash.c51 if (key->type != PK_PRIVATE) { in ecc_sign_hash()
Decc_decrypt_key.c51 if (key->type != PK_PRIVATE) { in ecc_decrypt_key()
Decc_make_key.c103 key->type = PK_PRIVATE; in ecc_make_key_ex()
Decc_import.c119 key->type = PK_PRIVATE; in ecc_import_ex()
/external/dropbear/libtomcrypt/testprof/
Ddsa_test.c48 DO(dsa_export(out2, &x, PK_PRIVATE, &key)); in dsa_test()
Drsa_test.c88 DO(rsa_export(buf, &len, PK_PRIVATE, &key)); in rsa_compat_test()
284 DO(rsa_export(tmp, &len2, PK_PRIVATE, &key)); in rsa_test()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_libtomcrypt.c472 if (pk->rsa.type != PK_PRIVATE) { in crypto_private_key_import()
594 return crypto_rsa_encrypt_pkcs1(1, &key->rsa, PK_PRIVATE, in, inlen, in crypto_private_key_sign_pkcs1()

12