OpenVAS Libraries  4.0+rc3.SVN
nasl_crypto.h
1 /* Nessus Attack Scripting Language
2  *
3  * Copyright (C) 2002 - 2004 Tenable Network Security
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2,
7  * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
17  *
18  * MODIFICATION: added definitions for implemention NTLMSSP features
19  */
20 #ifndef NASL_CRYPTO_H
21 #define NASL_CRYPTO_H
22 
23 #define MD4_DIGEST_LENGTH 16
24 
25 tree_cell *nasl_md2 (lex_ctxt *);
26 tree_cell *nasl_md4 (lex_ctxt *);
27 tree_cell *nasl_md5 (lex_ctxt *);
28 tree_cell *nasl_sha (lex_ctxt *);
29 tree_cell *nasl_sha1 (lex_ctxt *);
30 tree_cell *nasl_ripemd160 (lex_ctxt *);
31 tree_cell *nasl_hmac_md2 (lex_ctxt *);
32 tree_cell *nasl_hmac_md5 (lex_ctxt *);
33 tree_cell *nasl_hmac_sha1 (lex_ctxt *);
34 tree_cell *nasl_hmac_dss (lex_ctxt *);
35 tree_cell *nasl_hmac_ripemd160 (lex_ctxt *);
36 tree_cell *nasl_ntlmv1_hash (lex_ctxt *);
37 tree_cell *nasl_nt_owf_gen (lex_ctxt *);
38 tree_cell *nasl_lm_owf_gen (lex_ctxt *);
39 tree_cell *nasl_ntv2_owf_gen (lex_ctxt *);
40 tree_cell *nasl_ntlmv2_hash (lex_ctxt *);
41 tree_cell *nasl_ntlmv2_response (lex_ctxt * lexic);
42 tree_cell *nasl_ntlm2_response (lex_ctxt * lexic);
43 tree_cell *nasl_ntlm_response (lex_ctxt * lexic);
44 tree_cell *nasl_keyexchg (lex_ctxt * lexic);
45 tree_cell *nasl_insert_hexzeros (lex_ctxt * lexic);
46 tree_cell *nasl_get_password (lex_ctxt * lexic);
47 tree_cell *nasl_get_sign (lex_ctxt * lexic);
48 #endif