diff options
| author | Ingo Molnar <[email protected]> | 2018-06-26 09:02:41 +0200 | 
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-06-26 09:02:41 +0200 | 
| commit | f446474889c06883a3879faa0896e2359e812a6b (patch) | |
| tree | 95634685d56dd532d1e9b73fbd07ca389296911b /crypto/morus640.c | |
| parent | 01bdee64f9cf8e15f998bf52789ed9d0ebdfa621 (diff) | |
| parent | 6f0d349d922ba44e4348a17a78ea51b7135965b1 (diff) | |
Merge branch 'linus' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'crypto/morus640.c')
| -rw-r--r-- | crypto/morus640.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/crypto/morus640.c b/crypto/morus640.c index 9fbcde307daf..5eede3749e64 100644 --- a/crypto/morus640.c +++ b/crypto/morus640.c @@ -274,8 +274,9 @@ static void crypto_morus640_decrypt_chunk(struct morus640_state *state, u8 *dst,  		union morus640_block_in tail;  		memcpy(tail.bytes, src, size); +		memset(tail.bytes + size, 0, MORUS640_BLOCK_SIZE - size); -		crypto_morus640_load_a(&m, src); +		crypto_morus640_load_a(&m, tail.bytes);  		crypto_morus640_core(state, &m);  		crypto_morus640_store_a(tail.bytes, &m);  		memset(tail.bytes + size, 0, MORUS640_BLOCK_SIZE - size); |