# crypto/x25519: implement clearCofactor\(\) \(\#11355\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 93e11b824a37a14fc392bfc64ed8f364f4fc7d46

Requested commit: 93e11b824a37a14fc392bfc64ed8f364f4fc7d46

Commit: 93e11b824a37a14fc392bfc64ed8f364f4fc7d46

Tree: d2e956c79107ae159426bb49535978492d84a310

Author: Frank Denis

Committer: GitHub

## Message

```
crypto/x25519: implement clearCofactor() (#11355)

This is the x25519 counterpart to `edwards25519.clearCofactor()`.

It is useful to check for low-order points in protocols where it matters and where clamping cannot work, such as PAKEs.
```

## Parents

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

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