
Functions | |
| WOLFSSL_API int | wc_InitRipeMd (RipeMd *) |
| This function initializes a ripemd structure by initializing ripemd’s digest, buffer, loLen and hiLen. More... | |
| WOLFSSL_API int | wc_RipeMdUpdate (RipeMd *, const byte *, word32) |
| This function generates the RipeMd digest of the data input and stores the result in the ripemd->digest buffer. After running wc_RipeMdUpdate, one should compare the generated ripemd->digest to a known authentication tag to verify the authenticity of a message. More... | |
| WOLFSSL_API int | wc_RipeMdFinal (RipeMd *, byte *) |
| This function copies the computed digest into hash. If there is a partial unhashed block, this method will pad the block with 0s, and include that block’s round in the digest before copying to hash. State of ripemd is reset. More... | |
| WOLFSSL_API int wc_InitRipeMd | ( | RipeMd * | ) |
This function initializes a ripemd structure by initializing ripemd’s digest, buffer, loLen and hiLen.
| ripemd | pointer to the ripemd structure to initialize |
Example
| WOLFSSL_API int wc_RipeMdFinal | ( | RipeMd * | , |
| byte * | |||
| ) |
This function copies the computed digest into hash. If there is a partial unhashed block, this method will pad the block with 0s, and include that block’s round in the digest before copying to hash. State of ripemd is reset.
| ripemd | pointer to the ripemd structure to be initialized with wc_InitRipeMd, and containing hashes from wc_RipeMdUpdate. State will be reset |
| hash | buffer to copy digest to. Should be RIPEMD_DIGEST_SIZE bytes |
Example
| WOLFSSL_API int wc_RipeMdUpdate | ( | RipeMd * | , |
| const byte * | , | ||
| word32 | |||
| ) |
This function generates the RipeMd digest of the data input and stores the result in the ripemd->digest buffer. After running wc_RipeMdUpdate, one should compare the generated ripemd->digest to a known authentication tag to verify the authenticity of a message.
| ripemd | pointer to the ripemd structure to be initialized with wc_InitRipeMd |
| data | data to be hashed |
| len | sizeof data in bytes |
Example