← Back to Pull requests

lib/crypt.h: provide list of supported hash algorithms #217

Open
kotopesutility opened this pull request with 102 lines diff across 6 files
View on GitHub
kotopesutility kotopesutility commented on Nov 11, 2025 18:41 UTC
Author

IMHO, it might be useful for users to get a list of hashing algorithms supported by the current build. I decided to use a dictionary-like structure so that users could match the algorithm name with the corresponding prefix.

So, I think, user can iterate over this list until they get {NULL, NULL}:
https://github.com/altlinux/pyxcrypt/commit/c56c9dba3fe6a2518db5919c1fb7e1c95c4e039b#diff-43dec635b9590d1a1e5874610e291500ffc204b411a10313a60d099106452f47R126

But they will have to check if the linked version of libxcrypt is higher than some value (where this list was implemented). Or libxcrypt can also provide some var to check with ``#ifdef``

Diff: 102 lines (+101 / -1) across 6 files Reviewer: vt-alt Review duration: 556202m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.45) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 102 lines diff across 6 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 2 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
88%
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.277
Real PR Conversation Timeline
2 comments
test/crypt-get-supported-hash-methods.c
"Perhaps, "compiled and supported ...", because "provided" and "real" looks synonymous to me. Or, s/supported/reported/ (by crypt_get_supported_hash_methods)."
clarifying weight: 0.45
test/crypt-get-supported-hash-methods.c
"Or maybe "expected" instead of "real"? But I like "compiled"/"supported" "
clarifying weight: 0.45
Reviewers
Assignees
kotopesutility kotopesutility
Labels
risk: low confidence: 88.6% 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: 45.1% (MEDIUM) · Higher = larger blast radius
45.1%
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: 88.6% · Lower = rushed or shallow review
88.6%
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: 5.1% · Safe to merge
5.1%