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

Method __init__

sha1.py:12–20  ·  view source on GitHub ↗

Inititates the variables data and h. h is a list of 5 8-digit Hexadecimal numbers corresponding to (1732584193, 4023233417, 2562383102, 271733878, 3285377520) respectively. We will start with this as a message digest. 0x is how you write Hexadecimal numbers in Python

(self, data)

Source from the content-addressed store, hash-verified

10 """
11
12 def __init__(self, data):
13 """
14 Inititates the variables data and h. h is a list of 5 8-digit Hexadecimal
15 numbers corresponding to (1732584193, 4023233417, 2562383102, 271733878, 3285377520)
16 respectively. We will start with this as a message digest. 0x is how you write
17 Hexadecimal numbers in Python
18 """
19 self.data = data
20 self.h = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]
21
22 @staticmethod
23 def rotate(n, b):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected