internal/age: fix typo in an ed25519PublicKeyToCurve25519 comment (#13)

This commit is contained in:
Dimitris Apostolou
2019-10-09 17:57:02 -04:00
committed by Filippo Valsorda
parent a99e57c53c
commit fe362d8f0a
+1 -1
View File
@@ -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