mirror of
https://github.com/ipxe/ipxe
synced 2026-07-06 15:51:30 +03:00
[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:
@@ -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 */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user