the packets sent over the wire. */
#include <stdio.h>
+#include <string.h>
#include "secnet.h"
#include "util.h"
#include "serpent.h"
struct transform_inst *ti=sst;
if (keylen<REQUIRED_KEYLEN) {
- Message(M_ERROR,"transform_create: insufficient key material supplied "
+ Message(M_ERR,"transform_create: insufficient key material supplied "
"(need %d bytes, got %d)\n",REQUIRED_KEYLEN,keylen);
return False;
}
ciphertext[2]!=0x83C31E69 ||
ciphertext[1]!=0xec52bd82 ||
ciphertext[0]!=0x27a46120) {
- fatal("transform_module: serpent failed self-test (encrypt)\n");
+ fatal("transform_module: serpent failed self-test (encrypt)");
}
serpent_decrypt(&k,ciphertext,plaintext);
if (plaintext[0]!=0 ||
plaintext[1]!=1 ||
plaintext[2]!=2 ||
plaintext[3]!=3) {
- fatal("transform_module: serpent failed self-test (decrypt)\n");
+ fatal("transform_module: serpent failed self-test (decrypt)");
}
add_closure(dict,"serpent256-cbc",transform_apply);