diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-02-01 05:48:56 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-02-01 05:48:56 +0000 |
commit | cc8f9e4b7fa6a82415c2f13d4434b379ef760bcb (patch) | |
tree | ece501e37b08aefc978204a1d6b78c488305636f /src/crypto/md5.c | |
parent | d4675523671d2f605c0cd8c61823ef5e8833cc67 (diff) | |
download | ipxe-cc8f9e4b7fa6a82415c2f13d4434b379ef760bcb.zip ipxe-cc8f9e4b7fa6a82415c2f13d4434b379ef760bcb.tar.gz ipxe-cc8f9e4b7fa6a82415c2f13d4434b379ef760bcb.tar.bz2 |
Make context sizes available for statically-allocated structures
Diffstat (limited to 'src/crypto/md5.c')
-rw-r--r-- | src/crypto/md5.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/crypto/md5.c b/src/crypto/md5.c index 94ab69a..09378e2 100644 --- a/src/crypto/md5.c +++ b/src/crypto/md5.c @@ -26,16 +26,6 @@ #include <gpxe/crypto.h> #include <gpxe/md5.h> -#define MD5_DIGEST_SIZE 16 -#define MD5_BLOCK_WORDS 16 -#define MD5_HASH_WORDS 4 - -struct md5_ctx { - u32 hash[MD5_HASH_WORDS]; - u32 block[MD5_BLOCK_WORDS]; - u64 byte_count; -}; - #define __md5step __attribute__ (( regparm ( 3 ) )) struct md5_step { @@ -236,7 +226,7 @@ static void md5_final(void *context, void *out) struct crypto_algorithm md5_algorithm = { .name = "md5", - .ctxsize = sizeof ( struct md5_ctx ), + .ctxsize = MD5_CTX_SIZE, .blocksize = ( MD5_BLOCK_WORDS * 4 ), .digestsize = MD5_DIGEST_SIZE, .init = md5_init, |