3 ms·
That's if you sign the data. If you just run Decrypt, it does not ask for a hash function. Under the hood, it uses Sha-1. Edit: Here is a link to the golang im
by jamra 13y ago
That's if you sign the data. If you just run Decrypt, it does not ask for a hash function. Under the hood, it uses Sha-1.
Edit: Here is a link to the golang implementation
http://golang.org/pkg/crypto/rsa/#DecryptOAEP http://golang.org/pkg/crypto/rsa/#DecryptOAEP
It takes a hash as the first param
Here is the C# counterpart
http://msdn.microsoft.com/en-us/library/system.security.cryptography.rsa.decryptvalue(v=vs.110).aspx http://msdn.microsoft.com/en-us/library/system.security.cryp...
It does not take in a hash function though I believe you can modify how it works although I never tried to.
I wasn't referring to explicitly signing the data.
- deleted 13y ago[deleted]
- Locke1689 13y agoAh, I see. The problem is that it uses PKCS #1 v2, which defaults to SHA-1. It seems OpenSSL does the same. That is unfortunate.