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

Function sha1

sha1.c:328–337  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

326 * output = SHA-1( input buffer )
327 */
328void sha1( const unsigned char *input, size_t ilen, unsigned char output[20] )
329{
330 sha1_context ctx;
331
332 sha1_init( &ctx );
333 sha1_starts( &ctx );
334 sha1_update( &ctx, input, ilen );
335 sha1_finish( &ctx, output );
336 sha1_free( &ctx );
337}
338
339#if defined(POLARSSL_FS_IO)
340/*

Callers 4

tr_eval_stringFunction · 0.85
sha1_hmac_startsFunction · 0.85
ws_compute_keyFunction · 0.85
ws_compute_keyFunction · 0.85

Calls 5

sha1_initFunction · 0.85
sha1_startsFunction · 0.85
sha1_updateFunction · 0.85
sha1_finishFunction · 0.85
sha1_freeFunction · 0.85

Tested by

no test coverage detected