Files
TransPyC/Test/TestProject/temp/0d4517fd5afeb330.pyi
2026-06-16 16:09:42 +08:00

34 lines
916 B
Python

"""
Auto-generated Python stub file from hashlib.__sha256.py
Module: hashlib.__sha256
"""
import t, c
SHA256_BLOCK_LEN: t.CDefine = 64
SHA256_DIGEST_LEN: t.CDefine = 32
sha256_K: t.CExtern | list[t.CUInt32T, 64]
def s0(x: t.CUInt32T) -> t.CUInt32T: pass
def s1(x: t.CUInt32T) -> t.CUInt32T: pass
def S0(x: t.CUInt32T) -> t.CUInt32T: pass
def S1(x: t.CUInt32T) -> t.CUInt32T: pass
def Ch(x: t.CUInt32T, y: t.CUInt32T, z: t.CUInt32T) -> t.CUInt32T: pass
def Maj(x: t.CUInt32T, y: t.CUInt32T, z: t.CUInt32T) -> t.CUInt32T: pass
@t.Object
class sha256:
state: list[t.CUInt32T, 8]
count: t.CUInt64T
buf: list[t.CUInt8T, SHA256_BLOCK_LEN]
def __init__(self: sha256) -> t.CInt: pass
def transform(self: sha256, block: t.CUInt8T | t.CPtr) -> t.CInt: pass
def update(self: sha256, s: str) -> t.CInt: pass
def final(self: sha256, out: list[t.CUInt8T, SHA256_DIGEST_LEN]) -> t.CInt: pass