This was copied from RSA. When I moved it out of the safe area I get the compile error:  Error   CS0233  'Interop.BCrypt.BCRYPT_ECCFULLKEY_BLOB' does not have a predefined size, therefore sizeof can only be used in an unsafe context (consider using System.Runtime.InteropServices.Marshal.SizeOf) 