diff options
Diffstat (limited to 'lib/libRTV/crypt.c')
-rw-r--r-- | lib/libRTV/crypt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libRTV/crypt.c b/lib/libRTV/crypt.c index 62251331a6..df4d682d6b 100644 --- a/lib/libRTV/crypt.c +++ b/lib/libRTV/crypt.c @@ -50,11 +50,12 @@ static void checksum(unsigned char * dest, unsigned const char * src, u32 len, 0x96,0x43,0x2b,0xcc, 0x0c,0x9d,0x26,0xb9, }}; - md5_context c; - md5_starts(&c); - md5_update(&c, src, len); - md5_update(&c, extradata[checksum_num], sizeof extradata[checksum_num]); - md5_finish(&c, dest); + rtv_md5_context c; + rtv_md5_starts(&c); + rtv_md5_update(&c, src, len); + rtv_md5_update(&c, extradata[checksum_num], sizeof extradata[checksum_num]); + rtv_md5_finish(&c, dest); + } static u32 cryptblock(u32 k, char * buf, u32 size) |