Browse Source

move byte utils into utils package, export ByteUtils.

pull/3/head
Herbert Poul 4 years ago
parent
commit
cd4da93732
  1. 2
      example/pubspec.lock
  2. 1
      lib/kdbx.dart
  3. 2
      lib/src/crypto/key_encrypter_kdf.dart
  4. 2
      lib/src/kdbx_binary.dart
  5. 2
      lib/src/kdbx_format.dart
  6. 2
      lib/src/kdbx_header.dart
  7. 2
      lib/src/kdbx_var_dictionary.dart
  8. 2
      lib/src/kdbx_xml.dart
  9. 0
      lib/src/utils/byte_utils.dart
  10. 2
      test/internal/byte_utils_test.dart
  11. 2
      test/var_dictionary_test.dart

2
example/pubspec.lock

@ -14,7 +14,7 @@ packages:
name: argon2_ffi_base name: argon2_ffi_base
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "0.1.4+3" version: "0.1.4+6"
args: args:
dependency: transitive dependency: transitive
description: description:

1
lib/kdbx.dart

@ -22,3 +22,4 @@ export 'src/kdbx_header.dart'
KdbxVersion; KdbxVersion;
export 'src/kdbx_meta.dart'; export 'src/kdbx_meta.dart';
export 'src/kdbx_object.dart'; export 'src/kdbx_object.dart';
export 'src/utils/byte_utils.dart' show ByteUtils;

2
lib/src/crypto/key_encrypter_kdf.dart

@ -5,7 +5,7 @@ import 'package:argon2_ffi_base/argon2_ffi_base.dart';
import 'package:crypto/crypto.dart' as crypto; import 'package:crypto/crypto.dart' as crypto;
import 'package:isolate/isolate_runner.dart'; import 'package:isolate/isolate_runner.dart';
import 'package:kdbx/kdbx.dart'; import 'package:kdbx/kdbx.dart';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:kdbx/src/kdbx_var_dictionary.dart'; import 'package:kdbx/src/kdbx_var_dictionary.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:pointycastle/export.dart'; import 'package:pointycastle/export.dart';

2
lib/src/kdbx_binary.dart

@ -2,7 +2,7 @@ import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:kdbx/src/kdbx_header.dart'; import 'package:kdbx/src/kdbx_header.dart';
import 'package:kdbx/src/kdbx_xml.dart'; import 'package:kdbx/src/kdbx_xml.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';

2
lib/src/kdbx_format.dart

@ -12,7 +12,7 @@ import 'package:kdbx/kdbx.dart';
import 'package:kdbx/src/crypto/key_encrypter_kdf.dart'; import 'package:kdbx/src/crypto/key_encrypter_kdf.dart';
import 'package:kdbx/src/crypto/protected_salt_generator.dart'; import 'package:kdbx/src/crypto/protected_salt_generator.dart';
import 'package:kdbx/src/crypto/protected_value.dart'; import 'package:kdbx/src/crypto/protected_value.dart';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:kdbx/src/internal/consts.dart'; import 'package:kdbx/src/internal/consts.dart';
import 'package:kdbx/src/internal/crypto_utils.dart'; import 'package:kdbx/src/internal/crypto_utils.dart';
import 'package:kdbx/src/kdbx_binary.dart'; import 'package:kdbx/src/kdbx_binary.dart';

2
lib/src/kdbx_header.dart

@ -2,7 +2,7 @@ import 'dart:typed_data';
import 'package:crypto/crypto.dart' as crypto; import 'package:crypto/crypto.dart' as crypto;
import 'package:kdbx/src/crypto/key_encrypter_kdf.dart'; import 'package:kdbx/src/crypto/key_encrypter_kdf.dart';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:kdbx/src/internal/consts.dart'; import 'package:kdbx/src/internal/consts.dart';
import 'package:kdbx/src/kdbx_binary.dart'; import 'package:kdbx/src/kdbx_binary.dart';
import 'package:kdbx/src/kdbx_var_dictionary.dart'; import 'package:kdbx/src/kdbx_var_dictionary.dart';

2
lib/src/kdbx_var_dictionary.dart

@ -1,6 +1,6 @@
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';

2
lib/src/kdbx_xml.dart

@ -3,7 +3,7 @@ import 'dart:typed_data';
import 'package:clock/clock.dart'; import 'package:clock/clock.dart';
import 'package:kdbx/kdbx.dart'; import 'package:kdbx/kdbx.dart';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:kdbx/src/kdbx_consts.dart'; import 'package:kdbx/src/kdbx_consts.dart';
import 'package:meta/meta.dart'; import 'package:meta/meta.dart';
import 'package:xml/xml.dart'; import 'package:xml/xml.dart';

0
lib/src/internal/byte_utils.dart → lib/src/utils/byte_utils.dart

2
test/internal/byte_utils_test.dart

@ -1,6 +1,6 @@
import 'dart:io'; import 'dart:io';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {

2
test/var_dictionary_test.dart

@ -1,5 +1,5 @@
import 'package:kdbx/src/crypto/key_encrypter_kdf.dart'; import 'package:kdbx/src/crypto/key_encrypter_kdf.dart';
import 'package:kdbx/src/internal/byte_utils.dart'; import 'package:kdbx/src/utils/byte_utils.dart';
import 'package:kdbx/src/kdbx_var_dictionary.dart'; import 'package:kdbx/src/kdbx_var_dictionary.dart';
import 'package:logging/logging.dart'; import 'package:logging/logging.dart';
import 'package:logging_appenders/logging_appenders.dart'; import 'package:logging_appenders/logging_appenders.dart';

Loading…
Cancel
Save