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

Function sha512

sha512.c:331–341  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

329 * output = SHA-512( input buffer )
330 */
331void sha512( const unsigned char *input, size_t ilen,
332 unsigned char output[64], int is384 )
333{
334 sha512_context ctx;
335
336 sha512_init( &ctx );
337 sha512_starts( &ctx, is384 );
338 sha512_update( &ctx, input, ilen );
339 sha512_finish( &ctx, output );
340 sha512_free( &ctx );
341}
342
343#if defined(POLARSSL_FS_IO)
344/*

Callers 2

tr_eval_stringFunction · 0.85
sha512_hmac_startsFunction · 0.85

Calls 5

sha512_initFunction · 0.85
sha512_startsFunction · 0.85
sha512_updateFunction · 0.85
sha512_finishFunction · 0.85
sha512_freeFunction · 0.85

Tested by

no test coverage detected