FD.io VPP
v20.09-64-g4f7b92f0a
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | clib_sha2_ctx_t |
Enumerations | |
enum | clib_sha2_type_t { CLIB_SHA2_224, CLIB_SHA2_256, CLIB_SHA2_384, CLIB_SHA2_512, CLIB_SHA2_512_224, CLIB_SHA2_512_256 } |
Functions | |
static_always_inline void | clib_sha2_init (clib_sha2_ctx_t *ctx, clib_sha2_type_t type) |
void | clib_sha256_block (clib_sha2_ctx_t *ctx, const u8 *msg, uword n_blocks) |
static_always_inline void | clib_sha512_block (clib_sha2_ctx_t *ctx, const u8 *msg, uword n_blocks) |
static_always_inline void | clib_sha2_update (clib_sha2_ctx_t *ctx, const u8 *msg, uword n_bytes) |
static_always_inline void | clib_sha2_final (clib_sha2_ctx_t *ctx, u8 *digest) |
static_always_inline void | clib_sha2 (clib_sha2_type_t type, const u8 *msg, uword len, u8 *digest) |
static_always_inline void | clib_hmac_sha2 (clib_sha2_type_t type, const u8 *key, uword key_len, const u8 *msg, uword len, u8 *digest) |
Variables | |
static const u32 | sha224_h [8] |
static const u32 | sha256_h [8] |
static const u32 | sha256_k [64] |
static const u64 | sha384_h [8] |
static const u64 | sha512_h [8] |
static const u64 | sha512_224_h [8] |
static const u64 | sha512_256_h [8] |
static const u64 | sha512_k [80] |
#define clib_hmac_sha224 | ( | ... | ) | clib_hmac_sha2 (CLIB_SHA2_224, __VA_ARGS__) |
#define clib_hmac_sha256 | ( | ... | ) | clib_hmac_sha2 (CLIB_SHA2_256, __VA_ARGS__) |
#define clib_hmac_sha384 | ( | ... | ) | clib_hmac_sha2 (CLIB_SHA2_384, __VA_ARGS__) |
#define clib_hmac_sha512 | ( | ... | ) | clib_hmac_sha2 (CLIB_SHA2_512, __VA_ARGS__) |
#define clib_hmac_sha512_224 | ( | ... | ) | clib_hmac_sha2 (CLIB_SHA2_512_224, __VA_ARGS__) |
#define clib_hmac_sha512_256 | ( | ... | ) | clib_hmac_sha2 (CLIB_SHA2_512_256, __VA_ARGS__) |
#define clib_sha224 | ( | ... | ) | clib_sha2 (CLIB_SHA2_224, __VA_ARGS__) |
#define clib_sha256 | ( | ... | ) | clib_sha2 (CLIB_SHA2_256, __VA_ARGS__) |
#define clib_sha384 | ( | ... | ) | clib_sha2 (CLIB_SHA2_384, __VA_ARGS__) |
#define clib_sha512 | ( | ... | ) | clib_sha2 (CLIB_SHA2_512, __VA_ARGS__) |
#define clib_sha512_224 | ( | ... | ) | clib_sha2 (CLIB_SHA2_512_224, __VA_ARGS__) |
#define clib_sha512_256 | ( | ... | ) | clib_sha2 (CLIB_SHA2_512_256, __VA_ARGS__) |
#define SHA256_CSIGMA0 | ( | x | ) |
#define SHA256_CSIGMA1 | ( | x | ) |
#define SHA256_MSG_SCHED | ( | w, | |
j | |||
) |
#define SHA256_SSIGMA0 | ( | x | ) |
#define SHA256_SSIGMA1 | ( | x | ) |
#define SHA256_TRANSFORM | ( | s, | |
w, | |||
i, | |||
k | |||
) |
#define SHA2_MAX_BLOCK_SIZE SHA512_BLOCK_SIZE |
#define SHA2_MAX_DIGEST_SIZE SHA512_DIGEST_SIZE |
#define SHA512_CSIGMA0 | ( | x | ) |
#define SHA512_CSIGMA1 | ( | x | ) |
#define SHA512_MSG_SCHED | ( | w, | |
j | |||
) |
#define SHA512_SSIGMA0 | ( | x | ) |
#define SHA512_SSIGMA1 | ( | x | ) |
#define SHA512_TRANSFORM | ( | s, | |
w, | |||
i, | |||
k | |||
) |
enum clib_sha2_type_t |
static_always_inline void clib_hmac_sha2 | ( | clib_sha2_type_t | type, |
const u8 * | key, | ||
uword | key_len, | ||
const u8 * | msg, | ||
uword | len, | ||
u8 * | digest | ||
) |
static_always_inline void clib_sha2 | ( | clib_sha2_type_t | type, |
const u8 * | msg, | ||
uword | len, | ||
u8 * | digest | ||
) |
void clib_sha256_block | ( | clib_sha2_ctx_t * | ctx, |
const u8 * | msg, | ||
uword | n_blocks | ||
) |
static_always_inline void clib_sha2_final | ( | clib_sha2_ctx_t * | ctx, |
u8 * | digest | ||
) |
static_always_inline void clib_sha2_init | ( | clib_sha2_ctx_t * | ctx, |
clib_sha2_type_t | type | ||
) |
static_always_inline void clib_sha2_update | ( | clib_sha2_ctx_t * | ctx, |
const u8 * | msg, | ||
uword | n_bytes | ||
) |
static_always_inline void clib_sha512_block | ( | clib_sha2_ctx_t * | ctx, |
const u8 * | msg, | ||
uword | n_blocks | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |