21 lines
614 B
Dart
21 lines
614 B
Dart
// See file LICENSE for more information.
|
|
|
|
import 'package:pointycastle/pointycastle.dart';
|
|
|
|
import '../test/runners/key_derivators.dart';
|
|
import '../test/src/helpers.dart';
|
|
|
|
void main() {
|
|
var salt = createUint8ListFromString('salt');
|
|
var pkcs = KeyDerivator('SHA-1/HMAC/PBKDF2');
|
|
var params = Pbkdf2Parameters(salt, 100, 16);
|
|
|
|
runKeyDerivatorTests(pkcs, [
|
|
params,
|
|
'Lorem ipsum dolor sit amet, consectetur adipiscing elit...',
|
|
'12aaf52b2fc239db41778c59d0e3c927',
|
|
params,
|
|
'En un lugar de La Mancha, de cuyo nombre no quiero acordarme...',
|
|
'5b78b99ac2cc6b6626558f53c7490f4a',
|
|
]);
|
|
}
|