MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / sha256

Function sha256

sha256.c:333–343  ·  view source on GitHub ↗

* output = SHA-256( input buffer ) */

Source from the content-addressed store, hash-verified

331 * output = SHA-256( input buffer )
332 */
333void sha256( const unsigned char *input, size_t ilen,
334 unsigned char output[32], int is224 )
335{
336 sha256_context ctx;
337
338 sha256_init( &ctx );
339 sha256_starts( &ctx, is224 );
340 sha256_update( &ctx, input, ilen );
341 sha256_finish( &ctx, output );
342 sha256_free( &ctx );
343}
344
345#if defined(POLARSSL_FS_IO)
346/*

Callers 2

sha256_hmac_startsFunction · 0.85
tr_eval_stringFunction · 0.85

Calls 5

sha256_initFunction · 0.85
sha256_startsFunction · 0.85
sha256_updateFunction · 0.85
sha256_finishFunction · 0.85
sha256_freeFunction · 0.85

Tested by

no test coverage detected