shrub/pkg/urcrypt/urcrypt.h

22 lines
757 B
C
Raw Normal View History

#ifndef URCRYPT_H
#define URCRYPT_H
#include <stdint.h>
2020-07-31 00:40:47 +03:00
#include <string.h>
#include <ed25519.h>
#include <ge-additions.h>
2020-07-31 20:50:46 +03:00
int urcrypt_ed_point_add(uint8_t a[32], uint8_t b[32], uint8_t out[32]);
int urcrypt_ed_scalarmult(uint8_t a[32], uint8_t b[32], uint8_t out[32]);
2020-07-31 21:55:02 +03:00
void urcrypt_ed_scalarmult_base(uint8_t a[32], uint8_t out[32]);
int urcrypt_ed_add_scalarmult_scalarmult_base(uint8_t a[32],
uint8_t a_point[32],
uint8_t b[32],
uint8_t out[32]);
2020-07-31 00:40:47 +03:00
void urcrypt_ed_sign(uint8_t *message,
size_t length,
uint8_t seed[32],
uint8_t signature[64]);
#endif