Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wallet database encryption does not bind to field keys #4137 #4340

Merged
merged 19 commits into from
Aug 3, 2022

Commits on Jul 29, 2022

  1. Added source_key and a MAC to encrypt_bytes_integral_nonce() and …

    …`decrypt_bytes_integral_nonce()`.
    
    tari-project#4137
    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    983ee93 View commit details
    Browse the repository at this point in the history
  2. added source_key() to Encryptable which builds a local source_key f…

    …or encryption/decryption
    
    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    b11695f View commit details
    Browse the repository at this point in the history
  3. fix: now using OUTPUT as source key prefix for both NewOutputSql an…

    …d OutputSql due to later transition without re-encryption
    
    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    ddacd1b View commit details
    Browse the repository at this point in the history
  4. fix: key manager also has to use a common prefix for the source key

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    eeaad2b View commit details
    Browse the repository at this point in the history
  5. renamed source_key to domain

    `decrypt_bytes_integral_nonce()` is now decrypting a message only if appended and expected MACs match
    moved domain prefixes `Encryptable` as constants
    replaced `.join(&0)` with `.concat()` in `Encryptable.domain()` implementations
    removed package-lock.json
    
    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    8076d00 View commit details
    Browse the repository at this point in the history
  6. fix: refactored code to use the new hashing API approach

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    698aeaf View commit details
    Browse the repository at this point in the history
  7. tweaking .circleci/config.yml

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    3a5c6a8 View commit details
    Browse the repository at this point in the history
  8. fix: specified different module names for hashers

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    5ed1e16 View commit details
    Browse the repository at this point in the history
  9. restored package-lock.json

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    c0f262b View commit details
    Browse the repository at this point in the history
  10. undone changes to .circleci/config.yml

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Jul 29, 2022
    Configuration menu
    Copy the full SHA
    932b6e3 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2022

  1. Configuration menu
    Copy the full SHA
    2320c91 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2022

  1. Configuration menu
    Copy the full SHA
    8593016 View commit details
    Browse the repository at this point in the history
  2. cleanup

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    e6f6218 View commit details
    Browse the repository at this point in the history
  3. updated according to new tari_crypto changes

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Aug 2, 2022
    Configuration menu
    Copy the full SHA
    8a34bda View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d814bac View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2022

  1. Configuration menu
    Copy the full SHA
    5113b03 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f082e6 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'development' into issue-4137

    # Conflicts:
    #	base_layer/wallet/src/storage/sqlite_db/wallet.rs
    agubarev committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    ea31043 View commit details
    Browse the repository at this point in the history
  4. merged

    Signed-off-by: Andrei Gubarev <agubarev@users.noreply.github.com>
    agubarev committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    3d7c643 View commit details
    Browse the repository at this point in the history