Package ldaptor :: Module md4 :: Class _builtin_md4
[hide private]
[frames] | no frames]

Class _builtin_md4

source code

object --+
         |
        _builtin_md4

pep-247 compatible implementation of MD4 hash algorithm

.. attribute:: digest_size

    size of md4 digest in bytes (16 bytes)

.. method:: update

    update digest by appending additional content

.. method:: copy

    create clone of digest object, including current state

.. method:: digest

    return bytes representing md4 digest of current content

.. method:: hexdigest

    return hexdecimal version of digest

Instance Methods [hide private]
 
__init__(self, content=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_process(self, block)
process 64 byte block
source code
 
update(self, content) source code
 
copy(self) source code
 
digest(self) source code
 
hexdigest(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  name = 'md4'
  digestsize = 16
hash(x)
  digest_size = 16
hash(x)
  _count = 0
hash(x)
  _state = None
hash(x)
  _buf = None
hash(x)
  _round1 = [[0, 1, 2, 3, 0, 3], [3, 0, 1, 2, 1, 7], [2, 3, 0, 1...
  _round2 = [[0, 1, 2, 3, 0, 3], [3, 0, 1, 2, 4, 5], [2, 3, 0, 1...
  _round3 = [[0, 1, 2, 3, 0, 3], [3, 0, 1, 2, 8, 9], [2, 3, 0, 1...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, content=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

Class Variable Details [hide private]

_round1

Value:
[[0, 1, 2, 3, 0, 3],
 [3, 0, 1, 2, 1, 7],
 [2, 3, 0, 1, 2, 11],
 [1, 2, 3, 0, 3, 19],
 [0, 1, 2, 3, 4, 3],
 [3, 0, 1, 2, 5, 7],
 [2, 3, 0, 1, 6, 11],
 [1, 2, 3, 0, 7, 19],
...

_round2

Value:
[[0, 1, 2, 3, 0, 3],
 [3, 0, 1, 2, 4, 5],
 [2, 3, 0, 1, 8, 9],
 [1, 2, 3, 0, 12, 13],
 [0, 1, 2, 3, 1, 3],
 [3, 0, 1, 2, 5, 5],
 [2, 3, 0, 1, 9, 9],
 [1, 2, 3, 0, 13, 13],
...

_round3

Value:
[[0, 1, 2, 3, 0, 3],
 [3, 0, 1, 2, 8, 9],
 [2, 3, 0, 1, 4, 11],
 [1, 2, 3, 0, 12, 15],
 [0, 1, 2, 3, 2, 3],
 [3, 0, 1, 2, 10, 9],
 [2, 3, 0, 1, 6, 11],
 [1, 2, 3, 0, 14, 15],
...