Hellman与CommonCrypto

Hellman与CommonCrypto

本文介绍了共享密钥基于椭圆曲线Diffie-Hellman与CommonCrypto的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找CommonCrypto中的方法来生成基于ECDH(椭圆曲线Diffie-Hellman)的共享秘密。我可以找到像这样的专有实现但是这一个不使用CommonCrypto。计算共享密钥的方法有时被称为密钥交换,并包括共享密钥的计算。有人可以发送一个链接到正确的文档或使用CommonCrypto生成基于椭圆曲线Diffie-Hellman的共享密钥的示例?

I am looking for the methods in CommonCrypto to generate the shared secret based on ECDH (Elliptic curve Diffie–Hellman). I can find proprietary implementations like this one https://github.com/surespot/surespot-ios/blob/master/surespot/encryption/EncryptionController.mm but this one is not using CommonCrypto. The method to calculate the shared secret is called sometimes Key Exchange and includes the calculation of the shared secret. Can someone send a link to the right documentation or to an example that uses CommonCrypto for generating the shared secret based on Elliptic curve Diffie–Hellman?

推荐答案

查看来自CommonECCryptor.h的CommonCrypto函数

Look at CommonCrypto function from CommonECCryptor.h

它构建一个Diffie-Hellman共享密钥与私有和公共ECC密钥。
它们提供的大多数信息都在头文件的开始行。

It constructs a Diffie-Hellman shared secret with a private and public ECC key.Most information they provide are in the header file's commence lines.Header of CCECCryptorComputeSharedSecret is here

这篇关于共享密钥基于椭圆曲线Diffie-Hellman与CommonCrypto的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 20:32