ecdh

Elliptic Curve Diffie Hellman in ios/swift

寵の児 提交于 2019-11-30 15:26:20
问题 Does iOS expose API for key generation, and secret key derivation using ECDH? From what I see, apple are using it (and specifically x25519) internally but I don't see it exposed as public API by common crypto or otherwise. Thanks, Z 回答1: Done in playground with Xcode 8.3.3, generates a private/public key using EC for Alice, Bob, then calculating the shared secret for Alice using Alice's private and Bob's public, and share secret for Bob using Bob's private and Alice's public and finally