Null crypto algorithm.
More...
#include <string.h>
#include <ipxe/crypto.h>
Go to the source code of this file.
|
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) |
|
void | digest_null_init (void *ctx __unused) |
|
void | digest_null_update (void *ctx __unused, const void *src __unused, size_t len __unused) |
|
void | digest_null_final (void *ctx __unused, void *out __unused) |
|
int | cipher_null_setkey (void *ctx __unused, const void *key __unused, size_t keylen __unused) |
|
void | cipher_null_setiv (void *ctx __unused, const void *iv __unused, size_t ivlen __unused) |
|
void | cipher_null_encrypt (void *ctx __unused, const void *src, void *dst, size_t len) |
|
void | cipher_null_decrypt (void *ctx __unused, const void *src, void *dst, size_t len) |
|
void | cipher_null_auth (void *ctx __unused, void *auth __unused) |
|
size_t | pubkey_null_max_len (const struct asn1_cursor *key __unused) |
|
int | pubkey_null_encrypt (const struct asn1_cursor *key __unused, const void *plaintext __unused, size_t plaintext_len __unused, void *ciphertext __unused) |
|
int | pubkey_null_decrypt (const struct asn1_cursor *key __unused, const void *ciphertext __unused, size_t ciphertext_len __unused, void *plaintext __unused) |
|
int | pubkey_null_sign (const struct asn1_cursor *key __unused, struct digest_algorithm *digest __unused, const void *value __unused, void *signature __unused) |
|
int | pubkey_null_verify (const struct asn1_cursor *key __unused, struct digest_algorithm *digest __unused, const void *value __unused, const void *signature __unused, size_t signature_len __unused) |
|
Null crypto algorithm.
Definition in file crypto_null.c.
◆ FILE_LICENCE()
FILE_LICENCE |
( |
GPL2_OR_LATER_OR_UBDL |
| ) |
|
◆ digest_null_init()
void digest_null_init |
( |
void *ctx |
__unused | ) |
|
◆ digest_null_update()
void digest_null_update |
( |
void *ctx |
__unused, |
|
|
const void *src |
__unused, |
|
|
size_t len |
__unused |
|
) |
| |
◆ digest_null_final()
void digest_null_final |
( |
void *ctx |
__unused, |
|
|
void *out |
__unused |
|
) |
| |
◆ cipher_null_setkey()
int cipher_null_setkey |
( |
void *ctx |
__unused, |
|
|
const void *key |
__unused, |
|
|
size_t keylen |
__unused |
|
) |
| |
◆ cipher_null_setiv()
void cipher_null_setiv |
( |
void *ctx |
__unused, |
|
|
const void *iv |
__unused, |
|
|
size_t ivlen |
__unused |
|
) |
| |
◆ cipher_null_encrypt()
void cipher_null_encrypt |
( |
void *ctx |
__unused, |
|
|
const void * |
src, |
|
|
void * |
dst, |
|
|
size_t |
len |
|
) |
| |
◆ cipher_null_decrypt()
void cipher_null_decrypt |
( |
void *ctx |
__unused, |
|
|
const void * |
src, |
|
|
void * |
dst, |
|
|
size_t |
len |
|
) |
| |
◆ cipher_null_auth()
void cipher_null_auth |
( |
void *ctx |
__unused, |
|
|
void *auth |
__unused |
|
) |
| |
◆ pubkey_null_max_len()
◆ pubkey_null_encrypt()
int pubkey_null_encrypt |
( |
const struct asn1_cursor *key |
__unused, |
|
|
const void *plaintext |
__unused, |
|
|
size_t plaintext_len |
__unused, |
|
|
void *ciphertext |
__unused |
|
) |
| |
◆ pubkey_null_decrypt()
int pubkey_null_decrypt |
( |
const struct asn1_cursor *key |
__unused, |
|
|
const void *ciphertext |
__unused, |
|
|
size_t ciphertext_len |
__unused, |
|
|
void *plaintext |
__unused |
|
) |
| |
◆ pubkey_null_sign()
◆ pubkey_null_verify()
◆ digest_null
Initial value:= {
.name = "null",
.ctxsize = 0,
.blocksize = 1,
.digestsize = 0,
}
void digest_null_final(void *ctx __unused, void *out __unused)
void digest_null_init(void *ctx __unused)
void digest_null_update(void *ctx __unused, const void *src __unused, size_t len __unused)
Definition at line 48 of file crypto_null.c.
Referenced by tls_clear_handshake().
◆ cipher_null
Initial value:= {
.name = "null",
.ctxsize = 0,
.blocksize = 1,
.alignsize = 1,
.authsize = 0,
}
void cipher_null_decrypt(void *ctx __unused, const void *src, void *dst, size_t len)
void cipher_null_encrypt(void *ctx __unused, const void *src, void *dst, size_t len)
void cipher_null_setiv(void *ctx __unused, const void *iv __unused, size_t ivlen __unused)
int cipher_null_setkey(void *ctx __unused, const void *key __unused, size_t keylen __unused)
void cipher_null_auth(void *ctx __unused, void *auth __unused)
Definition at line 83 of file crypto_null.c.
Referenced by cms_message().
◆ pubkey_null
Initial value:= {
.name = "null",
}
size_t pubkey_null_max_len(const struct asn1_cursor *key __unused)
int pubkey_null_sign(const struct asn1_cursor *key __unused, struct digest_algorithm *digest __unused, const void *value __unused, void *signature __unused)
int pubkey_null_decrypt(const struct asn1_cursor *key __unused, const void *ciphertext __unused, size_t ciphertext_len __unused, void *plaintext __unused)
int pubkey_null_encrypt(const struct asn1_cursor *key __unused, const void *plaintext __unused, size_t plaintext_len __unused, void *ciphertext __unused)
int pubkey_null_verify(const struct asn1_cursor *key __unused, struct digest_algorithm *digest __unused, const void *value __unused, const void *signature __unused, size_t signature_len __unused)
Definition at line 128 of file crypto_null.c.