Skip to content
/ tinydtls Public

A fork of tinyDTLS that adds support for the curve Wei25519

License

Notifications You must be signed in to change notification settings

ncme/tinydtls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1f0c88f · Sep 12, 2018

History

64 Commits
Apr 18, 2017
Feb 2, 2016
Sep 12, 2018
Apr 5, 2017
Apr 18, 2017
Apr 18, 2017
Aug 2, 2018
Feb 2, 2016
Feb 28, 2017
Feb 2, 2016
Apr 18, 2017
Feb 27, 2017
Sep 12, 2018
Feb 2, 2016
Mar 1, 2017
Feb 2, 2016
Apr 18, 2017
Mar 1, 2017
Feb 28, 2017
Dec 14, 2017
Feb 27, 2017
Mar 1, 2017
Mar 1, 2017
Feb 27, 2017
Feb 2, 2016
Dec 5, 2016
Nov 30, 2017
Nov 30, 2017
Feb 28, 2017
Mar 1, 2017
Feb 2, 2016
Mar 1, 2017
Feb 27, 2017
Feb 2, 2016
Feb 27, 2017
Feb 2, 2016
Feb 2, 2016
Feb 27, 2017
Dec 8, 2017
Dec 8, 2017

Repository files navigation

tinyDTLS (generic short Weierstrass ECC fork)

Tinydtls is a library for Datagram Transport Layer Security (DTLS) covering both the client and the server state machine. It is implemented in C and provides support for the mandatory cipher suites specified in CoAP.

This version of the library modifies the ECC functions to support generic short Weierstrass curves and adds the curve Wei25519 that is birationally equivalent to Curve25519 and Ed25519.

USAGE

Use the new API function int ecc_ec_init(const ec_curve_t curve) to switch between curves. Supported curves are SECP256R1 (default), WEI25519 and WEI25519_2. For a reference on how to use the curve model transformations from convert.h see testconvert.c.

To test the conversions against another library, build and link the C25519 with testconvert.c and set the build variable WITH_C25519.

BUILDING

When using the code from the git repository at sourceforge, invoke

$ autoconf
$ autoheader
$ ./configure

to re-create the configure script.

On Contiki, place the tinydtls library into the apps folder. After configuration, invoke make to build the library and associated test programs. To add tinydtls as Contiki application, drop it into the apps directory and add the following line to your Makefile:

APPS += tinydtls/aes tinydtls/sha2 tinydtls/ecc tinydtls

About

A fork of tinyDTLS that adds support for the curve Wei25519

Resources

License

Stars

Watchers

Forks

Packages

No packages published