{"record":{"id":"9d8e58b788ef6d43","repo":"uutils/coreutils","slug":"openssl-hasher-finish-failed","errorCode":null,"errorMessage":"OpenSSL hasher finish failed","messagePattern":"OpenSSL hasher finish failed","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/uucore/src/lib/features/sum.rs","lineNumber":535,"sourceCode":"                }\n            }\n        }\n\n        impl Digest for $algo_type {\n            fn hash_update(&mut self, input: &[u8]) {\n                match self {\n                    Self::OpenSsl(h) => {\n                        h.update(input).expect(\"OpenSSL hasher update failed\");\n                    }\n                    Self::PureRust(h) => digest::Digest::update(h, input),\n                }\n            }\n\n            fn hash_finalize(&mut self, out: &mut [u8]) {\n                match self {\n                    // `finish` finalizes the hash and resets the underlying context.\n                    Self::OpenSsl(h) => {\n                        let result = h.finish().expect(\"OpenSSL hasher finish failed\");\n                        out.copy_from_slice(&result);\n                    }\n                    Self::PureRust(h) => {\n                        let result = digest::Digest::finalize_reset(h);\n                        out.copy_from_slice(&result);\n                    }\n                }\n            }\n\n            fn reset(&mut self) {\n                *self = Self::default();\n            }\n\n            fn output_bits(&self) -> usize {\n                Self::BIT_SIZE\n            }\n        }\n    };","sourceCodeStart":517,"sourceCodeEnd":553,"githubUrl":"https://github.com/uutils/coreutils/blob/0b77ced48502a5f80c51dfa827af7e69f3687053/src/uucore/src/lib/features/sum.rs#L517-L553","documentation":"Error \"OpenSSL hasher finish failed\" thrown in uutils/coreutils.","triggerScenarios":"Occurs when the OpenSSL-backed hasher fails while finalizing the digest.","commonSituations":"OpenSSL finalization failure after update errors or invalid hasher state.","solutions":["Call finish only once per hasher instance; create a new context for each digest.","Check the OpenSSL error stack for the root cause of the finalize failure."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0b77ced48502a5f80c51dfa827af7e69f3687053","analyzedAt":"2026-08-19T21:43:27.871Z","contentChangedAt":"2026-08-19T21:43:27.871Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}