axentro / crystal-ecdsa Goto Github PK
View Code? Open in Web Editor NEWC bindings for OpenSSL ECDSA
License: MIT License
C bindings for OpenSSL ECDSA
License: MIT License
cc -Wall -I/usr/local/opt/openssl/include -o encryption.o -c encryption.c
encryption.c:35:28: error: unknown type name 'uint8_t'
void dump_hex(char *label, uint8_t *buf, int len)
^
encryption.c:45:30: error: unknown type name 'uint8_t'
uint8_t **pubk, // out (must free)
^
encryption.c:97:39: error: unknown type name 'uint8_t'
uint8_t **epubk, // out (must free)
^
encryption.c:99:39: error: unknown type name 'uint8_t'
uint8_t **skey, // out (must free)
^
encryption.c:132:42: error: unknown type name 'uint8_t'
const uint8_t *pubk,
^
encryption.c: In function 'ec_key_public_key_bin_to_point':
encryption.c:141:29: warning: passing argument 1 of 'BN_bin2bn' from incompatible pointer type [-Wincompatible-pointer-types]
pubk_bn = BN_bin2bn(pubk, pubk_len, NULL);
^
In file included from encryption.c:10:0:
/usr/include/openssl/bn.h:442:9: note: expected 'const unsigned char *' but argument is of type 'const int *'
BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret);```
running make in the encryption folder doesn't work on *nix - only on mac
Failed cd encryption && make:
clang -Wall -I/usr/local/opt/openssl/include -o encryption.o -c encryption.c
make: clang: Command not found
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 127
hi there, have you ever considered porting https://github.com/insanum/ecies to native crystal?
I already wrote https://github.com/q9f/secp256k1.cr in crystal and now looking for an ECIES library to implement RLPx. Curious if you think this is feasible?
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.