2
0

bg2zrtp.h 986 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * Copyright (c) 2006-2008 Philip R. Zimmermann. All rights reserved.
  3. * Contact: http://www.philzimmermann.com
  4. * For licensing and other legal details, see the file zrtp_legal.c.
  5. *
  6. * Viktor Krikun <v.krikun@soft-industry.com> <v.krikun@gmail.com>
  7. */
  8. #ifndef __BG2ZRTP_H__
  9. #define __BG2ZRTP_H__
  10. /* Define platform byte order for Brian Gladman's AES */
  11. #include "zrtp_config.h"
  12. #define IS_BIG_ENDIAN 4321
  13. #define IS_LITTLE_ENDIAN 1234
  14. #if ZRTP_BYTE_ORDER == ZBO_LITTLE_ENDIAN
  15. #define PLATFORM_BYTE_ORDER IS_LITTLE_ENDIAN
  16. #elif ZRTP_BYTE_ORDER == ZBO_BIG_ENDIAN
  17. #define PLATFORM_BYTE_ORDER IS_BIG_ENDIAN
  18. #else
  19. #error "Can't define byte order for BG AES. Edit zrtp_system.h"
  20. #endif
  21. /* Define integers for Brian Gladman's AES */
  22. #define BRG_UI8
  23. typedef uint8_t uint_8t;
  24. #define BRG_UI16
  25. typedef uint16_t uint_16t;
  26. #define BRG_UI32
  27. //typedef uint32_t uint_32t;
  28. typedef unsigned int uint_32t;
  29. #define BRG_UI64
  30. typedef uint64_t uint_64t;
  31. #endif /*__BG2ZRTP_H__*/