enhanced header encryption to full 128 bit iv (#589)

This commit is contained in:
Logan oos Even
2021-01-17 18:37:17 +05:45
committed by GitHub
parent 773123f7a9
commit e4e6efacf0
10 changed files with 126 additions and 159 deletions
+3 -7
View File
@@ -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