mirror of
https://github.com/ntop/n2n.git
synced 2024-04-21 16:31:34 +00:00
enhanced header encryption to full 128 bit iv (#589)
This commit is contained in:
+3
-7
@@ -111,17 +111,13 @@ int speck_deinit (speck_context_t *ctx);
|
||||
// ----------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// cipher SPECK -- 96 bit block size -- 96 bit key size -- ECB mode
|
||||
// cipher SPECK -- 128 bit block size -- 128 bit key size -- ECB mode
|
||||
// follows endianess rules as used in official implementation guide and NOT as in original 2013 cipher presentation
|
||||
// used for IV in header encryption
|
||||
// used for IV in header encryption (one block); encrytion via speck_ctr with null_block as data
|
||||
// for now: just plain C -- probably no need for AVX, SSE, NEON
|
||||
|
||||
|
||||
int speck_96_encrypt (unsigned char *inout, speck_context_t *ctx);
|
||||
|
||||
int speck_96_decrypt (unsigned char *inout, speck_context_t *ctx);
|
||||
|
||||
int speck_96_expand_key (speck_context_t *ctx, const unsigned char *k);
|
||||
int speck_128_decrypt (unsigned char *inout, speck_context_t *ctx);
|
||||
|
||||
|
||||
#endif // SPECK_H
|
||||
|
||||
Reference in New Issue
Block a user