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

◆ KeySize

int System.Security.Cryptography.CngKey.KeySize
get

Definition at line 104 of file CngKey.cs.

105 {
106 get
107 {
108 int result = 0;
109 global::Interop.NCrypt.ErrorCode errorCode = global::Interop.NCrypt.NCryptGetIntProperty(_keyHandle, "PublicKeyLength", ref result);
110 if (errorCode != 0)
111 {
112 errorCode = global::Interop.NCrypt.NCryptGetIntProperty(_keyHandle, "Length", ref result);
113 }
114 if (errorCode != 0)
115 {
116 throw errorCode.ToCryptographicException();
117 }
118 return result;
119 }
120 }
readonly SafeNCryptKeyHandle _keyHandle
Definition CngKey.cs:11

Referenced by System.Security.Cryptography.ECDiffieHellmanCng.DeriveKeyMaterial(), System.Security.Cryptography.ECDiffieHellmanCng.DeriveSecretAgreementHandle(), System.Security.Cryptography.ECDiffieHellmanCng.GenerateKey(), System.Security.Cryptography.ECDsaCng.GenerateKey(), and Internal.Cryptography.CngAlgorithmCore.GetOrGenerateKey().