openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libgcrypt/1.8.4-r0/libgcrypt-1.8.4/cipher/sha256.c
void _gcry_sha256_hash_buffer(void* outbuf, const void* buffer, size_t length)
{
    SHA256_CONTEXT hd;

    sha256_init(&hd, 0);
    _gcry_md_block_write(&hd, buffer, length);
    sha256_final(&hd);
    memcpy(outbuf, hd.bctx.buf, 32);
}
/* Shortcut functions which puts the hash value of the supplied buffer
 * into outbuf which must have a size of 32 bytes.  */
Shortcut functions which puts the hash value of the supplied buffer
into outbuf which must have a size of 32 bytes.
Shortcut functions which puts the hash value of the supplied buffer into outbuf which must have a size of 32 bytes .
void _gcry_sha256_hash_buffer(void* outbuf, const void* buffer, size_t length)
{
    SHA256_CONTEXT hd;
    sha256_init(&hd, 0);
    _gcry_md_block_write(&hd, buffer, length);
    sha256_final(&hd);
    memcpy(outbuf, hd.bctx.buf, 32);
}
void _gcry_sha256_hash_buffer ( void * outbuf , const void * buffer , size_t length ) { SHA256_CONTEXT hd ; sha256_init ( & hd , 0 ) ; _gcry_md_block_write ( & hd , buffer , length ) ; sha256_final ( & hd ) ; memcpy ( outbuf , hd . bctx . buf , 32 ) ; }
Shortcut functions which puts the hash value of the supplied buffer
 into outbuf which must have a size of 32 bytes.
Shortcut functions which puts the hash value of the supplied buffer into outbuf which must have a size of 32 bytes .