ios - Shared Secret based on Elliptic curve Diffie–Hellman with CommonCrypto -
ios - Shared Secret based on Elliptic curve Diffie–Hellman with CommonCrypto -
i looking methods in commoncrypto generate shared secret based on ecdh (elliptic curve diffie–hellman). can find proprietary implementations 1 https://github.com/surespot/surespot-ios/blob/master/surespot/encryption/encryptioncontroller.mm 1 not using commoncrypto. method calculate shared secret called key exchange , includes calculation of shared secret. can send link right documentation or illustration uses commoncrypto generating shared secret based on elliptic curve diffie–hellman?
look @ commoncrypto function commoneccryptor.h
cceccryptorcomputesharedsecret( cceccryptorref privatekey, cceccryptorref publickey, void *out, size_t *outlen)
it constructs diffie-hellman shared secret private , public ecc key. info provide in header file's commence lines. header of cceccryptorcomputesharedsecret here
ios cryptography diffie-hellman shared-secret
Comments
Post a Comment