implement gmp_rsa_private_key.decrypt()
This commit is contained in:
committed by
Martin Willi
parent
c50ff68d0c
commit
d615ffdcf3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user