Home
last modified time | relevance | path

Searched refs:PK_PUBLIC (Results 1 – 20 of 20) sorted by relevance

/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_export.c41 if (type != PK_PUBLIC && type != PK_PRIVATE) { in dsa_export()
45 flags[0] = (type != PK_PUBLIC) ? 1 : 0; in dsa_export()
Ddsa_import.c70 key->type = PK_PUBLIC; in dsa_import()
/external/dropbear/libtomcrypt/testprof/
Drsa_test.c95 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
105 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
115 DO(rsa_export(buf, &len, PK_PUBLIC, &key)); in rsa_compat_test()
287 DO(rsa_export(tmp, &len2, PK_PUBLIC, &key)); in rsa_test()
Decc_test.c145 DO(ecc_export (buf[1], &y, PK_PUBLIC, &userb)); in ecc_tests()
192 DO(ecc_export(buf[0], &x, PK_PUBLIC, &usera)); in ecc_tests()
Ddsa_test.c58 DO(dsa_export(out2, &x, PK_PUBLIC, &key)); in dsa_test()
Dkatja_test.c148 DO(katja_export(tmp, &len2, PK_PUBLIC, &key)); in katja_test()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_import.c85 key->type = PK_PUBLIC; in rsa_import()
130 key->type = PK_PUBLIC; in rsa_import()
Drsa_encrypt_key.c95 return ltc_mp.rsa_me(out, x, out, outlen, PK_PUBLIC, key); in rsa_encrypt_key_ex()
Drsa_exptmod.c49 if (which != PK_PRIVATE && which != PK_PUBLIC) { in rsa_exptmod()
Drsa_verify_hash.c82 if ((err = ltc_mp.rsa_me(sig, siglen, tmpbuf, &x, PK_PUBLIC, key)) != CRYPT_OK) { in rsa_verify_hash_ex()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_encrypt_key.c80 return katja_exptmod(out, x, out, outlen, PK_PUBLIC, key); in katja_encrypt_key()
Dkatja_import.c66 key->type = PK_PUBLIC; in katja_import()
Dkatja_exptmod.c49 if (which != PK_PRIVATE && which != PK_PUBLIC) { in katja_exptmod()
/external/dropbear/libtomcrypt/src/pk/ecc/
Decc_ansi_x963_import.c91 key->type = PK_PUBLIC; in ecc_ansi_x963_import_ex()
Decc_encrypt_key.c89 if ((err = ecc_export(pub_expt, &pubkeysize, PK_PUBLIC, &pubkey)) != CRYPT_OK) { in ecc_encrypt_key()
Decc_import.c131 key->type = PK_PUBLIC; in ecc_import_ex()
/external/wpa_supplicant/
Dcrypto_libtomcrypt.c441 if (pk->rsa.type != PK_PUBLIC) { in crypto_public_key_import()
585 return crypto_rsa_encrypt_pkcs1(2, &key->rsa, PK_PUBLIC, in, inlen, in crypto_public_key_encrypt_pkcs1_v15()
626 res = rsa_exptmod(crypt, crypt_len, plain, &len, PK_PUBLIC, in crypto_public_key_decrypt_pkcs1()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_pk.h4 PK_PUBLIC=0, enumerator
/external/dropbear/libtomcrypt/
Dcrypt.tex336 if ((err = rsa_export(buffer, &x, PK_PUBLIC, &key)) != CRYPT_OK) {
6381 @param which PK_PUBLIC for public RSA and PK_PRIVATE for private RSA
6454 /** Type of key, PK_PRIVATE or PK_PUBLIC */
Dchanges666 (e.g. not PK_PRIVATE or PK_PUBLIC)