It's not obvious what is going on there, so add explain why we are doing
this ugly dance.
return ret < 0? -E_ENCRYPT : ret;
}
-#define RC4_ALIGN 8
struct stream_cipher {
RC4_KEY key;
};
free(sc);
}
+/**
+ * The RC4() implementation of openssl apparently reads and writes data in
+ * blocks of 8 bytes. So we have to make sure our buffer sizes are a multiple
+ * of this.
+ */
+#define RC4_ALIGN 8
+
/**
* Encrypt and send a buffer.
*