summaryrefslogtreecommitdiff
path: root/libs/libaxolotl/src/curve25519/ed25519/additions/sc_clamp.c
blob: 7788be907197c37c3fe23cf5feb341fb0b38aa48 (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;
}