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

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -