nrfxlib API 3.3.99
Loading...
Searching...
No Matches

SHA1 algorithm, with 160 bit outputs. More...

Files

file  ocrypto_sha1.h
 SHA1 algorithm, with 160 bit outputs.
 

Macros

#define ocrypto_sha1_BYTES   (20)
 

Functions

void ocrypto_sha1 (uint8_t r[(20)], const uint8_t *in, size_t in_len)
 

Incremental SHA1 generator

This group of functions can be used to incrementally compute the SHA1 hash for a given message.

void ocrypto_sha1_init (ocrypto_sha1_ctx *ctx)
 
void ocrypto_sha1_update (ocrypto_sha1_ctx *ctx, const uint8_t *in, size_t in_len)
 
void ocrypto_sha1_final (ocrypto_sha1_ctx *ctx, uint8_t r[(20)])
 

Detailed Description

SHA1 algorithm, with 160 bit outputs.

A fixed-sized message digest is computed from input data with arbitrary length. The function is practically impossible to revert, and small changes in the input message lead to major changes in the message digest.

Remarks
SHA1 is no longer considered secure; replacement by SHA2 or SHA3 is recommended.
See also
FIPS - Secure Hash Standard (SHS)