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

[xen staging] crypto/rijndael: adjust for Misra C:2012 rule 8.3



commit 59264b89473ecd274717786a26bb0d36c2cf8f9b
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu May 14 19:18:05 2026 +0100
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Thu May 14 19:28:44 2026 +0100

    crypto/rijndael: adjust for Misra C:2012 rule 8.3
    
    ... ("All declarations of an object or function shall use the same names
    and type qualifiers"). Bring declarations in line with the corresponding
    definitions, accepting the use of the being-phased-out u<N> types. While
    we don't define NEED_RIJNDAEL_DECRYPT, cover rijndaelKeySetupDec() as
    well for completeness, including fixing a typo in a parameter name.
    
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>
    Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/include/crypto/rijndael.h | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/xen/include/crypto/rijndael.h b/xen/include/crypto/rijndael.h
index aa66051fd3..49bb1f3be1 100644
--- a/xen/include/crypto/rijndael.h
+++ b/xen/include/crypto/rijndael.h
@@ -50,9 +50,8 @@ int   rijndael_set_key_enc_only(rijndael_ctx *ctx, const 
unsigned char *key, int b
 void   rijndael_decrypt(rijndael_ctx *ctx, const unsigned char *src, unsigned 
char *dst);
 void   rijndael_encrypt(rijndael_ctx *ctx, const unsigned char *src, unsigned 
char *dst);
 
-int    rijndaelKeySetupEnc(unsigned int rk[], const unsigned char cipherKey[], 
int keyBits);
-int    rijndaelKeySetupDec(unsigned int rk[], const unsigned char cipkerKey[], 
int keyBits);
-void   rijndaelEncrypt(const unsigned int rk[], int Nr, const unsigned char 
pt[16],
-                       unsigned char ct[16]);
+int    rijndaelKeySetupEnc(u32 rk[], const u8 cipherKey[], int keyBits);
+int    rijndaelKeySetupDec(u32 rk[], const u8 cipherKey[], int keyBits);
+void   rijndaelEncrypt(const u32 rk[], int Nr, const u8 pt[16], u8 ct[16]);
 
 #endif /* __RIJNDAEL_H */
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.