Lines Matching defs:buffer
117 /* this structure is put right after the gcry_md_hd_t buffer, so that
435 /* Allocate a memory area to hold the caller visible buffer with it's
439 * internal data but have a variable sized buffer.
442 * !ctx! bctl ! buffer ! private !
650 /* No need to copy the buffer due to the write above. */
886 gcry_md_ctl (gcry_md_hd_t hd, int cmd, void *buffer, size_t buflen)
896 rc = gcry_err_code (gcry_md_setkey (hd, buffer, buflen));
899 md_start_debug (hd, buffer);
985 gcry_md_get (gcry_md_hd_t hd, int algo, byte *buffer, int buflen)
989 (void)buffer;
999 * Shortcut function to hash a buffer with a given algo. The only
1001 * supplied digest buffer must be large enough to store the resulting
1006 const void *buffer, size_t length)
1009 _gcry_sha1_hash_buffer (digest, buffer, length);
1011 _gcry_rmd160_hash_buffer (digest, buffer, length);
1034 md_write (h, (byte *) buffer, length);
1130 * buffer and nbytes must be zero.
1132 * Return the ASNOID of the algorithm in buffer. if buffer is NULL, only
1142 gcry_md_algo_info (int algo, int what, void *buffer, size_t *nbytes)
1149 if (buffer || nbytes)
1165 if (buffer && (*nbytes >= asnlen))
1167 memcpy (buffer, asn, asnlen);
1170 else if (!buffer && nbytes)
1174 if (buffer)
1244 gcry_md_info (gcry_md_hd_t h, int cmd, void *buffer, size_t *nbytes)
1259 if ( !buffer || (nbytes && (*nbytes != sizeof (int))))
1263 algo = *(int*)buffer;