Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EccKeyBlob"/> struct.
 /// </summary>
 /// <param name="keyBlob">The key blob that starts with an BCRYPT_ECCKEY_BLOB structure.</param>
 public EccKeyBlob(byte[] keyBlob)
 {
     this.Magic = (EccKeyBlobMagicNumbers)BitConverter.ToUInt32(keyBlob, 0);
     this.KeyLength = BitConverter.ToUInt32(keyBlob, 4);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="EccKeyBlob"/> struct.
 /// </summary>
 /// <param name="keyBlob">The key blob that starts with an BCRYPT_ECCKEY_BLOB structure.</param>
 public EccKeyBlob(byte[] keyBlob)
 {
     this.Magic     = (EccKeyBlobMagicNumbers)BitConverter.ToUInt32(keyBlob, 0);
     this.KeyLength = BitConverter.ToInt32(keyBlob, 4);
 }