# std/crypto/x25519: return encoded points directly \+ ed\-\>mont map · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/e59dd7eecfe9ff3a2eb82c630d5021fbd280011d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: e59dd7eecfe9ff3a2eb82c630d5021fbd280011d

Requested commit: e59dd7eecfe9ff3a2eb82c630d5021fbd280011d

Commit: e59dd7eecfe9ff3a2eb82c630d5021fbd280011d

Tree: 543cd7f00fdb323b804d092d3462d339a70a2091

Author: Frank Denis

Committer: Andrew Kelley

## Message

```
std/crypto/x25519: return encoded points directly + ed->mont map

Leverage result location semantics for X25519 like we do everywhere
else in 25519/*

Also add the edwards25519->curve25519 map by the way since many
applications seem to use this to share the same key pair for encryption
and signature.

```

## Parents

- [ad6e095ef676ab50799a49eb40419b1ff926e6d7](https://git.cafe/gitcafe/zig/commit/ad6e095ef676ab50799a49eb40419b1ff926e6d7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/e59dd7eecfe9ff3a2eb82c630d5021fbd280011d?format=markdown)
