* output = SHA-512( input buffer ) */
| 329 | * output = SHA-512( input buffer ) |
| 330 | */ |
| 331 | void 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 | /* |
no test coverage detected