Fix copy in AES-KW.
The AES-KW code from 93a3dcd572 would
write 8 bytes past the end of the out buffer.
https://code.google.com/p/chromium/issues/detail?id=398699
Change-Id: I6e1a2884790f69cdbefb59ed60d71459b7327b89
This commit is contained in:
@@ -1224,7 +1224,7 @@ static int aead_aes_key_wrap_open(const EVP_AEAD_CTX *ctx, uint8_t *out,
|
||||
}
|
||||
|
||||
memcpy(A, in, 8);
|
||||
memmove(out, in + 8, in_len);
|
||||
memmove(out, in + 8, in_len - 8);
|
||||
|
||||
for (j = 5; j < 6; j--) {
|
||||
for (i = n; i > 0; i--) {
|
||||
|
||||
Reference in New Issue
Block a user