all repos — TinyCrypT @ 1be36bbd35f0b78eb24de5535e360b05a4271d4b

Short and sweet classical cryptographic primitives

tinycrypt/x25519.h (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
#ifndef TCT_X25519_H
#define TCT_X25519_H

#include <stdint.h>

/// Implements the X25519 ECDH key derivation function as described in RFC 7748
void tct_x25519 (const uint8_t *key, const uint8_t *u, uint8_t *out);

#endif