Bluetooth: Add ECC library for LE Secure Connections
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 29 Apr 2014 10:07:45 +0000 (13:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 3 Dec 2014 15:51:16 +0000 (16:51 +0100)
commit05ddb47a91fa591ed25ad877783a58ae44cc8212
treeea6ccc47758180e7b23444ecc5b9977e17edb56b
parent407cecf6c71e13da04f6b591bdbec76ab9a251c2
Bluetooth: Add ECC library for LE Secure Connections

This patch adds a simple ECC library that will act as a fundamental
building block for LE Secure Connections. The library has a simple API
consisting of two functions: one for generating a public/private key
pair and another one for generating a Diffie-Hellman key from a local
private key and a remote public key.

The code has been taken from https://github.com/kmackay/easy-ecc and
modified to conform with the kernel coding style.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/Makefile
net/bluetooth/ecc.c [new file with mode: 0644]
net/bluetooth/ecc.h [new file with mode: 0644]