Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
sha/sha256.h
- Committer:
- andrewboyson
- Date:
- 2019-08-02
- Revision:
- 3:e6a2c4579a4d
- Child:
- 4:6a1d887f1cad
File content as of revision 3:e6a2c4579a4d:
#include <stdint.h>
struct Sha256State
{
uint64_t length;
uint32_t curlen;
uint32_t state[8];
uint8_t buf[64];
};
extern void Sha256Start (struct Sha256State *md);
extern int Sha256Add (struct Sha256State *md, const uint8_t *in, int inlen);
extern int Sha256Finish(struct Sha256State *md, uint8_t *out );