testDeriveKeys static method
ВРЕМЕННЫЙ МЕТОД ДЛЯ ОТЛАДКИ - убрать после тестирования
Implementation
static Future<void> testDeriveKeys(List<int> key, List<int> nonce) async {
print('=== TESTING KEY DERIVATION ===');
print('Input Key: ${_bytesToHex(key)}');
print('Input Nonce: ${_bytesToHex(nonce)}');
final derived = await _deriveKeys(key, nonce);
print('Generated Ek: ${_bytesToHex(derived.encryptionKey)}');
print('Generated CN: ${_bytesToHex(derived.counterNonce)}');
print('Generated Ak: ${_bytesToHex(derived.authKey)}');
print(
'Expected Ek: c32b8e1c522550c8854d5177eb2ca96acc2072e3ca58407e0ee2f6470e92e49f');
print('Expected CN: 129a23d170eddce49867d4888d276390abf7e48e550feb7c');
print(
'Expected Ak: 3d6d4c0504cbefdc54a562967ca276d0a99e0120cf154cc8624feb26da3a73e9');
}