package
0.4.6
Repository: https://github.com/scryinfo/dot.git
Documentation: pkg.go.dev

# README

说明

curve25519是一条曲线 ed25519用于签名与验签
x25519用于ecdh
ed25519的private key可以转换为x25519,不能反过来

使用x25519实现加解密的过程

  1. 随机生成x25519的公私钥对A(每一次都会新生成)

  2. 使用A的私钥及B的公钥计算出key

  3. key通过HKDF混合得到wrapped key

  4. 使用AEC算法用wrpped key加密数据

  5. B使用A的公钥计算出key

  6. key通过HKDF混合得到wrapped key

  7. 使用AEC算法解密数据

参见

age ecdh25519

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author

# Variables

以下值只会在init中进行修改,所以认为是安全的.
以下值只会在init中进行修改,所以认为是安全的.
以下值只会在init中进行修改,所以认为是安全的.

# Structs

No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
Ecdh is the interface defining all functions necessary for ECDH.

# Type aliases

No description provided by the author