diff options
Diffstat (limited to 'libgo/go/crypto/md5/md5.go')
-rw-r--r-- | libgo/go/crypto/md5/md5.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/crypto/md5/md5.go b/libgo/go/crypto/md5/md5.go index f4e7b09..cfb728c 100644 --- a/libgo/go/crypto/md5/md5.go +++ b/libgo/go/crypto/md5/md5.go @@ -17,6 +17,9 @@ func init() { // The size of an MD5 checksum in bytes. const Size = 16 +// The blocksize of MD5 in bytes. +const BlockSize = 64 + const ( _Chunk = 64 _Init0 = 0x67452301 @@ -51,6 +54,8 @@ func New() hash.Hash { func (d *digest) Size() int { return Size } +func (d *digest) BlockSize() int { return BlockSize } + func (d *digest) Write(p []byte) (nn int, err error) { nn = len(p) d.len += uint64(nn) |