MCPcopy Create free account
hub / github.com/geekcomputers/Python / split_blocks

Method split_blocks

sha1.py:37–43  ·  view source on GitHub ↗

Returns a list of bytestrings each of length 64

(self)

Source from the content-addressed store, hash-verified

35 return padded_data
36
37 def split_blocks(self):
38 """
39 Returns a list of bytestrings each of length 64
40 """
41 return [
42 self.padded_data[i : i + 64] for i in range(0, len(self.padded_data), 64)
43 ]
44
45 # @staticmethod
46 def expand_block(self, block):

Callers 1

final_hashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected