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

Method split_blocks

hashes/sha1.py:69–75  ·  view source on GitHub ↗

Returns a list of bytestrings each of length 64

(self)

Source from the content-addressed store, hash-verified

67 return padded_data
68
69 def split_blocks(self):
70 """
71 Returns a list of bytestrings each of length 64
72 """
73 return [
74 self.padded_data[i : i + 64] for i in range(0, len(self.padded_data), 64)
75 ]
76
77 # @staticmethod
78 def expand_block(self, block):

Callers 1

final_hashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected