Skip to content

Add SHA-384 support to file checksum computation (FIPS+NCS) - #267

Open
vkalapov wants to merge 1 commit into
masterfrom
fips-file-digest-sha256
Open

Add SHA-384 support to file checksum computation (FIPS+NCS)#267
vkalapov wants to merge 1 commit into
masterfrom
fips-file-digest-sha256

Conversation

@vkalapov

Copy link
Copy Markdown
Contributor

What

Add SHA384 / SHA-384 cases to ComputeFileChecksum in util/digest.go, and also handle the hyphenated SHA-256 variant while here.

Why

The deploy service now stores file digests with SHA-384 (DIGEST_ALGORITHM = "SHA-384") to satisfy FIPS 140-3 and NCS MODERATE requirements. The CLI calls GET /files and uses the digestAlgorithm field returned per entry to compute a local digest for skip-upload optimisation. Without this change, old CLI hits the default branch and prints "Unsupported digest algorithm \"SHA-384\"", causing a re-upload on every retry instead of skipping.

Deploys still succeed without this fix (the server never verifies a client-sent digest), but the skip optimisation is degraded.

LMCROSSITXSADEPLOY-3224

@vkalapov
vkalapov force-pushed the fips-file-digest-sha256 branch from ec08ad6 to 505e9f1 Compare July 28, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant