#include <stddef.h>
#include "my_compiler.h"
#include "my_config.h"
#include "my_inttypes.h"
#include "my_macros.h"
Go to the source code of this file.
|
void | compute_sha1_hash (uint8 *digest, const char *buf, size_t len) |
| Wrapper function to compute SHA1 message digest. More...
|
|
void | compute_sha1_hash_multi (uint8 *digest, const char *buf1, int len1, const char *buf2, int len2) |
| Wrapper function to compute SHA1 message digest for two messages in order to emulate sha1(msg1, msg2). More...
|
|
◆ SHA1_HASH_SIZE
#define SHA1_HASH_SIZE 20 /* Hash size in bytes */ |
◆ compute_sha1_hash()
void compute_sha1_hash |
( |
uint8 * |
digest, |
|
|
const char * |
buf, |
|
|
size_t |
len |
|
) |
| |
Wrapper function to compute SHA1 message digest.
- Parameters
-
[out] | digest | Computed SHA1 digest |
[in] | buf | Message to be computed |
[in] | len | Length of the message |
◆ compute_sha1_hash_multi()
void compute_sha1_hash_multi |
( |
uint8 * |
digest, |
|
|
const char * |
buf1, |
|
|
int |
len1, |
|
|
const char * |
buf2, |
|
|
int |
len2 |
|
) |
| |
Wrapper function to compute SHA1 message digest for two messages in order to emulate sha1(msg1, msg2).
- Parameters
-
[out] | digest | Computed SHA1 digest |
[in] | buf1 | First message |
[in] | len1 | Length of first message |
[in] | buf2 | Second message |
[in] | len2 | Length of second message |