12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // ignore_for_file: non_constant_identifier_names
16
+
15
17
part of impl_ffi;
16
18
17
19
/// Get valid value for `jwk.alg` property given an [EllipticCurve] for ECDSA.
@@ -208,13 +210,13 @@ class _EcdsaPrivateKey implements EcdsaPrivateKey {
208
210
Future <Uint8List > signStream (Stream <List <int >> data, Hash hash) async {
209
211
ArgumentError .checkNotNull (data, 'data' );
210
212
ArgumentError .checkNotNull (hash, 'hash' );
211
- final _hash = _Hash .fromHash (hash).MD ;
213
+ final md = _Hash .fromHash (hash)._md ;
212
214
213
215
final sig = await _withEVP_MD_CTX ((ctx) async {
214
216
_checkOpIsOne (ssl.EVP_DigestSignInit .invoke (
215
217
ctx,
216
218
ffi.nullptr,
217
- _hash ,
219
+ md ,
218
220
ffi.nullptr,
219
221
_key,
220
222
));
@@ -266,7 +268,7 @@ class _EcdsaPublicKey implements EcdsaPublicKey {
266
268
ArgumentError .checkNotNull (signature, 'signature' );
267
269
ArgumentError .checkNotNull (data, 'data' );
268
270
ArgumentError .checkNotNull (hash, 'hash' );
269
- final _hash = _Hash .fromHash (hash).MD ;
271
+ final md = _Hash .fromHash (hash)._md ;
270
272
271
273
// Convert to DER signature
272
274
final sig = _convertEcdsaWebCryptoSignatureToDerSignature (_key, signature);
@@ -280,7 +282,7 @@ class _EcdsaPublicKey implements EcdsaPublicKey {
280
282
_checkOpIsOne (ssl.EVP_DigestVerifyInit .invoke (
281
283
ctx,
282
284
pctx,
283
- _hash ,
285
+ md ,
284
286
ffi.nullptr,
285
287
_key,
286
288
));
0 commit comments