Lines Matching refs:hash
1532 encoded KEYFILE and the hash algorithm HASHALGO. */
1547 unsigned char hash[64];
1551 if (!hashsize || hashsize > sizeof hash)
1552 die ("digest too long for buffer or unknown hash algorithm\n");
1553 gcry_md_hash_buffer (hashalgo, hash, data, datalen);
1555 "(data (flags pkcs1)(hash %s %b))",
1557 (int)hashsize, hash);
1623 PEM encoded KEYFILE and the hash algorithm HASHALGO against the
1635 unsigned char hash[64];
1639 if (!hashsize || hashsize > sizeof hash)
1640 die ("digest too long for buffer or unknown hash algorithm\n");
1641 gcry_md_hash_buffer (hashalgo, hash, data, datalen);
1643 "(data (flags pkcs1)(hash %s %b))",
1645 (int)hashsize, hash);
1884 char hash[20];
1887 gcry_md_hash_buffer (GCRY_MD_SHA1, hash, data, datalen);
1888 err = gcry_mpi_scan (&tmpmpi, GCRYMPI_FMT_USG, hash, 20, NULL);
1977 char hash[20];
1980 gcry_md_hash_buffer (GCRY_MD_SHA1, hash, data, datalen);
1983 err = gcry_mpi_scan (&tmpmpi, GCRYMPI_FMT_USG, hash, 20, NULL);