Karel Heurtefeux
2015-03-15 07:35:44 UTC
Hi all,
I'm trying to use TinyECC, a library for Elliptic Curve Cryptography
(http://discovery.csc.ncsu.edu/software/TinyECC
<http://discovery.csc.ncsu.edu/software/TinyECC/> ) on my Shimmer2R sensors
. I'm using TinyECC2.0 and the TinyOS 2.1.2.1.
I modified the NN.h file to include the Shimmer 2R platform:
#ifdef PLATFORM_SHIMMER2R
#define SIXTEEN_BIT_PROCESSOR
#define INLINE_ASM
#endif
I compiled the first example: ECDSA and the compilation goes well except 3
warnings:
NNM.nc: In function 'NNM__NN_SubDigitMult':
NNM.nc:3269:1: warning: no return statement in function returning non-void
[-Wreturn-type]
NNM.nc: In function 'NNM__NN_Sub':
NNM.nc:359:1: warning: no return statement in function returning non-void
[-Wreturn-type]
secp128r1.nc: In function 'secp128r1__CurveParam__omega_mul':
secp128r1.nc:297:1: warning: no return statement in function returning
non-void [-Wreturn-type]
NNM.nc: In function 'NNM__NN_Add':
NNM.nc:265:1: warning: no return statement in function returning non-void
[-Wreturn-type]
However, when I run serialforwarder (java net.tinyos.sf.SerialForwarder
-comm serial@/dev/ttyUSB0:shimmer) and the show_ecdsa java program, nothing
appends (except a start message).
Any idea?
Regards,
I'm trying to use TinyECC, a library for Elliptic Curve Cryptography
(http://discovery.csc.ncsu.edu/software/TinyECC
<http://discovery.csc.ncsu.edu/software/TinyECC/> ) on my Shimmer2R sensors
. I'm using TinyECC2.0 and the TinyOS 2.1.2.1.
I modified the NN.h file to include the Shimmer 2R platform:
#ifdef PLATFORM_SHIMMER2R
#define SIXTEEN_BIT_PROCESSOR
#define INLINE_ASM
#endif
I compiled the first example: ECDSA and the compilation goes well except 3
warnings:
NNM.nc: In function 'NNM__NN_SubDigitMult':
NNM.nc:3269:1: warning: no return statement in function returning non-void
[-Wreturn-type]
NNM.nc: In function 'NNM__NN_Sub':
NNM.nc:359:1: warning: no return statement in function returning non-void
[-Wreturn-type]
secp128r1.nc: In function 'secp128r1__CurveParam__omega_mul':
secp128r1.nc:297:1: warning: no return statement in function returning
non-void [-Wreturn-type]
NNM.nc: In function 'NNM__NN_Add':
NNM.nc:265:1: warning: no return statement in function returning non-void
[-Wreturn-type]
However, when I run serialforwarder (java net.tinyos.sf.SerialForwarder
-comm serial@/dev/ttyUSB0:shimmer) and the show_ecdsa java program, nothing
appends (except a start message).
Any idea?
Regards,
--
Dr. Karel Heurtefeux - PhD - www.heurtefeux.info
Research Scientist
Qatar Mobility Innovations Center - <http://www.quwic.com/> www.qmic.com
Qatar Science & Technology Park
PO Box 210531 - Doha, Qatar
Cell Phone: +974 6683 4135 | Office: +974 4459 3697 | Fax: +974 4459 2724
Skype: heurtefeux
Dr. Karel Heurtefeux - PhD - www.heurtefeux.info
Research Scientist
Qatar Mobility Innovations Center - <http://www.quwic.com/> www.qmic.com
Qatar Science & Technology Park
PO Box 210531 - Doha, Qatar
Cell Phone: +974 6683 4135 | Office: +974 4459 3697 | Fax: +974 4459 2724
Skype: heurtefeux