
|
My Project
|
Functions | |
| int | wc_InitRipeMd (RipeMd *) |
| This function initializes a ripemd structure by initializing ripemd’s digest, buffer, loLen and hiLen. More... | |
| int | wc_RipeMdUpdate (RipeMd *ripemd, const byte *data, word32 len) |
| 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... | |
| int | wc_RipeMdFinal (RipeMd *ripemd, byte *hash) |
| 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... | |
| 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
| int wc_RipeMdFinal | ( | RipeMd * | ripemd, |
| byte * | hash | ||
| ) |
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
| int wc_RipeMdUpdate | ( | RipeMd * | ripemd, |
| const byte * | data, | ||
| word32 | len | ||
| ) |
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