Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEdLowOrder ¶
IsLowOrder checks if the passed group element is of low order. Algorithm translated from the same source as the blacklist (see above).
func PrivateKeyToCurve25519 ¶
func PrivateKeyToCurve25519(privateKey ed25519.PrivateKey) []byte
PrivateKeyToCurve25519 converts an ed25519 private key into a corresponding curve25519 private key such that the resulting curve25519 public key will equal the result from PublicKeyToCurve25519.
returns a 64-byte curve25519 scalar
func PublicKeyToCurve25519 ¶
PublicKeyToCurve25519 converts an Ed25519 public key into the curve25519 public key that would be generated from the same private key.
returns a 32-byte curve25519 point and true if valid. returns nil, false if not valid some ed25519 public keys cannot / should not be converted to curve25519.
Types ¶
This section is empty.