MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / _scalar_clamp

Function _scalar_clamp

pymysql/_auth.py:69–73  ·  view source on GitHub ↗
(s32)

Source from the content-addressed store, hash-verified

67
68
69def _scalar_clamp(s32):
70 ba = bytearray(s32)
71 ba0 = bytes(bytearray([ba[0] & 248]))
72 ba31 = bytes(bytearray([(ba[31] & 127) | 64]))
73 return ba0 + bytes(s32[1:31]) + ba31
74
75
76def ed25519_password(password, scramble):

Callers 1

ed25519_passwordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected