verify function

bool verify({
  1. required RSAPublicKey publicKey,
  2. required String serializedSignature,
})

Verify some signed binary data (sierlized in Cryppo's signature serliazation format) with the provided Public Key

Implementation

bool verify(
    {required RSAPublicKey publicKey, required String serializedSignature}) {
  final signature = Signature.fromSerializedString(serializedSignature);
  return publicKey.verifySsaPkcs1v15(signature.signature, signature.data);
}