"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "rsa.h" between
nettle-3.7.2.tar.gz and nettle-3.7.3.tar.gz

About: Nettle is a low-level cryptographic library.

rsa.h  (nettle-3.7.2):rsa.h  (nettle-3.7.3)
skipping to change at line 428 skipping to change at line 428
/* like rsa_decrypt_tr but with additional side-channel resistance. /* like rsa_decrypt_tr but with additional side-channel resistance.
* NOTE: the length of the final message must be known in advance. */ * NOTE: the length of the final message must be known in advance. */
int int
rsa_sec_decrypt(const struct rsa_public_key *pub, rsa_sec_decrypt(const struct rsa_public_key *pub,
const struct rsa_private_key *key, const struct rsa_private_key *key,
void *random_ctx, nettle_random_func *random, void *random_ctx, nettle_random_func *random,
size_t length, uint8_t *message, size_t length, uint8_t *message,
const mpz_t gibberish); const mpz_t gibberish);
/* Compute x, the e:th root of m. Calling it with x == m is allowed. */ /* Compute x, the e:th root of m. Calling it with x == m is allowed.
It is required that 0 <= m < n. */
void void
rsa_compute_root(const struct rsa_private_key *key, rsa_compute_root(const struct rsa_private_key *key,
mpz_t x, const mpz_t m); mpz_t x, const mpz_t m);
/* Safer variant, using RSA blinding, and checking the result after /* Safer variant, using RSA blinding, and checking the result after
CRT. */ CRT. It is required that 0 <= m < n. */
int int
rsa_compute_root_tr(const struct rsa_public_key *pub, rsa_compute_root_tr(const struct rsa_public_key *pub,
const struct rsa_private_key *key, const struct rsa_private_key *key,
void *random_ctx, nettle_random_func *random, void *random_ctx, nettle_random_func *random,
mpz_t x, const mpz_t m); mpz_t x, const mpz_t m);
/* Key generation */ /* Key generation */
/* Note that the key structs must be initialized first. */ /* Note that the key structs must be initialized first. */
int int
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)