mirror of
https://github.com/ntop/n2n.git
synced 2024-09-20 00:51:10 +02:00
Compilation fixes
This commit is contained in:
parent
ca19dd379b
commit
f9f941c50b
|
@ -93,9 +93,6 @@ static int transop_encode_speck(n2n_trans_op_t * arg,
|
||||||
/* Generate and encode the IV. */
|
/* Generate and encode the IV. */
|
||||||
set_speck_iv(priv, enc_ivec);
|
set_speck_iv(priv, enc_ivec);
|
||||||
encode_buf(outbuf, &idx, &enc_ivec, N2N_SPECK_IVEC_SIZE);
|
encode_buf(outbuf, &idx, &enc_ivec, N2N_SPECK_IVEC_SIZE);
|
||||||
traceEvent(TRACE_DEBUG, "encode_speck iv=%016llx:%016llx",
|
|
||||||
htobe64(*(uint64_t*)&enc_ivec[0]),
|
|
||||||
htobe64(*(uint64_t*)&enc_ivec[8]) );
|
|
||||||
|
|
||||||
/* Encrypt the payload and write the ciphertext after the iv. */
|
/* Encrypt the payload and write the ciphertext after the iv. */
|
||||||
/* len is set to the length of the cipher plain text to be encrpyted
|
/* len is set to the length of the cipher plain text to be encrpyted
|
||||||
|
@ -149,9 +146,6 @@ static int transop_decode_speck(n2n_trans_op_t * arg,
|
||||||
|
|
||||||
/* Get the IV */
|
/* Get the IV */
|
||||||
decode_buf((uint8_t *)&dec_ivec, N2N_SPECK_IVEC_SIZE, inbuf, &rem, &idx);
|
decode_buf((uint8_t *)&dec_ivec, N2N_SPECK_IVEC_SIZE, inbuf, &rem, &idx);
|
||||||
traceEvent(TRACE_DEBUG, "decode_speck iv=%016llx:%016llx",
|
|
||||||
htobe64(*(uint64_t*)&dec_ivec[0]),
|
|
||||||
htobe64(*(uint64_t*)&dec_ivec[8]) );
|
|
||||||
|
|
||||||
speck_ctr (outbuf, inbuf + TRANSOP_SPECK_PREAMBLE_SIZE, len, dec_ivec,
|
speck_ctr (outbuf, inbuf + TRANSOP_SPECK_PREAMBLE_SIZE, len, dec_ivec,
|
||||||
#if defined (SPECK_CTX_BYVAL)
|
#if defined (SPECK_CTX_BYVAL)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user