Implement Vebon SecIP encryption types RSA+AES. Needs RSA key with 257 exponent for alphatronics.

Note that the endianness is completely retarded. RSA public key transfer is little endian. Messages are big endian.
This commit is contained in:
Wilco Baan Hofman 2012-10-07 13:36:43 +02:00
parent 3fb1474113
commit fec14af688
5 changed files with 230 additions and 48 deletions

View file

@ -84,7 +84,7 @@ def configure(conf):
conf.check_cc(lib='gmp', uselib_store='nettle')
# Purposefully at the bottom because waf configuration tests fail with -Wstrict-prototypes and -Werror
conf.env.CFLAGS = ['-O2', '-g', '-ggdb', '-std=c99', '-Wall', '-Wshadow', '-Wpointer-arith', '-Wcast-align', '-Wwrite-strings', '-Wdeclaration-after-statement',
conf.env.CFLAGS = ['-O0', '-g', '-ggdb', '-std=c99', '-Wall', '-Wshadow', '-Wpointer-arith', '-Wcast-align', '-Wwrite-strings', '-Wdeclaration-after-statement',
'-Werror-implicit-function-declaration', '-Wstrict-prototypes', '-Werror']
def build(bld):