source: bootcd/isolinux/syslinux-6.03/gpxe/src/crypto/axtls_sha1.c

Last change on this file was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 536 bytes
RevLine 
[e16e8f2]1#include "crypto/axtls/crypto.h"
2#include <gpxe/crypto.h>
3#include <gpxe/sha1.h>
4
5static void sha1_init ( void *ctx ) {
6        SHA1Init ( ctx );
7}
8
9static void sha1_update ( void *ctx, const void *data, size_t len ) {
10        SHA1Update ( ctx, data, len );
11}
12
13static void sha1_final ( void *ctx, void *out ) {
14        SHA1Final ( ctx, out );
15}
16
17struct digest_algorithm sha1_algorithm = {
18        .name           = "sha1",
19        .ctxsize        = SHA1_CTX_SIZE,
20        .blocksize      = 64,
21        .digestsize     = SHA1_DIGEST_SIZE,
22        .init           = sha1_init,
23        .update         = sha1_update,
24        .final          = sha1_final,
25};
Note: See TracBrowser for help on using the repository browser.