Erlang integration (basic) done. Docs updated

This commit is contained in:
John Newby
2019-08-02 15:55:46 +02:00
parent 155bcfbe11
commit 5ca237202e
13 changed files with 290 additions and 82 deletions
+7
View File
@@ -0,0 +1,7 @@
#if !defined __AE__BASE64_H
#define __AE__BASE64_H
char *bin2hex(unsigned char*, int);
unsigned char *hex2bin(const char*);
#endif
+5 -1
View File
@@ -1,2 +1,6 @@
#if !defined __AE_ECRECOVER_H
#define __AE_ECRECOVER_H
void ecrecover(const unsigned char *input, unsigned char *output);
int ecrecover(const unsigned char *input, unsigned char *output);
#endif
+20
View File
@@ -0,0 +1,20 @@
#if !defined __AE__ERL_COMM_H
#define __AE__ERL_COMM_H
#ifdef DEBUG
#include <stdio.h>
#define DEBUG_PRINTF printf
#else
#define DEBUG_PRINTF
#endif
typedef unsigned char byte;
#define ECRECOVER_BUFFER_MAX 1024
int read_cmd(byte *buf);
int write_cmd(byte *buf, int len);
int read_exact(byte *buf, int len);
int write_exact(byte *buf, int len);
#endif