Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateSignature() [1/2]

override byte[] System.Security.Cryptography.RSAPKCS1SignatureFormatter.CreateSignature ( byte[] rgbHash)
inline

Definition at line 47 of file RSAPKCS1SignatureFormatter.cs.

48 {
49 if (rgbHash == null)
50 {
51 throw new ArgumentNullException("rgbHash");
52 }
53 if (_algName == null)
54 {
55 throw new CryptographicUnexpectedOperationException(System.SR.Cryptography_MissingOID);
56 }
57 if (_rsaKey == null)
58 {
59 throw new CryptographicUnexpectedOperationException(System.SR.Cryptography_MissingKey);
60 }
61 return _rsaKey.SignHash(rgbHash, new HashAlgorithmName(_algName), RSASignaturePadding.Pkcs1);
62 }
static string Cryptography_MissingOID
Definition SR.cs:116
static string Cryptography_MissingKey
Definition SR.cs:114
Definition SR.cs:7
virtual byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
Definition RSA.cs:70

References System.Security.Cryptography.RSAPKCS1SignatureFormatter._algName, System.Security.Cryptography.RSAPKCS1SignatureFormatter._rsaKey, System.SR.Cryptography_MissingKey, System.SR.Cryptography_MissingOID, System.Security.Cryptography.RSASignaturePadding.Pkcs1, and System.Security.Cryptography.RSA.SignHash().