MCPcopy Create free account
hub / github.com/ElementsProject/elements / sha256_uchar

Function sha256_uchar

src/simplicity/sha256.h:248–250  ·  view source on GitHub ↗

Add one byte to be consumed by an ongoing SHA-256 evaluation. * * Returns false if the counter overflows. * * Precondition: NULL != ctx; */

Source from the content-addressed store, hash-verified

246 * Precondition: NULL != ctx;
247 */
248static inline bool sha256_uchar(sha256_context* ctx, unsigned char x) {
249 return sha256_uchars(ctx, &x, 1);
250}
251
252/* Add a 64-bit word to be consumed in big endian order by an ongoing SHA-256 evaluation.
253 * For greater certainty, only the least 64 bits of 'x' are consumed.

Calls 1

sha256_ucharsFunction · 0.85

Tested by

no test coverage detected