Lines Matching defs:signature
103 gcry_mpi_t signature = gcry_mpi_new (nbits);
126 /* Create another random plaintext as data for signature checking. */
129 /* Use the RSA secret function to create a signature of the plaintext. */
130 secret (signature, plaintext, sk);
132 /* Use the RSA public function to verify this signature. */
133 public (decr_plaintext, signature, &pk);
137 /* Modify the signature and check that the signing fails. */
138 gcry_mpi_add_ui (signature, signature, 1);
139 public (decr_plaintext, signature, &pk);
146 gcry_mpi_release (signature);
1146 errtxt = "bad signature not detected";