SAE44_2023/inc/crypt_utils.h

12 lines
284 B
C
Raw Normal View History

2024-04-06 14:13:39 +02:00
#ifndef CRYPT_UTILS_H
#define CRYPT_UTILS_H
#include "../lib/big.h"
#include "key_utils.h"
void big_pow_mod(big_n a, big_n b, big_n n, big_n result);
void encrypt(public_key pub_key, big_n input, big_n output);
void decrypt(private_key priv_key, big_n input, big_n output);
#endif