crypto: BIP324 ciphersuite follow-up #28267

pull stratospher wants to merge 2 commits into bitcoin:master from stratospher:followup_28008 changing 7 files +16 −12
  1. stratospher commented at 3:50 am on August 14, 2023: contributor

    follow-up to #28008.

    • move dummy_tag variable in FSChaCha20Poly1305 crypto_tests outside of the loop to be reused every time
    • use easy to read cipher.last() in AEADChaCha20Poly1305::Decrypt()
    • comment for initiator in BIP324Cipher::Initialize()
    • systematically damage ciphertext with bit positions in bip324_tests
    • use 4095 max bytes for aad in bip324 fuzz test
  2. crypto: BIP324 ciphersuite follow-up
    follow-up to #28008.
    * move `dummy_tag` variable in FSChaCha20Poly1305 crypto_tests
    outside of the loop to be reused every time
    * use easy to read `cipher.last()` in `AEADChaCha20Poly1305::Decrypt()`
    * comment for initiator in `BIP324Cipher::Initialize()`
    * systematically damage ciphertext with bit positions in bip324_tests
    * use 4095 max bytes for aad in bip324 fuzz test
    d22d5d925c
  3. DrahtBot commented at 3:50 am on August 14, 2023: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK fanquake
    Stale ACK sipa

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #28196 (BIP324 connection support by sipa)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. DrahtBot added the label Utils/log/libs on Aug 14, 2023
  5. sipa commented at 4:13 am on August 14, 2023: member
    utACK d22d5d925c000bf25ad2410ca66c4c21eea75004
  6. fanquake commented at 7:43 am on August 14, 2023: member
  7. in src/bip324.h:1 in d22d5d925c


    MarcoFalke commented at 8:59 am on August 14, 2023:

    When touching this file, could add the missing include?

    0bip324.h should add these lines:
    1#include <array>
    

    MarcoFalke commented at 9:01 am on August 14, 2023:

    See the full iwyu output: https://api.cirrus-ci.com/v1/task/4946847257591808/logs/ci.log (Search for $filename should or $filename has the correct)

    (Same for crypto/chacha20poly1305.cpp)

    (Maybe only if you have to re-touch, or as a new commit)


    stratospher commented at 11:54 am on August 14, 2023:
    done. added it in a new commit.
  8. bitcoinfinancier approved
  9. refactor: add missing headers for BIP324 ciphersuite 93cb8f0380
  10. in src/test/bip324_tests.cpp:16 in 8eb8af1f4b outdated
    10@@ -11,8 +11,10 @@
    11 #include <util/strencodings.h>
    12 
    13 #include <array>
    14-#include <vector>
    15 #include <cstddef>
    16+#include <span.h>
    17+#include <stdint.h>
    


    fanquake commented at 12:09 pm on August 14, 2023:

    Note that we keep our includes, and stardard library headers separate, so span.h should be added above. We also try use the cpp headers, so cstdint over stdint.h (regardless of what IWYU suggests).

    0#include <cstdint>
    

    stratospher commented at 2:02 am on August 15, 2023:
    interesting, done.
  11. stratospher force-pushed on Aug 15, 2023
  12. fanquake approved
  13. fanquake commented at 10:11 am on August 15, 2023: member
    ACK 93cb8f03807dcd3297b7fe18b6c901a8d2a01596 - thanks for following up here.
  14. DrahtBot requested review from sipa on Aug 15, 2023
  15. fanquake merged this on Aug 15, 2023
  16. fanquake closed this on Aug 15, 2023

  17. sidhujag referenced this in commit 012d3e68f1 on Aug 17, 2023
  18. stratospher deleted the branch on Aug 18, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-06-29 16:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me