ente/mobile/lib/models/set_keys_request.dart
2024-03-01 12:25:37 +05:30

26 lines
560 B
Dart

class SetKeysRequest {
final String kekSalt;
final String encryptedKey;
final String keyDecryptionNonce;
final int memLimit;
final int opsLimit;
SetKeysRequest({
required this.kekSalt,
required this.encryptedKey,
required this.keyDecryptionNonce,
required this.memLimit,
required this.opsLimit,
});
Map<String, dynamic> toMap() {
return {
'kekSalt': kekSalt,
'encryptedKey': encryptedKey,
'keyDecryptionNonce': keyDecryptionNonce,
'memLimit': memLimit,
'opsLimit': opsLimit,
};
}
}