Kitura / BlueECC

Elliptic-curve cryptography for Swift
Apache License 2.0
92 stars 35 forks source link

feat: Add ability to generate keys within BlueECC #8

Closed Andrew-Lees11 closed 5 years ago

Andrew-Lees11 commented 5 years ago

This pull request adds new API to generate ECPrivate keys for 256, 384 and 512 curves. It also adds the ability to decode ECPrivate keys to PEM format.

Examples of The new API's:

let p256PrivateKey = try ECPrivateKey(for: .prime256v1)
let privatePem = p256PrivateKey.decodeToPEM()