File: sc_clamp.c

package info (click to toggle)
python-axolotl-curve25519 0.4.1.post2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 664 kB
  • sloc: ansic: 5,207; python: 34; makefile: 4
file content (8 lines) | stat: -rw-r--r-- 113 bytes parent folder | download | duplicates (11)
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;
}