示例#1
0
def Main():
    CryptoLib.verify_with_ecdsa('unit test', 10, b'signature',
                                NamedCurve.SECP256R1)
def Main():
    CryptoLib.verify_with_ecdsa('unit test',
                                ECPoint(b'0123456789ABCDEFGHIJKLMNOPQRSTUVW'),
                                b'signature', NamedCurve.SECP256K1)
示例#3
0
def Main() -> bytes:
    return CryptoLib.sha256(b'unit test')
示例#4
0
def Main() -> bytes:
    return CryptoLib.sha256()
示例#5
0
def Main(test: str) -> bytes:
    return CryptoLib.ripemd160(test)
def Main() -> bytes:
    return CryptoLib.sha256('arg', 'arg')
示例#7
0
def Main(message: Any, pubkey: ECPoint, signature: ByteString,
         curve: NamedCurve) -> bool:
    return CryptoLib.verify_with_ecdsa(message, pubkey, signature, curve)
示例#8
0
def Main() -> bytes:
    return CryptoLib.ripemd160(True)
示例#9
0
def Main() -> bytes:
    return CryptoLib.ripemd160(b'unit test')
示例#10
0
def Main() -> bytes:
    return CryptoLib.ripemd160('arg', 'arg')
示例#11
0
def Main(test: str) -> bytes:
    return CryptoLib.sha256(test)