We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 604fb48 commit ed4b8caCopy full SHA for ed4b8ca
1 file changed
cryptography/lib/src/dart/hmac.dart
@@ -120,13 +120,6 @@ class _DartHmacSink extends MacSink with DartMacSinkMixin {
120
'AAD is not supported by HMAC',
121
);
122
}
123
- if (secretKey.bytes.isEmpty) {
124
- throw ArgumentError.value(
125
- secretKey,
126
- 'secretKey',
127
- 'Secret key must be non-empty',
128
- );
129
- }
130
_isClosed = false;
131
var hmacKey = secretKey.bytes;
132
var eraseKey = false;
0 commit comments