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

◆ TrySignHash()

virtual bool System.Security.Cryptography.RSA.TrySignHash ( ReadOnlySpan< byte > hash,
Span< byte > destination,
HashAlgorithmName hashAlgorithm,
RSASignaturePadding padding,
out int bytesWritten )
inlinevirtualinherited

Reimplemented in System.Security.Cryptography.RSAImplementation.RSACng, and System.Security.Cryptography.RSACng.

Definition at line 140 of file RSA.cs.

141 {
142 byte[] array = SignHash(hash.ToArray(), hashAlgorithm, padding);
143 if (destination.Length >= array.Length)
144 {
145 new ReadOnlySpan<byte>(array).CopyTo(destination);
146 bytesWritten = array.Length;
147 return true;
148 }
149 bytesWritten = 0;
150 return false;
151 }
virtual byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
Definition RSA.cs:70

References System.array, System.ReadOnlySpan< T >.CopyTo(), System.destination, System.Security.Cryptography.RSA.SignHash(), and System.ReadOnlySpan< T >.ToArray().

Referenced by System.Security.Cryptography.RSA.TrySignData().