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

@ -93,6 +93,9 @@ STATUS read_rsa_keys(void) {
fclose(file);
res = rsa_keypair_from_sexp(pub, priv, 0, size, buffer);
if (!res) {
DEBUG(0, "Error reading the RSA keypair from the SEXP file");
}
conf->public_key = pub;
conf->private_key = priv;