sign screenshots saved to a profile

This commit is contained in:
Chris Danford
2004-02-14 20:47:50 +00:00
parent 139a8a19d1
commit dfd5e7eb36
5 changed files with 45 additions and 14 deletions
+2 -2
View File
@@ -30,8 +30,8 @@ void RSASignFile(const char *privFilename, const char *messageFilename, const ch
{
FileSource privFile(privFilename, true, new HexDecoder);
RSASSA_PKCS1v15_SHA_Signer priv(privFile);
// RSASSA_PKCS1v15_SHA_Signer ignores the rng. Use a real RNG for other signature schemes!
FileSource f(messageFilename, true, new SignerFilter(NullRNG(), priv, new HexEncoder(new FileSink(signatureFilename))));
RandomNumberGenerator &rng = RandomPool();
FileSource f(messageFilename, true, new SignerFilter(rng, priv, new HexEncoder(new FileSink(signatureFilename))));
}
bool RSAVerifyFile(const char *pubFilename, const char *messageFilename, const char *signatureFilename)