[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/3] crypto: avoid undefined behavior in nett
From: |
Radim Krčmář |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/3] crypto: avoid undefined behavior in nettle calls |
Date: |
Sat, 11 Jul 2015 11:52:40 +0200 |
2015-07-10 19:18+0200, Radim Krčmář:
> diff --git a/crypto/cipher-nettle.c b/crypto/cipher-nettle.c
> +void aes_encrypt_wrapper(cipher_ctx_t ctx, cipher_length_t length,
> + uint8_t *dst, const uint8_t *src)
Wrappers should be static (rushed posting). I'll send v3 on Wed/Thu.
> +{
> + aes_encrypt(ctx, length, dst, src);
> +}