Debian Codegraph @

lib/Crypto/Protocol/SecretSharing.pyi

raw symbols SCIP
1 from typing import Union, List, Tuple, Optional
2
3 def _mult_gf2(f1: int, f2: int) -> int : ...
4 def _div_gf2(a: int, b: int) -> int : ...
5
6 class _Element(object):
7 irr_poly: int
8 def __init__(self, encoded_value: Union[int, bytes]) -> None: ...
9 def __eq__(self, other) -> bool: ...
10 def __int__(self) -> int: ...
11 def encode(self) -> bytes: ...
12 def __mul__(self, factor: int) -> _Element: ...
13 def __add__(self, term: _Element) -> _Element: ...
14 def inverse(self) -> _Element: ...
15 def __pow__(self, exponent) -> _Element: ...
16
17 class Shamir(object):
18 @staticmethod
19 def split(k: int, n: int, secret: bytes, ssss: Optional[bool]) -> List[Tuple[int, bytes]]: ...
20 @staticmethod
21 def combine(shares: List[Tuple[int, bytes]], ssss: Optional[bool]) -> bytes: ...
22