OpenVAS Libraries  4.0+rc3.SVN
nasl/nasl_crypto.h
00001 /* Nessus Attack Scripting Language 
00002  *
00003  * Copyright (C) 2002 - 2004 Tenable Network Security
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2,
00007  * as published by the Free Software Foundation
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software
00016  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  *
00018  * MODIFICATION: added definitions for implemention NTLMSSP features
00019  */
00020 #ifndef NASL_CRYPTO_H
00021 #define NASL_CRYPTO_H
00022 
00023 #define MD4_DIGEST_LENGTH 16
00024 
00025 tree_cell *nasl_md2 (lex_ctxt *);
00026 tree_cell *nasl_md4 (lex_ctxt *);
00027 tree_cell *nasl_md5 (lex_ctxt *);
00028 tree_cell *nasl_sha (lex_ctxt *);
00029 tree_cell *nasl_sha1 (lex_ctxt *);
00030 tree_cell *nasl_ripemd160 (lex_ctxt *);
00031 tree_cell *nasl_hmac_md2 (lex_ctxt *);
00032 tree_cell *nasl_hmac_md5 (lex_ctxt *);
00033 tree_cell *nasl_hmac_sha1 (lex_ctxt *);
00034 tree_cell *nasl_hmac_dss (lex_ctxt *);
00035 tree_cell *nasl_hmac_ripemd160 (lex_ctxt *);
00036 tree_cell *nasl_ntlmv1_hash (lex_ctxt *);
00037 tree_cell *nasl_nt_owf_gen (lex_ctxt *);
00038 tree_cell *nasl_lm_owf_gen (lex_ctxt *);
00039 tree_cell *nasl_ntv2_owf_gen (lex_ctxt *);
00040 tree_cell *nasl_ntlmv2_hash (lex_ctxt *);
00041 tree_cell *nasl_ntlmv2_response (lex_ctxt * lexic);
00042 tree_cell *nasl_ntlm2_response (lex_ctxt * lexic);
00043 tree_cell *nasl_ntlm_response (lex_ctxt * lexic);
00044 tree_cell *nasl_keyexchg (lex_ctxt * lexic);
00045 tree_cell *nasl_insert_hexzeros (lex_ctxt * lexic);
00046 tree_cell *nasl_get_password (lex_ctxt * lexic);
00047 tree_cell *nasl_get_sign (lex_ctxt * lexic);
00048 #endif