Tpm2Lib.TpmPublic.VerifySignatureOverData C# (CSharp) Method

VerifySignatureOverData() public method

The TPM always signs hash-sized data. This version of the VerifySignature performs the necessary hash operation over arbitrarily-length data and verifies that the hash is properly signed (i.e. the library performs the hash)
public VerifySignatureOverData ( byte signedData, ISignatureUnion signature, TpmAlgId sigHashAlg = TpmAlgId.Null ) : bool
signedData byte
signature ISignatureUnion
sigHashAlg TpmAlgId
return bool
        public bool VerifySignatureOverData(byte[] signedData, ISignatureUnion signature, TpmAlgId sigHashAlg = TpmAlgId.Null)
        {
            using (AsymCryptoSystem verifier = AsymCryptoSystem.CreateFrom(this))
            {
                bool sigOk = verifier.VerifySignatureOverData(signedData, signature, sigHashAlg);
                return sigOk;
            }
        }