1
0
Fork 0
mirror of https://github.com/eosswedenorg/libantelope synced 2026-06-16 03:34:56 +02:00

include/libeosio/hash.hpp: minor documentation fixes.

This commit is contained in:
Henrik Hautakoski 2021-05-06 15:11:40 +02:00
parent eab4aee8af
commit 0af91b4fc6

View file

@ -31,22 +31,22 @@ namespace libeosio {
/**
* sha256 hashing function.
* Hashes the content in `data` up to `len` bytes. result is stored in `out`.
* Returns the sampe pointer as `out`.
* Hashes the content in `data` up to `len` bytes. The result is stored in `out`.
* Returns the same pointer as `out`.
*/
sha256_t* sha256(const unsigned char *data, std::size_t len, sha256_t* out);
/**
* sha256 double hashing function.
* Hashes the content in `data` up to `len` bytes. result is stored in `out`.
* Returns the sampe pointer as `out`.
* Hashes the content in `data` up to `len` bytes. The result is stored in `out`.
* Returns the same pointer as `out`.
*/
sha256_t* sha256d(const unsigned char *data, std::size_t len, sha256_t* out);
/**
* RipeMD160 hashing function.
* Hashes the content in `data` up to `len` bytes. result is stored in `out`.
* Returns the sampe pointer as `out`.
* Hashes the content in `data` up to `len` bytes. The result is stored in `out`.
* Returns the same pointer as `out`.
*/
ripemd160_t* ripemd160(const unsigned char *data, std::size_t len, ripemd160_t* out);