Lines Matching refs:test
131 gcry_mpi_t test = gcry_mpi_new ( 0 );
141 gcry_mpi_randomize ( test, nbits, GCRY_WEAK_RANDOM );
143 do_encrypt ( out1_a, out1_b, test, &pk );
145 if ( mpi_cmp( test, out2 ) )
148 sign ( out1_a, out1_b, test, sk );
149 if ( !verify( out1_a, out1_b, test, &pk ) )
152 gcry_mpi_release ( test );
158 log_fatal ("Elgamal test key for %s %s failed\n",
162 log_debug ("Elgamal test key for %s %s failed\n",
348 /* Now we can test our keys (this should never fail!) */
419 /* Now we can test our keys. */