qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PULL 04/20] crypto: Redundant type conversion for AES_KEY pointer


From: Chenqun (kuhn)
Subject: RE: [PULL 04/20] crypto: Redundant type conversion for AES_KEY pointer
Date: Tue, 5 May 2020 07:20:52 +0000

>-----Original Message-----
>From: Daniel P. Berrangé [mailto:address@hidden]
>Sent: Monday, May 4, 2020 8:58 PM
>To: Chenqun (kuhn) <address@hidden>
>Cc: address@hidden; Michael Tokarev <address@hidden>; qemu-
>address@hidden; Laurent Vivier <address@hidden>; Euler Robot
><address@hidden>
>Subject: Re: [PULL 04/20] crypto: Redundant type conversion for AES_KEY
>pointer
>
>Hi Chen,
>
>This patch triggered a build failure in QEMU about discarding the "const"
>qualifier.
>
>IOW, the type conversion is not redundant after all - it is required in order 
>to
>explicitly discard "const".
>
Yes, you are right!  Thank you for pointing it out !
It is my carelessness, this patch is not complete. 

>I believe we can probably fix this by changing
>qcrypto_cipher_aes_ecb_(en|de)crypt() methods so that they also have a "const"
>qualifier on the AES_KEY parameter.
>
It's a good point.  I will update the patch later.

Thanks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]