Lines Matching refs:lhash
1353 unsigned char *lhash = NULL; /* Hash of the label. */
1376 lhash = gcry_malloc (hlen);
1377 if (!lhash)
1379 gcry_md_hash_buffer (algo, lhash, label, labellen);
1391 gcry_free (lhash);
1400 gcry_free (lhash);
1413 gcry_free (lhash);
1442 /* Step 3g: Check lhash, an possible empty padding string terminated
1444 if (memcmp (lhash, db, hlen))
1454 gcry_free (lhash);
2474 gcry_sexp_t ldata, lhash, lvalue;
2524 lhash = gcry_sexp_find_token (ldata, "hash", 0);
2525 lvalue = lhash? NULL : gcry_sexp_find_token (ldata, "value", 0);
2527 if (!(!lhash ^ !lvalue))
2580 else if (ctx->encoding == PUBKEY_ENC_PKCS1 && lhash
2583 if (gcry_sexp_length (lhash) != 3)
2585 else if ( !(s=gcry_sexp_nth_data (lhash, 1, &n)) || !n )
2596 else if ( !(value=gcry_sexp_nth_data (lhash, 2, &valuelen))
2690 else if (ctx->encoding == PUBKEY_ENC_PSS && lhash
2693 if (gcry_sexp_length (lhash) != 3)
2695 else if ( !(s=gcry_sexp_nth_data (lhash, 1, &n)) || !n )
2708 else if ( !(value=gcry_sexp_nth_data (lhash, 2, &valuelen))
2761 else if (ctx->encoding == PUBKEY_ENC_PSS && lhash
2764 if (gcry_sexp_length (lhash) != 3)
2766 else if ( !(s=gcry_sexp_nth_data (lhash, 1, &n)) || !n )
2776 *ret_mpi = gcry_sexp_nth_mpi (lhash, 2, GCRYMPI_FMT_USG);
2789 gcry_sexp_release (lhash);