set_keys_request.dart 560 B

12345678910111213141516171819202122232425
  1. class SetKeysRequest {
  2. final String kekSalt;
  3. final String encryptedKey;
  4. final String keyDecryptionNonce;
  5. final int memLimit;
  6. final int opsLimit;
  7. SetKeysRequest({
  8. required this.kekSalt,
  9. required this.encryptedKey,
  10. required this.keyDecryptionNonce,
  11. required this.memLimit,
  12. required this.opsLimit,
  13. });
  14. Map<String, dynamic> toMap() {
  15. return {
  16. 'kekSalt': kekSalt,
  17. 'encryptedKey': encryptedKey,
  18. 'keyDecryptionNonce': keyDecryptionNonce,
  19. 'memLimit': memLimit,
  20. 'opsLimit': opsLimit,
  21. };
  22. }
  23. }