/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/headers/ |
tomcrypt_pkcs.h | 30 unsigned long modulus_bitlen, 39 unsigned long modulus_bitlen, 47 unsigned long modulus_bitlen, prng_state *prng, 53 unsigned long modulus_bitlen, int hash_idx, 60 unsigned long modulus_bitlen, 66 unsigned long modulus_bitlen, int *res);
|
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
pkcs_1_v1_5_decode.c | 25 * @param modulus_bitlen The bit length of the RSA modulus 35 unsigned long modulus_bitlen, 46 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0);
|
pkcs_1_v1_5_encode.c | 25 * \param modulus_bitlen The bit length of the RSA modulus 36 unsigned long modulus_bitlen, 58 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0);
|
pkcs_1_pss_decode.c | 28 @param modulus_bitlen The bit length of the RSA modulus 35 unsigned long modulus_bitlen, int *res) 54 modulus_len = (modulus_bitlen>>3) + (modulus_bitlen & 7 ? 1 : 0); 99 if ((sig[0] & ~(0xFF >> ((modulus_len<<3) - (modulus_bitlen-1)))) != 0) { 115 DB[0] &= 0xFF >> ((modulus_len<<3) - (modulus_bitlen-1));
|
pkcs_1_oaep_encode.c | 26 @param modulus_bitlen The bit length of the RSA modulus 36 unsigned long modulus_bitlen, prng_state *prng, 59 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0);
|
pkcs_1_pss_encode.c | 28 @param modulus_bitlen The bit length of the RSA modulus 36 unsigned long modulus_bitlen, 57 modulus_len = (modulus_bitlen>>3) + (modulus_bitlen & 7 ? 1 : 0); 149 /* now clear the 8*modulus_len - modulus_bitlen most significant bits */ 150 out[0] &= 0xFF >> ((modulus_len<<3) - (modulus_bitlen-1));
|
pkcs_1_oaep_decode.c | 26 @param modulus_bitlen The bit length of the RSA modulus 35 unsigned long modulus_bitlen, int hash_idx, 56 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0);
|
/external/dropbear/libtomcrypt/src/pk/rsa/ |
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_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_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) {
|
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,
|
/external/dropbear/libtomcrypt/ |
crypt.tex | [all...] |