ecdh.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /***************************************************************************
  2. Copyright (C) Mindtree Consulting Ltd.
  3. This module is a confidential and proprietary property of Mindtree and
  4. a possession or use of this module requires written permission of Mindtree.
  5. ***************************************************************************/
  6. /**
  7. * \file ecdh.h
  8. * Contains the Interface definition of ECDH functions required by
  9. * the Cryptographic modules.
  10. *
  11. * \date 2008-03-07
  12. */
  13. #ifndef _ECDH_H_
  14. #define _ECDH_H_
  15. /* ========================= Include File Section ========================= */
  16. #include "btypes.h"
  17. #ifdef ENABLE_LE_ECDH
  18. #include "mpal.h"
  19. /* ============================= API Section ============================== */
  20. u8 verify_point_on_curve( DIGIT_S* X, DIGIT_S* Y);
  21. #ifdef ECDH_TIME_SLICE
  22. u8 mixed_scalar_multiply(u8* S, u8* X, u8* Y);
  23. u8 conv_coord(DIGIT_S* S, OUT DIGIT_S* X, OUT DIGIT_S* Y);
  24. #else
  25. void mixed_scalar_multiply(u8* S, u8* X, u8* Y);
  26. #endif
  27. #endif /* ENABLE_LE_ECDH */
  28. #endif /* _ECDH_H_ */