* output = SHA-1( input buffer ) */
| 326 | * output = SHA-1( input buffer ) |
| 327 | */ |
| 328 | void 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 | /* |
no test coverage detected