/// <summary> /// Verify a TPM signature structure of the hash of some data (caller hashes /// the data that will be verified). /// </summary> public bool VerifySignatureOverHash(byte[] digest, ISignatureUnion sig) { using (AsymCryptoSystem verifier = AsymCryptoSystem.CreateFrom(this)) { return(verifier.VerifySignatureOverHash(digest, sig)); } }
/// <summary> /// Verify a TPM signature structure of the hash of some data (caller hashes the data that will be verified) /// </summary> /// <param name="signedHash"></param> /// <param name="signature"></param> /// <returns></returns> public bool VerifySignatureOverHash(TpmHash signedHash, ISignatureUnion signature) { using (AsymCryptoSystem verifier = AsymCryptoSystem.CreateFrom(this)) { return(verifier.VerifySignatureOverHash(signedHash, signature)); } }