← Back to Pull requests

Add support for Argon2 #150

Open
maandree opened this pull request with 492 lines diff across 13 files
View on GitHub
maandree maandree commented on Feb 15, 2022 18:25 UTC
Author

Dependencies:
https://github.com/maandree/libar2simplified (version 1.1)
https://github.com/maandree/libar2 (version 1.1)
https://github.com/maandree/libblake (version 1.0; used by libar2)
pthread (used by libar2simplified)

Compatible with the reference implementation of Argon2, but it also supports (not documented; libar2simplified adds this) replacing the salt or hash with their length encoded as asterisk-prefixed, decimal integers; if this is done with the salt, a random salt is generated.

Diff: 492 lines (+469 / -23) across 13 files Reviewer: rathann Review duration: 2521829m
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.65) × (1 − Review Confidence (0.87)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 492 lines diff across 13 files
0.65
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.88 · 5 substantive comment(s)
0.88
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
86%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.371
Real PR Conversation Timeline
6 items
codecov[bot] codecov[bot] commented on Feb 15, 2022 18:44 UTC
Bot

Codecov Report


Patch coverage has no change and project coverage change: +2.87 :tada:
Comparison is base (a2129ae) 88.58% compared to head (1b88359) 91.46%.

:exclamation: Current head 1b88359 differs from pull request most recent head e72e23e. Consider uploading reports for the commit e72e23e to get more accurate results

<details><summary>Additional details and impacted files</summary>

@@             Coverage Diff             @@
##           develop     #150      +/-   ##
===========================================
+ Coverage    88.58%   91.46%   +2.87%     
===========================================
  Files           32       10      -22     
  Lines         3618      527    -3091     
  Branches       690       86     -604     
===========================================
- Hits          3205      482    -2723     
+ Misses         228       25     -203     
+ Partials       185       20     -165     

see 26 files with indirect coverage changes

</details>

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

rathann rathann commented on code on Jun 22, 2023 09:36 UTC
Code Review
doc/crypt.5:1
@@ -189,6 +189,28 @@ The algorithm was specifically designed to make it costly to perform
 large-scale custom hardware attacks by requiring large amounts of memory.
 In 2016, the scrypt algorithm was published by IETF as RFC 7914.
 .hash "$7$" "\e$7\e$[./A-Za-z0-9]{11,97}\e$[./A-Za-z0-9]{43}" unlimited 8 256 256 "up to 512 (128+ recommended)" "6 to 11 (logarithmic)"
+.Ss argon2_d
+argon2_d is one of the variants of Argon2 key derivation functions that won
+the Password Hashing Competition 2015. argon2d is designed for environments
+taht are safe from side-channel attacks. Acceptable for new hashes, but

typo

rathann rathann commented on code on Jun 22, 2023 09:36 UTC
Code Review
doc/crypt.5:1
@@ -189,6 +189,28 @@ The algorithm was specifically designed to make it costly to perform
 large-scale custom hardware attacks by requiring large amounts of memory.
 In 2016, the scrypt algorithm was published by IETF as RFC 7914.
 .hash "$7$" "\e$7\e$[./A-Za-z0-9]{11,97}\e$[./A-Za-z0-9]{43}" unlimited 8 256 256 "up to 512 (128+ recommended)" "6 to 11 (logarithmic)"
+.Ss argon2_d
+argon2_d is one of the variants of Argon2 key derivation functions that won
+the Password Hashing Competition 2015. argon2d is designed for environments
+taht are safe from side-channel attacks. Acceptable for new hashes, but
+not widely supported.
+.hash "$argon2d$" "\e$argon2d\e$(v=(16|19)\e$)?m=[1-9][0-9]*,t=[1-9][0-9]*,p=[1-9][0-9]*\e$[A-Za-z0-9+/]{11,}\e$[A-Za-z0-9+/]{6,}" 4,294,967,295 8 "32 to 34,359,738,360 (256 default)" "32 to 34,359,738,360 (256 default)" "64 to 34,359,738,360 (128+ recommended)" "1 to 4,294,967,295"
+.Ss argon2_i
+argon2_i is one of the variants of Argon2 key derivation functions that won
+the Password Hashing Competition 2015. argon2i is designed for environments
+taht are not safe from side-channel attacks. Acceptable for new hashes, but

same typo as above

fkromer fkromer commented on Feb 24, 2026 14:57 UTC
Contributor

Is the merge of this PR already scheduled (release wise)?

packit-as-a-service[bot] packit-as-a-service[bot] commented on Oct 01, 2026 17:32 UTC
Bot

Failed to load packit config file:

Cannot parse package config. ValidationError({'jobs': {0: {'job': ['Must be one of: propose_downstream, pull_from_upstream, sync_from_downstream, copr_build, upstream_koji_build, koji_build, tests, bodhi_update, vm_image_build, koji_build_tag.'], 'packages': defaultdict(<class 'dict'>, {'libxcrypt': {'value': {'synced_files': ['Unknown field.']}}})}, 1: {'job': ['Must be one of: propose_downstream, pull_from_upstream, sync_from_downstream, copr_build, upstream_koji_build, koji_build, tests, bodhi_update, vm_image_build, koji_build_tag.'], 'packages': defaultdict(<class 'dict'>, {'libxcrypt': {'value': {'synced_files': ['Unknown field.']}}})}, 2: {'packages': defaultdict(<class 'dict'>, {'libxcrypt': {'value': {'synced_files': ['Unknown field.']}}})}}, 'packages': defaultdict(<class 'dict'>, {'libxcrypt': {'value': {'synced_files': ['Unknown field.']}}})})

For more info, please check out the documentation or contact the Packit team. You can also use our CLI command config validate or our pre-commit hooks for validation of the configuration.

Reviewers
Assignees
maandree maandree
Labels
risk: low confidence: 86.7% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 64.7% (MEDIUM) · Higher = larger blast radius
64.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 86.7% · Lower = rushed or shallow review
86.7%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 8.6% · Safe to merge
8.6%