implement gmp_rsa_private_key.decrypt()

This commit is contained in:
Andreas Steffen
2009-06-09 11:03:35 +02:00
committed by Martin Willi
parent c50ff68d0c
commit d615ffdcf3
2 changed files with 34 additions and 4 deletions
@@ -377,6 +377,7 @@ static bool encrypt_(private_gmp_rsa_public_key_t *this, chunk_t plain,
memcpy(pos, plain.ptr, plain.len);
DBG3("padded data before rsa encryption: %B", &em);
/* rsa encryption using PKCS#1 RSAEP */
*crypto = rsaep(this, em);
DBG3("rsa encrypted data: %B", crypto);
chunk_clear(&em);