ente/mobile/lib/models/set_keys_request.dart

26 lines
560 B
Dart
Raw Permalink Normal View History

2021-03-28 12:43:44 +00:00
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,
2021-03-28 12:43:44 +00:00
});
Map<String, dynamic> toMap() {
return {
'kekSalt': kekSalt,
'encryptedKey': encryptedKey,
'keyDecryptionNonce': keyDecryptionNonce,
'memLimit': memLimit,
'opsLimit': opsLimit,
};
}
}