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

12

/external/dropbear/libtomcrypt/src/pk/katja/
H A Dkatja_export.c24 @param type The type of exported key (PK_PRIVATE or PK_PUBLIC)
38 if (!(key->type == PK_PRIVATE) && (type == PK_PRIVATE)) {
42 if (type == PK_PRIVATE) {
H A Dkatja_exptmod.c26 @param which Which exponent to use, e.g. PK_PRIVATE or PK_PUBLIC
44 if (which == PK_PRIVATE && (key->type != PK_PRIVATE)) {
49 if (which != PK_PRIVATE && which != PK_PUBLIC) {
64 if (which == PK_PRIVATE) {
H A Dkatja_decrypt_key.c79 if ((err = katja_exptmod(in, inlen, tmp, &x, PK_PRIVATE, key)) != CRYPT_OK) {
H A Dkatja_import.c63 key->type = PK_PRIVATE;
H A Dkatja_make_key.c84 key->type = PK_PRIVATE;
/external/dropbear/libtomcrypt/src/pk/rsa/
H A Drsa_export.c24 @param type The type of exported key (PK_PRIVATE or PK_PUBLIC)
36 if (!(key->type == PK_PRIVATE) && (type == PK_PRIVATE)) {
40 if (type == PK_PRIVATE) {
H A Drsa_exptmod.c26 @param which Which exponent to use, e.g. PK_PRIVATE or PK_PUBLIC
44 if (which == PK_PRIVATE && (key->type != PK_PRIVATE)) {
49 if (which != PK_PRIVATE && which != PK_PUBLIC) {
64 if (which == PK_PRIVATE) {
H A Drsa_decrypt_key.c83 if ((err = ltc_mp.rsa_me(in, inlen, tmp, &x, PK_PRIVATE, key)) != CRYPT_OK) {
H A Drsa_sign_hash.c127 return ltc_mp.rsa_me(out, x, out, outlen, PK_PRIVATE, key);
H A Drsa_import.c117 key->type = PK_PRIVATE;
H A Drsa_make_key.c96 key->type = PK_PRIVATE;
/external/dropbear/libtomcrypt/src/pk/dsa/
H A Ddsa_export.c24 @param type The type of key to export (PK_PRIVATE or PK_PUBLIC)
37 if (type == PK_PRIVATE && key->type != PK_PRIVATE) {
41 if (type != PK_PUBLIC && type != PK_PRIVATE) {
47 if (type == PK_PRIVATE) {
H A Ddsa_import.c59 key->type = PK_PRIVATE;
H A Ddsa_decrypt_key.c45 if (key->type != PK_PRIVATE) {
H A Ddsa_make_key.c116 key->type = PK_PRIVATE;
H A Ddsa_sign_hash.c47 if (key->type != PK_PRIVATE) {
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Decc_export.c30 @param type The type of key you want to export (PK_PRIVATE or PK_PUBLIC)
45 if (key->type != PK_PRIVATE && type == PK_PRIVATE) {
56 if (type == PK_PRIVATE) {
H A Decc_shared_secret.c48 if (private_key->type != PK_PRIVATE) {
H A Decc_sign_hash.c51 if (key->type != PK_PRIVATE) {
H A Decc_decrypt_key.c51 if (key->type != PK_PRIVATE) {
H A Decc_make_key.c103 key->type = PK_PRIVATE;
H A Decc_import.c119 key->type = PK_PRIVATE;
/external/dropbear/libtomcrypt/testprof/
H A Ddsa_test.c48 DO(dsa_export(out2, &x, PK_PRIVATE, &key));
H A Dkatja_test.c145 DO(katja_export(tmp, &len2, PK_PRIVATE, &key));
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Dcrypto_libtomcrypt.c466 if (pk->rsa.type != PK_PRIVATE) {
588 return crypto_rsa_encrypt_pkcs1(1, &key->rsa, PK_PRIVATE, in, inlen,

Completed in 84 milliseconds

12