summaryrefslogtreecommitdiff
path: root/pkcs1.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2012-04-09 21:46:13 +0200
committerNiels Möller <nisse@lysator.liu.se>2012-04-09 21:46:13 +0200
commit479aafcc16f505a5e3127fedabb624a2cf6e70c9 (patch)
tree447c2d2e114689193972ca5af06d35fbe1ebf375 /pkcs1.h
parente9045bd365003feb8ca68d3da29e39a1f64c1e23 (diff)
downloadnettle-479aafcc16f505a5e3127fedabb624a2cf6e70c9.tar.gz
New function pkcs1_decrypt, use in rsa_decrypt.
Diffstat (limited to 'pkcs1.h')
-rw-r--r--pkcs1.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkcs1.h b/pkcs1.h
index 732d0edc..95a6a835 100644
--- a/pkcs1.h
+++ b/pkcs1.h
@@ -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