|
SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
|
MD5 cryptographic hash.
Data Structures | |
| struct | SharkSslMd5Ctx |
| MD5. More... | |
Typedefs | |
| typedef struct SharkSslMd5Ctx | SharkSslMd5Ctx |
| MD5. More... | |
Functions | |
| SHARKSSL_API void | SharkSslMd5Ctx_constructor (SharkSslMd5Ctx *ctx) |
| Initialize. More... | |
| SHARKSSL_API void | SharkSslMd5Ctx_append (SharkSslMd5Ctx *ctx, const U8 *data, U32 len) |
| append More... | |
| SHARKSSL_API void | SharkSslMd5Ctx_finish (SharkSslMd5Ctx *ctx, U8 digest[SHARKSSL_MD5_HASH_LEN]) |
| finish More... | |
| SHARKSSL_API int | sharkssl_md5 (const U8 *, U32, U8 *) |
| md5 More... | |
| typedef struct SharkSslMd5Ctx SharkSslMd5Ctx |
MD5.
| int sharkssl_md5 | ( | const U8 * | data, |
| U32 | len, | ||
| U8 * | digest | ||
| ) |
md5
| data | const U8 *; bytes to hash, borrowed for this call. May be NULL when len is zero. |
| len | U32; input length in bytes. |
| digest | U8 *; required caller-owned output buffer of at least 16 bytes. |
| void SharkSslMd5Ctx_append | ( | SharkSslMd5Ctx * | ctx, |
| const U8 * | data, | ||
| U32 | len | ||
| ) |
append
| ctx | SharkSslMd5Ctx *; required initialized, unfinished context; updated in place. |
| data | const U8 *; input bytes, borrowed for this call. Supply a valid buffer when len is nonzero. |
| len | U32; input length in bytes, including zero. |
| SHARKSSL_API void SharkSslMd5Ctx_constructor | ( | SharkSslMd5Ctx * | ctx | ) |
Initialize.
| ctx | Uninitialized data of size sizeof(SharkSslMd5Ctx). |
| void SharkSslMd5Ctx_finish | ( | SharkSslMd5Ctx * | ctx, |
| U8 | digest[SHARKSSL_MD5_HASH_LEN] | ||
| ) |
finish
| ctx | SharkSslMd5Ctx *; required initialized context; finalized by this call. Reinitialize before hashing another message. |
| digest | U8 *; required caller-owned output buffer of at least 16 bytes. |