Lines Matching +full:object +full:- +full:copy
1 """HMAC (Keyed-Hashing for Message Authentication) Python module.
18 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
28 blocksize = 64 # 512-bit HMAC; can be changed in subclasses.
31 """Create a new HMAC object.
33 key: key for the keyed hash object.
36 A hashlib constructor returning a new hash object.
66 _warnings.warn('No block_size attribute on given digest object; '
74 key = key + chr(0) * (blocksize - len(key))
84 """Update this hashing object with the string msg.
88 def copy(self): member in HMAC
89 """Return a separate copy of this hashing object.
91 An update to this copy won't affect the original object.
96 other.inner = self.inner.copy()
97 other.outer = self.outer.copy()
101 """Return a hash object for the current state.
105 h = self.outer.copy()
110 """Return the hash value of this hashing object.
112 This returns a string containing 8-bit data. The object is
114 updating the object after calling this function.
126 """Create a new hashing object and return it.
129 msg: if available, will immediately be hashed into the object's starting
132 You can now feed arbitrary strings into the object using its update()