Home
last modified time | relevance | path

Searched refs:modulus_bitlen (Results 1 – 14 of 14) sorted by relevance

/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_decrypt_key.c39 unsigned long modulus_bitlen, modulus_bytelen, x; in katja_decrypt_key() local
57 modulus_bitlen = mp_count_bits( (key->N)); in katja_decrypt_key()
60 modulus_bitlen = ((modulus_bitlen << 1) / 3); in katja_decrypt_key()
63 modulus_bitlen -= (modulus_bitlen & 7) + 8; in katja_decrypt_key()
85 for (x = 0; x < (modulus_bitlen >> 3); x++) { in katja_decrypt_key()
86 tmp[x] = tmp[x+(modulus_bytelen-(modulus_bitlen>>3))]; in katja_decrypt_key()
90 err = pkcs_1_oaep_decode(tmp, x, lparam, lparamlen, modulus_bitlen, hash_idx, in katja_decrypt_key()
Dkatja_encrypt_key.c39 unsigned long modulus_bitlen, modulus_bytelen, x; in katja_encrypt_key() local
56 modulus_bitlen = mp_count_bits((key->N)); in katja_encrypt_key()
59 modulus_bitlen = ((modulus_bitlen << 1) / 3); in katja_encrypt_key()
62 modulus_bitlen -= (modulus_bitlen & 7) + 8; in katja_encrypt_key()
74 lparamlen, modulus_bitlen, prng, prng_idx, hash_idx, in katja_encrypt_key()
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_pkcs.h30 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/rsa/
Drsa_verify_hash.c39 unsigned long modulus_bitlen, modulus_bytelen, x; in rsa_verify_hash_ex() local
66 modulus_bitlen = mp_count_bits( (key->N)); in rsa_verify_hash_ex()
95 err = pkcs_1_pss_decode(hash, hashlen, tmpbuf, x, saltlen, hash_idx, modulus_bitlen, stat); in rsa_verify_hash_ex()
110 outlen = ((modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0)) - 3; in rsa_verify_hash_ex()
117 …if ((err = pkcs_1_v1_5_decode(tmpbuf, x, LTC_PKCS_1_EMSA, modulus_bitlen, out, &outlen, &decoded))… in rsa_verify_hash_ex()
Drsa_encrypt_key.c40 unsigned long modulus_bitlen, modulus_bytelen, x; in rsa_encrypt_key_ex() local
67 modulus_bitlen = mp_count_bits( (key->N)); in rsa_encrypt_key_ex()
80 lparamlen, modulus_bitlen, prng, prng_idx, hash_idx, in rsa_encrypt_key_ex()
88 modulus_bitlen, prng, prng_idx, in rsa_encrypt_key_ex()
Drsa_decrypt_key.c40 unsigned long modulus_bitlen, modulus_bytelen, x; in rsa_decrypt_key_ex() local
67 modulus_bitlen = mp_count_bits( (key->N)); in rsa_decrypt_key_ex()
90 err = pkcs_1_oaep_decode(tmp, x, lparam, lparamlen, modulus_bitlen, hash_idx, in rsa_decrypt_key_ex()
94 err = pkcs_1_v1_5_decode(tmp, x, LTC_PKCS_1_EME, modulus_bitlen, out, outlen, stat); in rsa_decrypt_key_ex()
Drsa_sign_hash.c41 unsigned long modulus_bitlen, modulus_bytelen, x, y; in rsa_sign_hash_ex() local
65 modulus_bitlen = mp_count_bits((key->N)); in rsa_sign_hash_ex()
78 hash_idx, modulus_bitlen, out, &x)) != CRYPT_OK) { in rsa_sign_hash_ex()
118 modulus_bitlen, NULL, 0, in rsa_sign_hash_ex()
/external/dropbear/libtomcrypt/src/pk/pkcs1/
Dpkcs_1_pss_decode.c35 unsigned long modulus_bitlen, int *res) in pkcs_1_pss_decode() argument
54 modulus_len = (modulus_bitlen>>3) + (modulus_bitlen & 7 ? 1 : 0); in pkcs_1_pss_decode()
99 if ((sig[0] & ~(0xFF >> ((modulus_len<<3) - (modulus_bitlen-1)))) != 0) { in pkcs_1_pss_decode()
115 DB[0] &= 0xFF >> ((modulus_len<<3) - (modulus_bitlen-1)); in pkcs_1_pss_decode()
Dpkcs_1_v1_5_decode.c35 unsigned long modulus_bitlen, in pkcs_1_v1_5_decode() argument
46 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0); in pkcs_1_v1_5_decode()
Dpkcs_1_v1_5_encode.c36 unsigned long modulus_bitlen, in pkcs_1_v1_5_encode() argument
58 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0); in pkcs_1_v1_5_encode()
Dpkcs_1_pss_encode.c36 unsigned long modulus_bitlen, in pkcs_1_pss_encode() argument
57 modulus_len = (modulus_bitlen>>3) + (modulus_bitlen & 7 ? 1 : 0); in pkcs_1_pss_encode()
150 out[0] &= 0xFF >> ((modulus_len<<3) - (modulus_bitlen-1)); in pkcs_1_pss_encode()
Dpkcs_1_oaep_encode.c36 unsigned long modulus_bitlen, prng_state *prng, in pkcs_1_oaep_encode() argument
59 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0); in pkcs_1_oaep_encode()
Dpkcs_1_oaep_decode.c35 unsigned long modulus_bitlen, int hash_idx, in pkcs_1_oaep_decode() argument
56 modulus_len = (modulus_bitlen >> 3) + (modulus_bitlen & 7 ? 1 : 0); in pkcs_1_oaep_decode()
/external/dropbear/libtomcrypt/
Dcrypt.tex3074 unsigned long modulus_bitlen,
3096 unsigned long modulus_bitlen,
3121 unsigned long modulus_bitlen,
3154 unsigned long modulus_bitlen,
3185 unsigned long modulus_bitlen,
3213 unsigned long modulus_bitlen,