diff options
author | Niels Möller <nisse@lysator.liu.se> | 2012-04-09 21:46:13 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2012-04-09 21:46:13 +0200 |
commit | 479aafcc16f505a5e3127fedabb624a2cf6e70c9 (patch) | |
tree | 447c2d2e114689193972ca5af06d35fbe1ebf375 /pkcs1.h | |
parent | e9045bd365003feb8ca68d3da29e39a1f64c1e23 (diff) | |
download | nettle-479aafcc16f505a5e3127fedabb624a2cf6e70c9.tar.gz |
New function pkcs1_decrypt, use in rsa_decrypt.
Diffstat (limited to 'pkcs1.h')
-rw-r--r-- | pkcs1.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,7 @@ extern "C" { #define pkcs1_rsa_sha256_encode_digest nettle_pkcs1_rsa_sha256_encode_digest #define pkcs1_rsa_sha512_encode nettle_pkcs1_rsa_sha512_encode #define pkcs1_rsa_sha512_encode_digest nettle_pkcs1_rsa_sha512_encode_digest +#define pkcs1_decrypt nettle_pkcs1_decrypt struct md5_ctx; struct sha1_ctx; @@ -57,6 +58,11 @@ pkcs1_signature_prefix(unsigned size, unsigned digest_size); int +pkcs1_decrypt (unsigned key_size, + const mpz_t m, + unsigned *length, uint8_t *message); + +int pkcs1_rsa_md5_encode(mpz_t m, unsigned length, struct md5_ctx *hash); int |