|
iPXE
|
Hybrid MD5+SHA1 hash as used by TLSv1.1 and earlier. More...
Go to the source code of this file.
Data Structures | |
| struct | md5_sha1_context |
| An MD5+SHA1 context. More... | |
| struct | md5_sha1_digest |
| An MD5+SHA1 digest. More... | |
| union | md5_sha1_block |
| An MD5+SHA1 data block. More... | |
| struct | md5_sha1_hmac_keys |
| An MD5+SHA1 HMAC key block. More... | |
Macros | |
| #define | MD5_SHA1_CTX_SIZE sizeof ( struct md5_sha1_context ) |
| MD5+SHA1 context size. | |
| #define | MD5_SHA1_DIGEST_SIZE sizeof ( struct md5_sha1_digest ) |
| MD5+SHA1 digest size. | |
| #define | MD5_SHA1_BLOCK_SIZE sizeof ( union md5_sha1_block ) |
| MD5+SHA1 block size. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static int | is_md5_sha1 (struct digest_algorithm *digest) |
| Check if a digest algorithm is MD5+SHA1. | |
Variables | |
| char | md5_sha1_sentinel [1] |
| Sentinel used to avoid explicit symbol references. | |
| struct digest_algorithm | md5_sha1_algorithm |
| Hybrid MD5+SHA1 digest algorithm. | |
Hybrid MD5+SHA1 hash as used by TLSv1.1 and earlier.
Definition in file md5_sha1.h.
| #define MD5_SHA1_CTX_SIZE sizeof ( struct md5_sha1_context ) |
MD5+SHA1 context size.
Definition at line 27 of file md5_sha1.h.
| #define MD5_SHA1_DIGEST_SIZE sizeof ( struct md5_sha1_digest ) |
MD5+SHA1 digest size.
Definition at line 38 of file md5_sha1.h.
| #define MD5_SHA1_BLOCK_SIZE sizeof ( union md5_sha1_block ) |
MD5+SHA1 block size.
Definition at line 49 of file md5_sha1.h.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
inlinestatic |
Check if a digest algorithm is MD5+SHA1.
| digest | Digest algorithm |
| is_md5_sha1 | Digest algorithm is MD5+SHA1 |
Definition at line 74 of file md5_sha1.h.
References md5_sha1_sentinel, and digest_algorithm::priv.
Referenced by rsa_pkcs1_encode().
|
extern |
Sentinel used to avoid explicit symbol references.
Definition at line 38 of file md5_sha1.c.
Referenced by is_md5_sha1().
|
extern |
Hybrid MD5+SHA1 digest algorithm.
Definition at line 87 of file md5_sha1.c.
Referenced by dummy_md5_sha1(), tls_select_cipher(), tls_send_certificate_verify(), tls_verify_signature(), tlskey_md5_sha1_apply(), tlskey_md5_sha1_expand(), tlskey_md5_sha1_save(), and tlskey_md5_sha1_secretsize().