diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-01 13:04:04 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-01 13:04:04 -0700 |
commit | 9e0ff569ee66e4031b697bbfab669412cf90cb8a (patch) | |
tree | 63423730ef69bdd076ad9a131199c57e8b01f32c /sha256.h | |
download | deltarpm-9e0ff569ee66e4031b697bbfab669412cf90cb8a.tar.gz deltarpm-9e0ff569ee66e4031b697bbfab669412cf90cb8a.tar.bz2 deltarpm-9e0ff569ee66e4031b697bbfab669412cf90cb8a.zip |
Imported Upstream version 3.5.gitupstream/3.5.gitupstream
Diffstat (limited to 'sha256.h')
-rw-r--r-- | sha256.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sha256.h b/sha256.h new file mode 100644 index 0000000..2779cf1 --- /dev/null +++ b/sha256.h @@ -0,0 +1,22 @@ +/* + * This software is in the public domain as per + * http://archives.neohapsis.com/archives/crypto/2000-q4/0730.html + * Changes by Jonathan Dieter are also in the public domain + */ + +#if !defined( _sha256_h ) +#define _sha256_h + +typedef struct { + unsigned int H[ 8 ]; + unsigned int hbits, lbits; + unsigned char M[ 64 ]; + unsigned int mlen; +} SHA256_ctx; + +void SHA256_init ( SHA256_ctx *ctx); +void SHA256_update( SHA256_ctx *ctx, const unsigned char *data, unsigned int length ); +void SHA256_final ( SHA256_ctx *ctx); +void SHA256_digest( SHA256_ctx *ctx, unsigned char *digest); + +#endif |