# std.crypto: handle the top bit in 25519.field.fromBytes64\(\) \(\#9435\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 680fa880d63daa6058a084f1c107162e40e18aa8

Requested commit: 680fa880d63daa6058a084f1c107162e40e18aa8

Commit: 680fa880d63daa6058a084f1c107162e40e18aa8

Tree: b5f8ceee481384db3ed12e97ecf19bb49179c058

Author: Frank Denis

Committer: GitHub

## Message

```
std.crypto: handle the top bit in 25519.field.fromBytes64() (#9435)

The only known use case for this is the hash-to-curve operation where the top bit is always cleared.

But the function is public, so let's make it work as one would expect in the general case.

Also fix the comment by the way.
```

## Parents

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

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