Class RsaPssSignatureDescriptions.RsaPssSignatureFormatter
Formats RSA PSS signatures.
Inheritance
System.Object
System.Security.Cryptography.AsymmetricSignatureFormatter
RsaPssSignatureDescriptions.RsaPssSignatureFormatter
Inherited Members
System.Security.Cryptography.AsymmetricSignatureFormatter.CreateSignature(System.Security.Cryptography.HashAlgorithm)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ComponentSpace.Saml2.XmlSecurity.Signature
Assembly: ComponentSpace.Saml2.dll
Syntax
public class RsaPssSignatureFormatter : AsymmetricSignatureFormatter
Methods
CreateSignature(Byte[])
Creates the signature from the specified hash value.
Declaration
public override byte[] CreateSignature(byte[] hash)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | hash |
Returns
Type | Description |
---|---|
System.Byte[] |
Overrides
System.Security.Cryptography.AsymmetricSignatureFormatter.CreateSignature(System.Byte[])
SetHashAlgorithm(String)
Sets the name of the hash algorithm used to create the signature.
Declaration
public override void SetHashAlgorithm(string algorithmName)
Parameters
Type | Name | Description |
---|---|---|
System.String | algorithmName | The hash algorithm name. |
Overrides
System.Security.Cryptography.AsymmetricSignatureFormatter.SetHashAlgorithm(System.String)
SetKey(AsymmetricAlgorithm)
Sets the key used to create the signature.
Declaration
public override void SetKey(AsymmetricAlgorithm key)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Cryptography.AsymmetricAlgorithm | key | The key. |
Overrides
System.Security.Cryptography.AsymmetricSignatureFormatter.SetKey(System.Security.Cryptography.AsymmetricAlgorithm)