Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
26 lines
536 B
C
26 lines
536 B
C
#include "crypto/axtls/crypto.h"
|
|
#include <ipxe/crypto.h>
|
|
#include <ipxe/sha1.h>
|
|
|
|
static void sha1_init ( void *ctx ) {
|
|
SHA1Init ( ctx );
|
|
}
|
|
|
|
static void sha1_update ( void *ctx, const void *data, size_t len ) {
|
|
SHA1Update ( ctx, data, len );
|
|
}
|
|
|
|
static void sha1_final ( void *ctx, void *out ) {
|
|
SHA1Final ( ctx, out );
|
|
}
|
|
|
|
struct digest_algorithm sha1_algorithm = {
|
|
.name = "sha1",
|
|
.ctxsize = SHA1_CTX_SIZE,
|
|
.blocksize = 64,
|
|
.digestsize = SHA1_DIGEST_SIZE,
|
|
.init = sha1_init,
|
|
.update = sha1_update,
|
|
.final = sha1_final,
|
|
};
|