]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/algorithm.h
ipsec-146.2.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / algorithm.h
index e4fc1fe126332b425fce502b134ce4c7b6a2261a..3d1d51b027af72b5d5b165f77f9bb50c102ffedd 100644 (file)
 #define _ALGORITHM_H
 
 #include <gnuc.h>
+#include "Algorithm_types.h"
 
-/* algorithm class */
-enum {
-       algclass_ipsec_enc,
-       algclass_ipsec_auth,
-       algclass_ipsec_comp,
-       algclass_isakmp_enc,
-       algclass_isakmp_hash,
-       algclass_isakmp_dh,
-       algclass_isakmp_ameth,  /* authentication method. */
-#define MAXALGCLASS    7
-};
-
-#define ALG_DEFAULT_KEYLEN     64
-
-#define ALGTYPE_NOTHING                0
-
-/* algorithm type */
-enum algtype {
-       algtype_nothing = 0,
-
-       /* enc */
-       algtype_des_iv64,
-       algtype_des,
-       algtype_3des,
-       algtype_rc5,
-       algtype_idea,
-       algtype_cast128,
-       algtype_blowfish,
-       algtype_3idea,
-       algtype_des_iv32,
-       algtype_rc4,
-       algtype_null_enc,
-       algtype_aes,
-       algtype_twofish,
-
-       /* ipsec auth */
-       algtype_hmac_md5,
-       algtype_hmac_sha1,
-       algtype_des_mac,
-       algtype_kpdk,
-       algtype_non_auth,
-       algtype_hmac_sha2_256,
-       algtype_hmac_sha2_384,
-       algtype_hmac_sha2_512,
-
-       /* ipcomp */
-       algtype_oui,
-       algtype_deflate,
-       algtype_lzs,
-
-       /* hash */
-       algtype_md5,
-       algtype_sha1,
-       algtype_tiger,
-       algtype_sha2_256,
-       algtype_sha2_384,
-       algtype_sha2_512,
-
-       /* dh_group */
-       algtype_modp768,
-       algtype_modp1024,
-       algtype_ec2n155,
-       algtype_ec2n185,
-       algtype_modp1536,
-       algtype_modp2048,
-       algtype_modp3072,
-       algtype_modp4096,
-       algtype_modp6144,
-       algtype_modp8192,
-
-       /* authentication method. */
-       algtype_psk,
-       algtype_dsssig,
-       algtype_rsasig,
-       algtype_rsaenc,
-       algtype_rsarev,
-       algtype_gssapikrb,
-#ifdef ENABLE_HYBRID
-       algtype_hybrid_rsa_s,
-       algtype_hybrid_dss_s,
-       algtype_hybrid_rsa_c,
-       algtype_hybrid_dss_c,
-#endif
-};
 
 struct hmac_algorithm {
        char *name;