Class MD5

Summary


 An MD5 message digest implementation.  Example use :
 @example
 @ m := MD5()
 @ m.update("here is some input")
 @ m.update("here is some more")
 @ s := m.final()

 This will leave s containing a 16 char string, being the
 digest.

Package:
util
File:
md5.icn
Methods:
F, FF, G, GG, H, HH, I, II, decode, encode, final, final_str, reset, rotate_left, transform, update

Fields:
a, b, bit_count, buffer, c, d

Source code.

Details
Constructor

MD5(a, b, c, d, bit_count, buffer)

Methods:

F(x, y, z)


FF(a, b, c, d, x, s, ac)


G(x, y, z)


GG(a, b, c, d, x, s, ac)


H(x, y, z)


HH(a, b, c, d, x, s, ac)


I(x, y, z)


II(a, b, c, d, x, s, ac)


decode(block)


 Transform 64 char string into 16 x 32 bit words
 @p


encode(n)


 Transform a 32 bit number to 4 corresponding bytes
 @p


final()


 Complete and return the computation of the digest as
 a string of 16 characters.


final_str()


 Call final and then convert the result to a 32 bit string
 of lower case hex digits.


reset()


 Reset this object, so it may be used for another
 computation.  Called by {final()}.


rotate_left(x, n)


transform(block)


update(input)


 Add some input data to the computation
 @param input a string


Fields:
a

b

bit_count

buffer

c

d


This page produced by UniDoc on 2021/04/15 @ 23:59:53.