Annotation of embedaddon/strongswan/src/libstrongswan/crypto/transform.h, revision 1.1
1.1 ! misho 1: /*
! 2: * Copyright (C) 2006-2009 Martin Willi
! 3: * HSR Hochschule fuer Technik Rapperswil
! 4: *
! 5: * This program is free software; you can redistribute it and/or modify it
! 6: * under the terms of the GNU General Public License as published by the
! 7: * Free Software Foundation; either version 2 of the License, or (at your
! 8: * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
! 9: *
! 10: * This program is distributed in the hope that it will be useful, but
! 11: * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
! 12: * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
! 13: * for more details.
! 14: */
! 15:
! 16: /**
! 17: * @defgroup transforms transforms
! 18: * @{ @ingroup crypto
! 19: */
! 20:
! 21: #ifndef TRANSFORM_H_
! 22: #define TRANSFORM_H_
! 23:
! 24: typedef enum transform_type_t transform_type_t;
! 25:
! 26: #include <utils/utils.h>
! 27:
! 28: /**
! 29: * Type of a transform, as in IKEv2 RFC 3.3.2.
! 30: */
! 31: enum transform_type_t {
! 32: ENCRYPTION_ALGORITHM = 1,
! 33: PSEUDO_RANDOM_FUNCTION = 2,
! 34: INTEGRITY_ALGORITHM = 3,
! 35: DIFFIE_HELLMAN_GROUP = 4,
! 36: EXTENDED_SEQUENCE_NUMBERS = 5,
! 37: HASH_ALGORITHM = 256,
! 38: RANDOM_NUMBER_GENERATOR = 257,
! 39: AEAD_ALGORITHM = 258,
! 40: COMPRESSION_ALGORITHM = 259,
! 41: EXTENDED_OUTPUT_FUNCTION = 260,
! 42: DETERMINISTIC_RANDOM_BIT_GENERATOR = 261,
! 43: };
! 44:
! 45: /**
! 46: * enum names for transform_type_t.
! 47: */
! 48: extern enum_name_t *transform_type_names;
! 49:
! 50: /**
! 51: * Get the enum names for a specific transform type.
! 52: *
! 53: * @param type type of transform to get enum names for
! 54: * @return enum names
! 55: */
! 56: enum_name_t *transform_get_enum_names(transform_type_t type);
! 57:
! 58: /**
! 59: * Extended sequence numbers, as in IKEv2 RFC 3.3.2.
! 60: */
! 61: enum extended_sequence_numbers_t {
! 62: NO_EXT_SEQ_NUMBERS = 0,
! 63: EXT_SEQ_NUMBERS = 1
! 64: };
! 65:
! 66: /**
! 67: * enum strings for extended_sequence_numbers_t.
! 68: */
! 69: extern enum_name_t *extended_sequence_numbers_names;
! 70:
! 71: #endif /** TRANSFORM_H_ @}*/
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>