iPXE
|
Digest commands. More...
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <ipxe/command.h>
#include <ipxe/parseopt.h>
#include <ipxe/image.h>
#include <ipxe/crypto.h>
#include <ipxe/md5.h>
#include <ipxe/sha1.h>
#include <usr/imgmgmt.h>
Go to the source code of this file.
Data Structures | |
struct | digest_options |
"digest" options More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
static int | digest_exec (int argc, char **argv, struct digest_algorithm *digest) |
The "digest" command. More... | |
static int | md5sum_exec (int argc, char **argv) |
static int | sha1sum_exec (int argc, char **argv) |
Variables | |
static struct option_descriptor | digest_opts [] = {} |
"digest" option list More... | |
static struct command_descriptor | digest_cmd |
"digest" command descriptor More... | |
struct command md5sum_command | __command |
Digest commands.
Definition in file digest_cmd.c.
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
|
static |
The "digest" command.
argc | Argument count |
argv | Argument list |
digest | Digest algorithm |
rc | Return status code |
Definition at line 59 of file digest_cmd.c.
References copy_from_user(), digest_algorithm::ctxsize, image::data, digest_cmd, digest_final(), digest_init(), digest_update(), digest_algorithm::digestsize, imgacquire(), len, image::len, image::name, offset, optind, opts, parse_options(), printf(), and rc.
Referenced by md5sum_exec(), and sha1sum_exec().
|
static |
Definition at line 107 of file digest_cmd.c.
References digest_exec(), and md5_algorithm.
|
static |
Definition at line 111 of file digest_cmd.c.
References digest_exec(), and sha1_algorithm.
|
static |
"digest" option list
Definition at line 44 of file digest_cmd.c.
|
static |
"digest" command descriptor
Definition at line 47 of file digest_cmd.c.
Referenced by digest_exec().
struct command sha1sum_command __command |
Definition at line 115 of file digest_cmd.c.