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
, void *dst __unused
,
11 SHA1Update ( ctx
, data
, len
);
14 static void sha1_final ( void *ctx
, void *out
) {
15 SHA1Final ( ctx
, out
);
18 struct crypto_algorithm sha1_algorithm
= {
20 .ctxsize
= SHA1_CTX_SIZE
,
22 .digestsize
= SHA1_DIGEST_SIZE
,
24 .encode
= sha1_update
,