[crypto] Use private data field for digest algorithms

Following the example of commit 25072c1 ("[crypto] Use private data
field for key exchange algorithms"), extend the definition of a digest
algorithm to include an opaque private data field.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-06-18 15:54:19 +01:00
parent 69e95ae7a5
commit d7e89f46b4
14 changed files with 161 additions and 198 deletions
+6 -3
View File
@@ -34,16 +34,19 @@ FILE_SECBOOT ( PERMITTED );
#include <errno.h>
#include <ipxe/crypto.h>
void digest_null_init ( void *ctx __unused ) {
void digest_null_init ( struct digest_algorithm *digest __unused,
void *ctx __unused ) {
/* Do nothing */
}
void digest_null_update ( void *ctx __unused, const void *src __unused,
void digest_null_update ( struct digest_algorithm *digest __unused,
void *ctx __unused, const void *src __unused,
size_t len __unused ) {
/* Do nothing */
}
void digest_null_final ( void *ctx __unused, void *out __unused ) {
void digest_null_final ( struct digest_algorithm *digest __unused,
void *ctx __unused, void *out __unused ) {
/* Do nothing */
}