2 * (C) Copyright 2007-2010 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
4 * This file is released under the GPLv2. See the COPYING file for more
11 #define DIGEST_QUERY 0
14 struct digest_ctx_sha1
{
19 } __attribute__((packed
,aligned(8)));
25 struct digest_ctx_sha1 sha1
;
30 void (*init
)(struct digest_ctx
*);
31 void (*update
)(struct digest_ctx
*, u8
*, u64
);
32 void (*finalize
)(struct digest_ctx
*, u8
*, u64
);
35 extern int digest_init_ctx(int dt
, struct digest_ctx
*ctx
);
36 extern void digest_update_ctx(struct digest_ctx
*ctx
, u8
*data
, u64 len
);
37 extern void digest_finalize_ctx(struct digest_ctx
*ctx
, u8
*data
, u64 len
);