supercop

Basic CLI for supercop
git clone git://git.finwo.net/app/supercop
Log | Files | Refs | README | LICENSE

common.h (454B)


      1 #ifndef __SUPERCOP_FMT_COMMON_H__
      2 #define __SUPERCOP_FMT_COMMON_H__
      3 
      4 #include <stddef.h>
      5 
      6 #include "../keypair/keypair.h"
      7 
      8 #ifdef __cplusplus
      9 extern "C" {
     10 #endif
     11 
     12 struct Format {
     13   void *next;
     14   char *name;
     15   char            (*detect)(unsigned char *, size_t);
     16   char           *(*encode)(struct KeyPair *, size_t*);
     17   struct KeyPair *(*decode)(unsigned char *, size_t);
     18 };
     19 
     20 #ifdef __cplusplus
     21 } // extern "C"
     22 #endif
     23 
     24 #endif // __SUPERCOP_FMT_COMMON_H__