1 #include "crypto/axtls/crypto.h"
2 #include <gpxe/crypto.h>
5 static void sha1_init ( void *ctx
) {
9 static void sha1_update ( void *ctx
, const void *data
, size_t len
) {
10 SHA1Update ( ctx
, data
, len
);
13 static void sha1_final ( void *ctx
, void *out
) {
14 SHA1Final ( ctx
, out
);
17 struct digest_algorithm sha1_algorithm
= {
19 .ctxsize
= SHA1_CTX_SIZE
,
21 .digestsize
= SHA1_DIGEST_SIZE
,
23 .update
= sha1_update
,