OpenVAS Scanner  6.0.0~git
nasl_crypto.h
Go to the documentation of this file.
1 /* Based on work Copyright (C) 2002 - 2004 Tenable Network Security
2  *
3  * SPDX-License-Identifier: GPL-2.0-only
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17  */
18 
19 /*
20  * MODIFICATION: added definitions for implementing NTLMSSP features
21  */
22 
23 #ifndef NASL_CRYPTO_H
24 #define NASL_CRYPTO_H
25 
26 #include "nasl_lex_ctxt.h"
27 
28 #define MD4_DIGEST_LENGTH 16
29 
30 tree_cell *
31 nasl_md2 (lex_ctxt *);
32 
33 tree_cell *
34 nasl_md4 (lex_ctxt *);
35 
36 tree_cell *
37 nasl_md5 (lex_ctxt *);
38 
39 tree_cell *
40 nasl_sha (lex_ctxt *);
41 
42 tree_cell *
44 
45 tree_cell *
47 
48 tree_cell *
50 
51 tree_cell *
53 
54 tree_cell *
56 
57 tree_cell *
59 
60 tree_cell *
62 
63 tree_cell *
65 
66 tree_cell *
68 
69 tree_cell *
71 
72 tree_cell *
74 
75 tree_cell *
77 
78 tree_cell *
80 
81 tree_cell *
83 
84 tree_cell *
86 
87 tree_cell *
89 
90 tree_cell *
92 
93 tree_cell *
95 
96 tree_cell *
98 
99 tree_cell *
101 
102 tree_cell *
104 
105 tree_cell *
107 
108 tree_cell *
109 nasl_keyexchg (lex_ctxt *lexic);
110 
111 tree_cell *
113 
114 tree_cell *
115 nasl_get_password (lex_ctxt *lexic);
116 
117 tree_cell *
118 nasl_get_sign (lex_ctxt *lexic);
119 
120 tree_cell *
122 
123 tree_cell *
124 nasl_hmac_sha256 (lex_ctxt *lexic);
125 
126 tree_cell *
128 
129 #endif
tree_cell * nasl_ntlm_response(lex_ctxt *lexic)
Definition: nasl_crypto.c:695
tree_cell * nasl_sha1(lex_ctxt *)
Definition: nasl_crypto.c:140
tree_cell * nasl_md4(lex_ctxt *)
Definition: nasl_crypto.c:128
tree_cell * nasl_nt_owf_gen(lex_ctxt *)
Definition: nasl_crypto.c:798
tree_cell * nasl_prf_sha384(lex_ctxt *)
Definition: nasl_crypto.c:558
tree_cell * nasl_insert_hexzeros(lex_ctxt *lexic)
Definition: nasl_crypto.c:847
tree_cell * nasl_ntv2_owf_gen(lex_ctxt *)
Definition: nasl_crypto.c:889
tree_cell * nasl_tls1_prf(lex_ctxt *)
Definition: nasl_crypto.c:564
tree_cell * nasl_hmac_md5(lex_ctxt *)
Definition: nasl_crypto.c:223
tree_cell * nasl_get_sign(lex_ctxt *lexic)
Definition: nasl_crypto.c:248
tree_cell * nasl_md2(lex_ctxt *)
Definition: nasl_crypto.c:122
tree_cell * nasl_ntlm2_response(lex_ctxt *lexic)
Definition: nasl_crypto.c:659
tree_cell * nasl_cipher_des(lex_ctxt *)
Definition: nasl_crypto.c:191
tree_cell * nasl_hmac_dss(lex_ctxt *)
tree_cell * nasl_hmac_sha512(lex_ctxt *)
Definition: nasl_crypto.c:570
tree_cell * nasl_hmac_sha384(lex_ctxt *)
Definition: nasl_crypto.c:235
tree_cell * nasl_hmac_md2(lex_ctxt *)
Definition: nasl_crypto.c:217
tree_cell * nasl_get_password(lex_ctxt *lexic)
Definition: nasl_tree.h:104
tree_cell * nasl_ntlmv1_hash(lex_ctxt *)
Definition: nasl_crypto.c:765
Definition: nasl_lex_ctxt.h:33
tree_cell * nasl_ntlmv2_hash(lex_ctxt *)
Definition: nasl_crypto.c:977
tree_cell * nasl_ripemd160(lex_ctxt *)
Definition: nasl_crypto.c:152
tree_cell * nasl_prf_sha256(lex_ctxt *)
Definition: nasl_crypto.c:552
tree_cell * nasl_ntlmv2_response(lex_ctxt *lexic)
Definition: nasl_crypto.c:614
tree_cell * nasl_get_smb2_sign(lex_ctxt *lexic)
Definition: nasl_crypto.c:576
tree_cell * nasl_hmac_sha1(lex_ctxt *)
Definition: nasl_crypto.c:229
tree_cell * nasl_hmac_sha256(lex_ctxt *)
Definition: nasl_crypto.c:352
tree_cell * nasl_keyexchg(lex_ctxt *lexic)
Definition: nasl_crypto.c:734
tree_cell * nasl_sha(lex_ctxt *)
tree_cell * nasl_lm_owf_gen(lex_ctxt *)
Definition: nasl_crypto.c:817
tree_cell * nasl_sha256(lex_ctxt *)
Definition: nasl_crypto.c:146
tree_cell * nasl_hmac_ripemd160(lex_ctxt *)
Definition: nasl_crypto.c:241
tree_cell * nasl_md5(lex_ctxt *)
Definition: nasl_crypto.c:134