mirror of
https://github.com/FiloSottile/age.git
synced 2026-03-11 08:55:41 +00:00
internal/age: fix typo in an ed25519PublicKeyToCurve25519 comment (#13)
This commit is contained in:
parent
a99e57c53c
commit
fe362d8f0a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue