mirror of
https://github.com/kwsch/NHSE.git
synced 2026-08-12 04:36:19 -05:00
Minor tweaks
no functional change
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace NHSE.Core
|
||||
{
|
||||
public readonly struct CryptoFile
|
||||
internal readonly ref struct CryptoFile
|
||||
{
|
||||
public readonly byte[] Data;
|
||||
public readonly byte[] Key;
|
||||
@@ -12,12 +12,5 @@ public CryptoFile(byte[] data, byte[] key, byte[] ctr)
|
||||
Key = key;
|
||||
Ctr = ctr;
|
||||
}
|
||||
|
||||
#region Equality Comparison
|
||||
public override bool Equals(object obj) => obj is CryptoFile r && r == this;
|
||||
public override int GetHashCode() => Data.GetHashCode();
|
||||
public static bool operator !=(CryptoFile left, CryptoFile right) => !(left == right);
|
||||
public static bool operator ==(CryptoFile left, CryptoFile right) => left.Data == right.Data;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user