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

◆ ImportEncryptedPkcs8PrivateKey() [2/2]

unsafe override void System.Security.Cryptography.ECDiffieHellman.ImportEncryptedPkcs8PrivateKey ( ReadOnlySpan< char > password,
ReadOnlySpan< byte > source,
out int bytesRead )
inlinevirtualinherited

Reimplemented from System.Security.Cryptography.AsymmetricAlgorithm.

Reimplemented in System.Security.Cryptography.ECDiffieHellmanImplementation.ECDiffieHellmanCng, and System.Security.Cryptography.ECDiffieHellmanCng.

Definition at line 171 of file ECDiffieHellman.cs.

172 {
173 KeyFormatHelper.ReadEncryptedPkcs8(s_validOids, source, password, (KeyFormatHelper.KeyReader<ECParameters>)EccKeyFormatHelper.FromECPrivateKey, out int bytesRead2, out ECParameters ret);
174 fixed (byte* ptr = ret.D)
175 {
176 try
177 {
178 ImportParameters(ret);
179 bytesRead = bytesRead2;
180 }
181 finally
182 {
183 CryptographicOperations.ZeroMemory(ret.D);
184 }
185 }
186 }
virtual void ImportParameters(ECParameters parameters)

References System.Security.Cryptography.EccKeyFormatHelper.FromECPrivateKey(), System.Security.Cryptography.ECDiffieHellman.ImportParameters(), System.Security.Cryptography.ECDiffieHellman.s_validOids, System.source, and System.Security.Cryptography.CryptographicOperations.ZeroMemory().