|
|
@@ -48,58 +48,6 @@ typedef struct
|
|
|
}
|
|
|
mbedtls_sha512_context;
|
|
|
|
|
|
-/**
|
|
|
- * \brief Initialize SHA-512 context
|
|
|
- *
|
|
|
- * \param ctx SHA-512 context to be initialized
|
|
|
- */
|
|
|
-void mbedtls_sha512_init( mbedtls_sha512_context *ctx );
|
|
|
-
|
|
|
-/**
|
|
|
- * \brief Clear SHA-512 context
|
|
|
- *
|
|
|
- * \param ctx SHA-512 context to be cleared
|
|
|
- */
|
|
|
-void mbedtls_sha512_free( mbedtls_sha512_context *ctx );
|
|
|
-
|
|
|
-/**
|
|
|
- * \brief Clone (the state of) a SHA-512 context
|
|
|
- *
|
|
|
- * \param dst The destination context
|
|
|
- * \param src The context to be cloned
|
|
|
- */
|
|
|
-void mbedtls_sha512_clone( mbedtls_sha512_context *dst,
|
|
|
- const mbedtls_sha512_context *src );
|
|
|
-
|
|
|
-/**
|
|
|
- * \brief SHA-512 context setup
|
|
|
- *
|
|
|
- * \param ctx context to be initialized
|
|
|
- * \param is384 0 = use SHA512, 1 = use SHA384
|
|
|
- */
|
|
|
-void mbedtls_sha512_starts( mbedtls_sha512_context *ctx, int is384 );
|
|
|
-
|
|
|
-/**
|
|
|
- * \brief SHA-512 process buffer
|
|
|
- *
|
|
|
- * \param ctx SHA-512 context
|
|
|
- * \param input buffer holding the data
|
|
|
- * \param ilen length of the input data
|
|
|
- */
|
|
|
-void mbedtls_sha512_update( mbedtls_sha512_context *ctx, const unsigned char *input,
|
|
|
- size_t ilen );
|
|
|
-
|
|
|
-/**
|
|
|
- * \brief SHA-512 final digest
|
|
|
- *
|
|
|
- * \param ctx SHA-512 context
|
|
|
- * \param output SHA-384/512 checksum result
|
|
|
- */
|
|
|
-void mbedtls_sha512_finish( mbedtls_sha512_context *ctx, unsigned char output[64] );
|
|
|
-
|
|
|
-/* Internal use */
|
|
|
-void mbedtls_sha512_process( mbedtls_sha512_context *ctx, const unsigned char data[128] );
|
|
|
-
|
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|