File tree Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ private protected override bool DecryptCore(
108
108
109
109
int error = crypto_aead_aegis128l_decrypt (
110
110
plaintext ,
111
- out ulong mlen ,
111
+ out ulong plaintextLength ,
112
112
IntPtr . Zero ,
113
113
ciphertext ,
114
114
( ulong ) ciphertext . Length ,
@@ -119,7 +119,7 @@ private protected override bool DecryptCore(
119
119
120
120
// libsodium clears plaintext if decryption fails
121
121
122
- Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == mlen ) ;
122
+ Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == plaintextLength ) ;
123
123
return error == 0 ;
124
124
}
125
125
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ private protected override bool DecryptCore(
108
108
109
109
int error = crypto_aead_aegis256_decrypt (
110
110
plaintext ,
111
- out ulong mlen ,
111
+ out ulong plaintextLength ,
112
112
IntPtr . Zero ,
113
113
ciphertext ,
114
114
( ulong ) ciphertext . Length ,
@@ -119,7 +119,7 @@ private protected override bool DecryptCore(
119
119
120
120
// libsodium clears plaintext if decryption fails
121
121
122
- Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == mlen ) ;
122
+ Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == plaintextLength ) ;
123
123
return error == 0 ;
124
124
}
125
125
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ private protected override bool DecryptCore(
133
133
134
134
int error = crypto_aead_aes256gcm_decrypt (
135
135
plaintext ,
136
- out ulong mlen ,
136
+ out ulong plaintextLength ,
137
137
IntPtr . Zero ,
138
138
ciphertext ,
139
139
( ulong ) ciphertext . Length ,
@@ -144,7 +144,7 @@ private protected override bool DecryptCore(
144
144
145
145
// libsodium clears plaintext if decryption fails
146
146
147
- Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == mlen ) ;
147
+ Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == plaintextLength ) ;
148
148
return error == 0 ;
149
149
}
150
150
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ private protected override bool DecryptCore(
108
108
109
109
int error = crypto_aead_chacha20poly1305_ietf_decrypt (
110
110
plaintext ,
111
- out ulong mlen ,
111
+ out ulong plaintextLength ,
112
112
IntPtr . Zero ,
113
113
ciphertext ,
114
114
( ulong ) ciphertext . Length ,
@@ -119,7 +119,7 @@ private protected override bool DecryptCore(
119
119
120
120
// libsodium clears plaintext if decryption fails
121
121
122
- Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == mlen ) ;
122
+ Debug . Assert ( error != 0 || ( ulong ) plaintext . Length == plaintextLength ) ;
123
123
return error == 0 ;
124
124
}
125
125
Original file line number Diff line number Diff line change @@ -115,13 +115,13 @@ private protected override void SignCore(
115
115
116
116
int error = crypto_sign_ed25519_detached (
117
117
signature ,
118
- out ulong siglen ,
118
+ out ulong signatureLength ,
119
119
data ,
120
120
( ulong ) data . Length ,
121
121
keyHandle ) ;
122
122
123
123
Debug . Assert ( error == 0 ) ;
124
- Debug . Assert ( ( ulong ) signature . Length == siglen ) ;
124
+ Debug . Assert ( ( ulong ) signature . Length == signatureLength ) ;
125
125
}
126
126
127
127
internal override bool TryExportKey (
Original file line number Diff line number Diff line change @@ -170,11 +170,11 @@ internal override void FinalSignCore(
170
170
int error = crypto_sign_ed25519ph_final_create (
171
171
ref state . ed25519ph ,
172
172
signature ,
173
- out ulong siglen ,
173
+ out ulong signatureLength ,
174
174
keyHandle ) ;
175
175
176
176
Debug . Assert ( error == 0 ) ;
177
- Debug . Assert ( ( ulong ) signature . Length == siglen ) ;
177
+ Debug . Assert ( ( ulong ) signature . Length == signatureLength ) ;
178
178
}
179
179
180
180
internal override bool FinalVerifyCore (
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ private void Fail()
167
167
_stack = default ;
168
168
}
169
169
170
- private readonly bool IsInvalidInteger (
170
+ private static bool IsInvalidInteger (
171
171
ReadOnlySpan < byte > bytes ,
172
172
int maxSize )
173
173
{
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static void Properties()
27
27
[ InlineData ( 256 / 8 ) ]
28
28
[ InlineData ( 384 / 8 ) ]
29
29
[ InlineData ( 512 / 8 ) ]
30
- public static void PropertiesContructed ( int hashSize )
30
+ public static void PropertiesConstructed ( int hashSize )
31
31
{
32
32
var a = new Blake2b ( hashSize ) ;
33
33
You can’t perform that action at this time.
0 commit comments