예제 #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(message: Any, pubkey: ECPoint, signature: ByteString,
         curve: NamedCurve) -> bool:
    return CryptoLib.verify_with_ecdsa(message, pubkey, signature, curve)