|
CTS-SAT-1-OBC-Firmware
|
#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | SHA256_CTX |
Macros | |
| #define | SHA256_BLOCK_SIZE 32 |
Typedefs | |
| typedef uint8_t | BYTE |
| typedef uint32_t | WORD |
Functions | |
| void | sha256_init (SHA256_CTX *ctx) |
| void | sha256_update (SHA256_CTX *ctx, const BYTE data[], size_t len) |
| void | sha256_final (SHA256_CTX *ctx, BYTE hash[]) |
| void | CRYPT_compute_sha256_hash (const uint8_t message[], size_t message_length, uint8_t hash[32]) |
| Computes the SHA256 hash of the message and stores the 32 byte hash at hash. | |
| #define SHA256_BLOCK_SIZE 32 |
| typedef uint8_t BYTE |
| typedef uint32_t WORD |
| void CRYPT_compute_sha256_hash | ( | const uint8_t | message[], |
| size_t | message_length, | ||
| uint8_t | hash[32] ) |
Computes the SHA256 hash of the message and stores the 32 byte hash at hash.
| [in] | message | The message to hash |
| [in] | message_length | Length of the message in bytes |
| [out] | hash | Where the 32 byte hash is stored |


| void sha256_final | ( | SHA256_CTX * | ctx, |
| BYTE | hash[] ) |


| void sha256_init | ( | SHA256_CTX * | ctx | ) |

| void sha256_update | ( | SHA256_CTX * | ctx, |
| const BYTE | data[], | ||
| size_t | len ) |

