Define public exponent in header

This commit is contained in:
Imbus 2025-02-14 06:10:06 +01:00
parent e1ece2358f
commit 7d20e7f009

3
rsa.h
View file

@ -3,6 +3,9 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
// Common public exponent, in Fermat prime form
#define PUBEXP ((1 << 16) | 0x1)
/** /**
* @brief Calculates greatest common divider of two integers using the euclidean * @brief Calculates greatest common divider of two integers using the euclidean
* algorithm * algorithm