Browse Source

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
kris/onging/CECPQ3_patch15
Adam Langley 10 years ago
parent
commit
a3d21e2101
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      crypto/cipher/e_aes.c

+ 1
- 1
crypto/cipher/e_aes.c View File

@@ -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--) {


Loading…
Cancel
Save