Lines Matching defs:signature
133 byte signature[40];
136 signer.SignMessage(rng, message, 3, signature);
139 if (!verifier.VerifyMessage(message, 3, signature, sizeof(signature)))
141 cerr << "DSA signature and verification failed.\n";
144 cout << "7. DSA signature and verification succeeded.\n";
147 // try to verify an invalid signature
148 signature[0] ^= 1;
149 if (verifier.VerifyMessage(message, 3, signature, sizeof(signature)))
151 cerr << "DSA signature verification failed to detect bad signature.\n";
154 cout << "8. DSA signature verification successfully detected bad signature.\n";