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

◆ GetProperty()

CngProperty System.Security.Cryptography.CngKey.GetProperty ( string name,
CngPropertyOptions options )
inline

Definition at line 227 of file CngKey.cs.

228 {
229 if (name == null)
230 {
231 throw new ArgumentNullException("name");
232 }
233 byte[] array = _keyHandle.GetProperty(name, options);
234 if (array == null)
235 {
236 throw global::Interop.NCrypt.ErrorCode.NTE_NOT_FOUND.ToCryptographicException();
237 }
238 if (array.Length == 0)
239 {
240 array = null;
241 }
242 return new CngProperty(name, array, options);
243 }
readonly SafeNCryptKeyHandle _keyHandle
Definition CngKey.cs:11

References System.Security.Cryptography.CngKey._keyHandle, System.array, and System.options.