/external/dropbear/libtomcrypt/src/pk/katja/ |
katja_encrypt_key.c | 39 unsigned long modulus_bitlen, modulus_bytelen, x; local 56 modulus_bitlen = mp_count_bits((key->N)); 59 modulus_bitlen = ((modulus_bitlen << 1) / 3); 62 modulus_bitlen -= (modulus_bitlen & 7) + 8; 74 lparamlen, modulus_bitlen, prng, prng_idx, hash_idx,
|
katja_decrypt_key.c | 39 unsigned long modulus_bitlen, modulus_bytelen, x; local 57 modulus_bitlen = mp_count_bits( (key->N)); 60 modulus_bitlen = ((modulus_bitlen << 1) / 3); 63 modulus_bitlen -= (modulus_bitlen & 7) + 8; 84 /* shift right by modulus_bytelen - modulus_bitlen/8 bytes */ 85 for (x = 0; x < (modulus_bitlen >> 3); x++) { 86 tmp[x] = tmp[x+(modulus_bytelen-(modulus_bitlen>>3))]; 90 err = pkcs_1_oaep_decode(tmp, x, lparam, lparamlen, modulus_bitlen, hash_idx [all...] |
/external/dropbear/libtomcrypt/src/pk/rsa/ |
rsa_encrypt_key.c | 40 unsigned long modulus_bitlen, modulus_bytelen, x; local 67 modulus_bitlen = mp_count_bits( (key->N)); 80 lparamlen, modulus_bitlen, prng, prng_idx, hash_idx, 88 modulus_bitlen, prng, prng_idx,
|
rsa_decrypt_key.c | 40 unsigned long modulus_bitlen, modulus_bytelen, x; local 67 modulus_bitlen = mp_count_bits( (key->N)); 90 err = pkcs_1_oaep_decode(tmp, x, lparam, lparamlen, modulus_bitlen, hash_idx, 94 err = pkcs_1_v1_5_decode(tmp, x, LTC_PKCS_1_EME, modulus_bitlen, out, outlen, stat);
|
rsa_sign_hash.c | 41 unsigned long modulus_bitlen, modulus_bytelen, x, y; local 65 modulus_bitlen = mp_count_bits((key->N)); 78 hash_idx, modulus_bitlen, out, &x)) != CRYPT_OK) { 118 modulus_bitlen, NULL, 0,
|
rsa_verify_hash.c | 39 unsigned long modulus_bitlen, modulus_bytelen, x; local 66 modulus_bitlen = mp_count_bits( (key->N)); 95 err = pkcs_1_pss_decode(hash, hashlen, tmpbuf, x, saltlen, hash_idx, modulus_bitlen, stat); 110 outlen = ((modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0)) - 3; 117 if ((err = pkcs_1_v1_5_decode(tmpbuf, x, LTC_PKCS_1_EMSA, modulus_bitlen, out, &outlen, &decoded)) != CRYPT_OK) {
|