SHA-1 hash function, headers.
More...
Go to the source code of this file.
|
struct | sha1Param |
| Holds all the parameters necessary for the SHA-1 algorithm. More...
|
|
void | sha1Process (sha1Param *sp) |
| This function performs the core of the SHA-1 hash algorithm; it processes a block of 64 bytes.
|
int | sha1Reset (sha1Param *sp) |
| This function resets the parameter block so that it's ready for a new hash.
|
int | sha1Update (sha1Param *sp, const byte *data, size_t size) |
| This function should be used to pass successive blocks of data to be hashed.
|
int | sha1Digest (sha1Param *sp, byte *digest) |
| This function finishes the current hash computation and copies the digest value into digest.
|
◆ sha1Digest()
This function finishes the current hash computation and copies the digest value into digest.
- Parameters
-
sp | The hash function's parameter block. |
digest | The place to store the 20-byte digest. |
- Return values
-
◆ sha1Process()
This function performs the core of the SHA-1 hash algorithm; it processes a block of 64 bytes.
- Parameters
-
sp | The hash function's parameter block. |
References BEECRYPTAPI.
◆ sha1Reset()
This function resets the parameter block so that it's ready for a new hash.
- Parameters
-
sp | The hash function's parameter block. |
- Return values
-
References BEECRYPTAPI.
◆ sha1Update()
int sha1Update |
( |
sha1Param * | sp, |
|
|
const byte * | data, |
|
|
size_t | size ) |
This function should be used to pass successive blocks of data to be hashed.
- Parameters
-
sp | The hash function's parameter block. |
data | |
size | |
- Return values
-
References BEECRYPTAPI.
◆ sha1
Holds the full API description of the SHA-1 algorithm.