-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from bigbrett/v1-release-updates
Fix demos to work with new wolfHSM API
- Loading branch information
Showing
27 changed files
with
587 additions
and
807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
Build/ | ||
demo/certs/*.pem | ||
|
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# ECC Keys | ||
openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:prime256v1 -out alice-ecc256-key.pem | ||
openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:prime256v1 -out bob-ecc256-key.pem | ||
openssl ec -in alice-ecc256-key.pem -outform DER -out alice-ecc256-key.der | ||
openssl ec -in bob-ecc256-key.pem -outform DER -out bob-ecc256-key.der | ||
|
||
# RSA Key | ||
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out rsa-2048-key.pem | ||
openssl rsa -in rsa-2048-key.pem -outform DER -out rsa-2048-key.der | ||
|
||
# TODO: Curve25519 Keys | ||
# Either need to modify examples to split out public/private operations, or modify wolfHSM to be able to recove public keys on deserialization of private only. | ||
#openssl genpkey -algorithm X25519 -out alice-curve25519-key.pem | ||
#openssl genpkey -algorithm X25519 -out bob-curve25519-key.pem | ||
#openssl pkey -in alice-curve25519-key.pem -outform DER -out alice-curve25519-key.der | ||
#openssl pkey -in bob-curve25519-key.pem -outform DER -out bob-curve25519-key.der |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.