Microsoft.IdentityModel.Tokens.SymmetricSignatureProvider
Provides signing and verifying operations using a SymmetricSecurityKey and specifying an algorithm.
This is the minimum SymmetricSecurityKey.KeySize when creating and verifying signatures.
Gets or sets the minimum SymmetricSecurityKey.KeySize"/>.
Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes.
Initializes a new instance of the SymmetricSignatureProvider class that uses an SecurityKey to create and / or verify signatures over a array of bytes.
Called to obtain the byte[] needed to create a KeyedHashAlgorithm
Returns a KeyedHashAlgorithm.
This method is called just before a cryptographic operation.
This provides the opportunity to obtain the KeyedHashAlgorithm from an object pool.
If this method is overridden, it is important to override ReleaseKeyedHashAlgorithm
if custom releasing of the KeyedHashAlgorithm is desired.
This method is called just after the cryptographic operation.
If GetKeyedHashAlgorithm was overridden this method can be overridden for
any custom handling such as returning the KeyedHashAlgorithm to an object pool.
Verifies that a signature created over the 'input' matches the signature. Using SymmetricSecurityKey and 'algorithm'
passed to #ctor.