Browse Source

give a name to the public-key-type enum
... and add PK_STD to it

Steffen Jaeckel 7 years ago
parent
commit
ffd4dd9e6a
1 changed files with 8 additions and 6 deletions
  1. 8 6
      src/headers/tomcrypt_pk.h

+ 8 - 6
src/headers/tomcrypt_pk.h

@@ -9,14 +9,16 @@
 
 /* ---- NUMBER THEORY ---- */
 
-enum {
-   PK_PUBLIC=0,
-   PK_PRIVATE=1
+enum public_key_type {
+   /* Refers to the public key */
+   PK_PUBLIC      = 0x0000,
+   /* Refers to the private key */
+   PK_PRIVATE     = 0x0001,
+
+   /* Indicates standard output formats that can be read e.g. by OpenSSL or GnuTLS */
+   PK_STD         = 0x1000,
 };
 
-/* Indicates standard output formats that can be read e.g. by OpenSSL or GnuTLS */
-#define PK_STD          0x1000
-
 int rand_prime(void *N, long len, prng_state *prng, int wprng);
 
 #ifdef LTC_SOURCE