|
OpenVAS Scanner 23.40.3
|
#include "../misc//support.h"#include "nasl_crypto_helper.h"#include "nasl_debug.h"#include <assert.h>#include <ctype.h>#include <gcrypt.h>#include <glib.h>#include <gpg-error.h>#include <gvm/base/logging.h>#include <stddef.h>#include <stdlib.h>
Go to the source code of this file.
Functions | |
| void * | hmac_md5_for_prf (const void *key, int keylen, const void *buf, int buflen) |
| void * | hmac_sha1 (const void *key, int keylen, const void *buf, int buflen) |
| void * | hmac_sha256 (const void *key, int keylen, const void *buf, int buflen) |
| void * | hmac_sha384 (const void *key, int keylen, const void *buf, int buflen) |
| gpg_err_code_t | mac (const char *key, const size_t key_len, const char *data, const size_t data_len, const char *iv, const size_t iv_len, int algo, int flags, char **out, size_t *out_len) |
| static gcry_error_t | smb_sign (const int algo, const char *key, const size_t key_len, char *buf, const size_t buf_len, const char *iv, const size_t iv_len, char **out) |
| tree_cell * | nasl_smb_sign (const int algo, lex_ctxt *lexic) |
| void * hmac_md5_for_prf | ( | const void * | key, |
| int | keylen, | ||
| const void * | buf, | ||
| int | buflen ) |
Definition at line 20 of file nasl_crypt_helper.c.
Referenced by tls_prf().

| void * hmac_sha1 | ( | const void * | key, |
| int | keylen, | ||
| const void * | buf, | ||
| int | buflen ) |
Definition at line 34 of file nasl_crypt_helper.c.
Referenced by tls_prf().

| void * hmac_sha256 | ( | const void * | key, |
| int | keylen, | ||
| const void * | buf, | ||
| int | buflen ) |
Definition at line 48 of file nasl_crypt_helper.c.
Referenced by nasl_hmac_sha256(), smb_sign(), and tls_prf().

| void * hmac_sha384 | ( | const void * | key, |
| int | keylen, | ||
| const void * | buf, | ||
| int | buflen ) |
Definition at line 62 of file nasl_crypt_helper.c.
Referenced by tls_prf().

| gpg_err_code_t mac | ( | const char * | key, |
| const size_t | key_len, | ||
| const char * | data, | ||
| const size_t | data_len, | ||
| const char * | iv, | ||
| const size_t | iv_len, | ||
| int | algo, | ||
| int | flags, | ||
| char ** | out, | ||
| size_t * | out_len ) |
Definition at line 97 of file nasl_crypt_helper.c.
Referenced by get_local_mac_address_from_ip(), nasl_get_local_mac_address_from_ip(), nasl_mac(), nasl_send_arp_request(), smb_sign(), and socket_get_ssl_ciphersuite().

Definition at line 179 of file nasl_crypt_helper.c.
References alloc_typed_cell(), CONST_DATA, get_str_var_by_name(), get_var_size_by_name(), nasl_perror(), TC::size, smb_sign(), TC::str_val, and TC::x.
Referenced by nasl_get_smb2_sign(), nasl_smb_cmac_aes_sign(), and nasl_smb_gmac_aes_sign().


|
static |
Definition at line 136 of file nasl_crypt_helper.c.
References free(), hmac_sha256(), and mac().
Referenced by nasl_smb_sign().

