nrfxlib API 0.1.0
|
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | ocrypto_sha3_224_BYTES (28) |
#define | ocrypto_sha3_256_BYTES (32) |
#define | ocrypto_sha3_384_BYTES (48) |
#define | ocrypto_sha3_512_BYTES (64) |
Functions | |
void | ocrypto_sha3_224 (uint8_t r[(28)], const uint8_t *in, size_t in_len) |
void | ocrypto_sha3_256 (uint8_t r[(32)], const uint8_t *in, size_t in_len) |
void | ocrypto_sha3_384 (uint8_t r[(48)], const uint8_t *in, size_t in_len) |
void | ocrypto_sha3_512 (uint8_t r[(64)], const uint8_t *in, size_t in_len) |
Incremental SHA-3 generator. | |
This group of functions can be used to incrementally compute the SHA-3 hash for a given message. | |
void | ocrypto_sha3_init (ocrypto_sha3_ctx *ctx) |
void | ocrypto_sha3_224_update (ocrypto_sha3_ctx *ctx, const uint8_t *in, size_t in_len) |
void | ocrypto_sha3_256_update (ocrypto_sha3_ctx *ctx, const uint8_t *in, size_t in_len) |
void | ocrypto_sha3_384_update (ocrypto_sha3_ctx *ctx, const uint8_t *in, size_t in_len) |
void | ocrypto_sha3_512_update (ocrypto_sha3_ctx *ctx, const uint8_t *in, size_t in_len) |
void | ocrypto_sha3_224_final (ocrypto_sha3_ctx *ctx, uint8_t r[(28)]) |
void | ocrypto_sha3_256_final (ocrypto_sha3_ctx *ctx, uint8_t r[(32)]) |
void | ocrypto_sha3_384_final (ocrypto_sha3_ctx *ctx, uint8_t r[(48)]) |
void | ocrypto_sha3_512_final (ocrypto_sha3_ctx *ctx, uint8_t r[(64)]) |
The SHA-3 family is a set of cryptographic hash functions initiated by the NSA. It is the successor of the SHA-1 and SHA-2 algorithms.
A fixed-sized message digest is computed from variable length input data. The function is practically impossible to revert, and small changes in the input message lead to major changes in the message digest.