hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from typing import Union, Optional
 
Buffer = Union[bytes, bytearray, memoryview]
 
class SHA512Hash(object):
    digest_size: int
    block_size: int
    oid: str
 
    def __init__(self,
                 data: Optional[Buffer],
         truncate: Optional[str]) -> None: ...
    def update(self, data: Buffer) -> None: ...
    def digest(self) -> bytes: ...
    def hexdigest(self) -> str: ...
    def copy(self) -> SHA512Hash: ...
    def new(self, data: Optional[Buffer] = ...) -> SHA512Hash: ...
 
def new(data: Optional[Buffer] = ...,
        truncate: Optional[str] = ...) -> SHA512Hash: ...
digest_size: int
block_size: int