summaryrefslogtreecommitdiff
path: root/libs/libaxolotl/src/curve25519/ed25519/additions/sc_clamp.c
blob: 3294983906ee30970ac3cc233cf16121a0603e4f (plain)
1
2
3
4
5
6
7
8
#include "crypto_additions.h"

void sc_clamp(unsigned char* a)
{
  a[0] &= 248;
  a[31] &= 127;
  a[31] |= 64;
}