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


    maflcko 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>
    

    maflcko 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. refactor: add missing headers for BIP324 ciphersuite 93cb8f0380
  9. 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.
  10. stratospher force-pushed on Aug 15, 2023
  11. fanquake approved
  12. fanquake commented at 10:11 am on August 15, 2023: member
    ACK 93cb8f03807dcd3297b7fe18b6c901a8d2a01596 - thanks for following up here.
  13. DrahtBot requested review from sipa on Aug 15, 2023
  14. fanquake merged this on Aug 15, 2023
  15. fanquake closed this on Aug 15, 2023

  16. sidhujag referenced this in commit 012d3e68f1 on Aug 17, 2023
  17. stratospher deleted the branch on Aug 18, 2023
  18. kwvg referenced this in commit 08f529080f on Feb 19, 2024
  19. kwvg referenced this in commit 8f6cc7605b on Feb 20, 2024
  20. kwvg referenced this in commit 2ee479ad55 on Feb 23, 2024
  21. kwvg referenced this in commit 6187bb4d38 on Feb 24, 2024
  22. kwvg referenced this in commit e9af4ffd90 on Feb 27, 2024
  23. kwvg referenced this in commit ae6b0439f1 on Feb 27, 2024
  24. kwvg referenced this in commit c1c9f04715 on Feb 29, 2024
  25. kwvg referenced this in commit 5fd5bc3658 on Mar 5, 2024
  26. kwvg referenced this in commit 7c5edf772a on Mar 5, 2024
  27. PastaPastaPasta referenced this in commit e84e3d9c85 on Mar 6, 2024
  28. bitcoin locked this on Aug 17, 2024

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-11-21 09:12 UTC

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