.NET implementation (libraries) of elliptic curve cryptography

后端 未结 5 1023
半阙折子戏
半阙折子戏 2021-02-07 08:48

Please can you suggest any implementation of elliptical curve cryptography to be used on .NET platform?

Also if you have used them, can you tell me the recommended curve

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-07 09:37

    The way you usually use ECC for encryption is by using "Ephemeral-Static Diffie-Hellman".

    It works this way:

    • Take the intended receivers public key (perhaps from a certificate). This is the static key.
    • Generate a temporary ECDH keypair. This is the ephemeral keypair.
    • Use the keys to generate a shared symmetric key.
    • Encrypt the data with the symmetric key.
    • Transmit the encrypted data together with the public key from the ephemeral keypair.

    The receiver can now use the ephemeral public key and his own static private key to recreate the symmetric key and decrypt the data.

    You can read more in Standards for Efficient Cryptography: SEC 1: Elliptic Curve Cryptography section 5.1.3.

提交回复
热议问题