Skip to content

Commit

Permalink
crypto: ecdh - Add ECDH software support
Browse files Browse the repository at this point in the history
* Implement ECDH under kpp API
 * Provide ECC software support for curve P-192 and
   P-256.
 * Add kpp test for ECDH with data generated by OpenSSL

Signed-off-by: Salvatore Benedetto <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Salvatore Benedetto authored and herbertx committed Jun 23, 2016
1 parent 802c7f1 commit 3c4b239
Show file tree
Hide file tree
Showing 11 changed files with 1,538 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ config CRYPTO_DH
help
Generic implementation of the Diffie-Hellman algorithm.

config CRYPTO_ECDH
tristate "ECDH algorithm"
select CRYTPO_KPP
help
Generic implementation of the ECDH algorithm

config CRYPTO_MANAGER
tristate "Cryptographic algorithm manager"
Expand Down
4 changes: 4 additions & 0 deletions crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ obj-$(CONFIG_CRYPTO_KPP2) += kpp.o
dh_generic-y := dh.o
dh_generic-y += dh_helper.o
obj-$(CONFIG_CRYPTO_DH) += dh_generic.o
ecdh_generic-y := ecc.o
ecdh_generic-y += ecdh.o
ecdh_generic-y += ecdh_helper.o
obj-$(CONFIG_CRYPTO_ECDH) += ecdh_generic.o

$(obj)/rsapubkey-asn1.o: $(obj)/rsapubkey-asn1.c $(obj)/rsapubkey-asn1.h
$(obj)/rsaprivkey-asn1.o: $(obj)/rsaprivkey-asn1.c $(obj)/rsaprivkey-asn1.h
Expand Down
Loading

0 comments on commit 3c4b239

Please sign in to comment.