diff --git a/ChangeLog b/ChangeLog index d7bdbd8f50c000cce082e295f78ebe577a4cc544..695a50e3e5bad4a1e32d647ee511300a7a7fcc3e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2014-03-15 Niels Möller <nisse@lysator.liu.se> + * salsa20.h (SALSA20_NONCE_SIZE): Renamed constant, old name + SALSA20_IV_SIZE kept as an alias. + (salsa20_set_nonce): Update prototype for the 2014-01-20 rename. + * Makefile.in (.asm.s): Add dependencies. (.s.o, .s.po): Empty any dependency .d file. diff --git a/salsa20.h b/salsa20.h index 444b5b4357d36bd166aff347432c981618e0be98..3539974146a93687c7cb641602116b83ea9cc42e 100644 --- a/salsa20.h +++ b/salsa20.h @@ -50,7 +50,8 @@ extern "C" { #define SALSA20_128_KEY_SIZE 16 #define SALSA20_256_KEY_SIZE 32 #define SALSA20_BLOCK_SIZE 64 -#define SALSA20_IV_SIZE 8 +#define SALSA20_NONCE_SIZE 8 +#define SALSA20_IV_SIZE SALSA20_NONCE_SIZE /* Aliases */ #define SALSA20_MIN_KEY_SIZE 16 @@ -83,8 +84,8 @@ salsa20_set_key(struct salsa20_ctx *ctx, size_t length, const uint8_t *key); void -salsa20_set_iv(struct salsa20_ctx *ctx, const uint8_t *iv); - +salsa20_set_nonce(struct salsa20_ctx *ctx, const uint8_t *iv); + void salsa20_crypt(struct salsa20_ctx *ctx, size_t length, uint8_t *dst,