mirror of
https://github.com/FiloSottile/age.git
synced 2026-01-09 21:27:20 +00:00
internal/age: fix typo in an ed25519PublicKeyToCurve25519 comment (#13)
This commit is contained in:
committed by
Filippo Valsorda
parent
a99e57c53c
commit
fe362d8f0a
@@ -186,7 +186,7 @@ var curve25519P, _ = new(big.Int).SetString("57896044618658097711785492504343953
|
||||
|
||||
func ed25519PublicKeyToCurve25519(pk ed25519.PublicKey) []byte {
|
||||
// ed25519.PublicKey is a little endian representation of the y-coordinate,
|
||||
// with the most significant bit set based on the sign of the x-ccordinate.
|
||||
// with the most significant bit set based on the sign of the x-coordinate.
|
||||
bigEndianY := make([]byte, ed25519.PublicKeySize)
|
||||
for i, b := range pk {
|
||||
bigEndianY[ed25519.PublicKeySize-i-1] = b
|
||||
|
||||
Reference in New Issue
Block a user