OpenVAS Scanner 23.23.1
nasl_crypto_helper.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Greenbone AG
2 * SPDX-FileCopyrightText: 2002-2003 Michel Arboi
3 * SPDX-FileCopyrightText: 2002-2003 Renaud Deraison
4 *
5 * SPDX-License-Identifier: GPL-2.0-only
6 */
7
8#ifndef NASL_NASL_CRYPTO_HELPER_H
9#define NASL_NASL_CRYPTO_HELPER_H
10
11#include "nasl_lex_ctxt.h"
12
13#include <gpg-error.h>
14void *
15hmac_md5_for_prf (const void *key, int keylen, const void *buf, int buflen);
16
17void *
18hmac_sha1 (const void *key, int keylen, const void *buf, int buflen);
19
20void *
21hmac_sha256 (const void *key, int keylen, const void *buf, int buflen);
22
23void *
24hmac_sha384 (const void *key, int keylen, const void *buf, int buflen);
25
27nasl_smb_sign (const int algo, lex_ctxt *lexic);
28
29gpg_err_code_t
30mac (const char *key, const size_t key_len, const char *data,
31 const size_t data_len, const char *iv, const size_t iv_len, int algo,
32 int flags, char **out, size_t *out_len);
33#endif
void * hmac_sha1(const void *key, int keylen, const void *buf, int buflen)
Definition nasl_crypt_helper.c:34
void * hmac_md5_for_prf(const void *key, int keylen, const void *buf, int buflen)
Definition nasl_crypt_helper.c:20
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 nasl_crypt_helper.c:97
void * hmac_sha384(const void *key, int keylen, const void *buf, int buflen)
Definition nasl_crypt_helper.c:62
tree_cell * nasl_smb_sign(const int algo, lex_ctxt *lexic)
Definition nasl_crypt_helper.c:179
void * hmac_sha256(const void *key, int keylen, const void *buf, int buflen)
Definition nasl_crypt_helper.c:48
struct struct_lex_ctxt lex_ctxt
struct TC tree_cell