diff --git a/libs/srtp/config.hw b/libs/srtp/config.hw new file mode 100644 index 0000000000..32f5ed9196 --- /dev/null +++ b/libs/srtp/config.hw @@ -0,0 +1,195 @@ +/* crypto/include/config.h. Generated by configure. */ +/* config_in.h. Generated from configure.in by autoheader. */ + +/* Define if building for a CISC machine (e.g. Intel). */ +#define CPU_CISC 1 + +/* Define if building for a RISC machine (assume slow byte access). */ +/* #undef CPU_RISC */ + +/* Path to random device */ +/* #define DEV_URANDOM "/dev/urandom" */ + +/* Define to compile in dynamic debugging system. */ +#define ENABLE_DEBUGGING 1 + +/* Report errors to this file. */ +/* #undef ERR_REPORTING_FILE */ + +/* Define to use logging to stdout. */ +#define ERR_REPORTING_STDOUT 1 + +/* Define this to use ISMAcryp code. */ +/* #undef GENERIC_AESICM */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_ARPA_INET_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_BYTESWAP_H */ + +/* Define to 1 if you have the `inet_aton' function. */ +/* #undef HAVE_INET_ATON */ + +/* Define to 1 if the system has the type `int16_t'. */ +#define HAVE_INT16_T 1 + +/* Define to 1 if the system has the type `int32_t'. */ +#define HAVE_INT32_T 1 + +/* Define to 1 if the system has the type `int8_t'. */ +#define HAVE_INT8_T 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_INTTYPES_H */ + +/* Define to 1 if you have the `socket' library (-lsocket). */ +/* #undef HAVE_LIBSOCKET */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_MACHINE_TYPES_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_NETINET_IN_H */ + +/* Define to 1 if you have the `socket' function. */ +/* #undef HAVE_SOCKET */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_STDINT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYSLOG_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_INT_TYPES_H */ + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_SOCKET_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYS_UIO_H */ + +/* Define to 1 if the system has the type `uint16_t'. */ +#define HAVE_UINT16_T 1 + +/* Define to 1 if the system has the type `uint32_t'. */ +#define HAVE_UINT32_T 1 + +/* Define to 1 if the system has the type `uint64_t'. */ +#define HAVE_UINT64_T 1 + +/* Define to 1 if the system has the type `uint8_t'. */ +#define HAVE_UINT8_T 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_UNISTD_H */ + +/* Define to 1 if you have the `usleep' function. */ +/* #undef HAVE_USLEEP */ + +/* Define to 1 if you have the header file. */ +#define HAVE_WINDOWS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_WINSOCK2_H 1 + +/* Define to use X86 inlined assembly code */ +/* #undef HAVE_X86 */ + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "" + +/* The size of a `unsigned long', as computed by sizeof. */ +#define SIZEOF_UNSIGNED_LONG 4 + +/* The size of a `unsigned long long', as computed by sizeof. */ +#define SIZEOF_UNSIGNED_LONG_LONG 8 + +/* Define to use GDOI. */ +/* #undef SRTP_GDOI */ + +/* Define to compile for kernel contexts. */ +/* #undef SRTP_KERNEL */ + +/* Define to compile for Linux kernel context. */ +/* #undef SRTP_KERNEL_LINUX */ + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Write errors to this file */ +/* #undef USE_ERR_REPORTING_FILE */ + +/* Define to use syslog logging. */ +/* #undef USE_SYSLOG */ + +/* Define to 1 if your processor stores words with the most significant byte + first (like Motorola and SPARC, unlike Intel and VAX). */ +/* #undef WORDS_BIGENDIAN */ + +/* Define to empty if `const' does not conform to ANSI C. */ +/* #undef const */ + +/* Define to `__inline__' or `__inline' if that's what the C compiler + calls it, or to nothing if 'inline' is not supported under any name. */ +#ifndef __cplusplus +#define inline __inline +#endif + +/* Define to `unsigned' if does not define. */ +/* #undef size_t */ + +#if (_MSC_VER >= 1400) // VC8+ +#ifndef _CRT_SECURE_NO_DEPRECATE +#define _CRT_SECURE_NO_DEPRECATE +#endif +#ifndef _CRT_NONSTDC_NO_DEPRECATE +#define _CRT_NONSTDC_NO_DEPRECATE +#endif +#endif // VC8+ + +#ifndef uint32_t +typedef unsigned __int8 uint8_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int32 uint32_t; +typedef unsigned __int64 uint64_t; +typedef __int8 int8_t; +typedef __int16 int16_t; +typedef __int32 int32_t; +typedef __int64 int64_t; +#endif + +#ifdef _MSC_VER +#pragma warning(disable:4311) +#endif diff --git a/libs/srtp/srtp.def b/libs/srtp/srtp.def new file mode 100644 index 0000000000..ea6908aba6 --- /dev/null +++ b/libs/srtp/srtp.def @@ -0,0 +1,91 @@ +EXPORTS +srtp_init +srtp_protect +srtp_unprotect +srtp_create +srtp_add_stream +srtp_remove_stream +crypto_policy_set_rtp_default +crypto_policy_set_rtcp_default +crypto_policy_set_aes_cm_128_hmac_sha1_32 +crypto_policy_set_aes_cm_128_null_auth +crypto_policy_set_null_cipher_hmac_sha1_80 +srtp_dealloc +srtp_get_stream +srtp_protect_rtcp +srtp_unprotect_rtcp +srtp_install_event_handler +crypto_kernel_init +crypto_kernel_shutdown +crypto_kernel_status +crypto_kernel_list_debug_modules +crypto_kernel_load_cipher_type +crypto_kernel_load_auth_type +crypto_kernel_load_debug_module +crypto_kernel_alloc_cipher +crypto_kernel_alloc_auth +crypto_kernel_set_debug_module +crypto_get_random +rand_source_init +rand_source_get_octet_string +rand_source_deinit +x917_prng_init +x917_prng_get_octet_string +ctr_prng_init +ctr_prng_get_octet_string +cipher_output +cipher_get_key_length +cipher_type_self_test +cipher_bits_per_second +auth_get_key_length +auth_get_tag_length +auth_get_prefix_length +auth_type_self_test +auth_type_get_ref_count +stat_test_monobit +stat_test_poker +stat_test_runs +stat_test_rand_source +stat_test_rand_source_with_repetition +err_reporting_init +err_report +key_limit_set +key_limit_clone +key_limit_check +key_limit_update +rdbx_init +rdbx_estimate_index +rdbx_check +rdbx_add_index +index_init +index_advance +index_guess +octet_get_weight +octet_string_hex_string +v128_bit_string +v128_hex_string +nibble_to_hex_char +hex_string_to_octet_string +v128_copy_octet_string +v128_left_shift +v128_right_shift +octet_string_is_eq +octet_string_set_to_zero +rdb_init +rdb_check +rdb_add_index +rdb_increment +rdb_get_value +aes_expand_encryption_key +aes_expand_decryption_key +aes_encrypt +aes_decrypt +aes_icm_context_init +aes_icm_set_iv +aes_icm_encrypt +aes_icm_output +aes_icm_dealloc +aes_icm_encrypt_ismacryp +aes_icm_alloc_ismacryp +crypto_alloc +crypto_free diff --git a/libs/srtp/srtp.vcproj b/libs/srtp/srtp.vcproj new file mode 100644 index 0000000000..548addabe7 --- /dev/null +++ b/libs/srtp/srtp.vcproj @@ -0,0 +1,588 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +