git: e7d4d580302d - main - sys/crypto: Use C99 fixed-width integer types.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 28 Dec 2021 17:51:08 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e7d4d580302d0b769d232405f312f73c30d168c8

commit e7d4d580302d0b769d232405f312f73c30d168c8
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-12-28 17:41:38 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2021-12-28 17:41:38 +0000

    sys/crypto: Use C99 fixed-width integer types.
    
    No functional change.
    
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D33633
---
 sys/crypto/rijndael/rijndael-api-fst.h | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/sys/crypto/rijndael/rijndael-api-fst.h b/sys/crypto/rijndael/rijndael-api-fst.h
index e5f596ac75f8..0bbc8cb8b72b 100644
--- a/sys/crypto/rijndael/rijndael-api-fst.h
+++ b/sys/crypto/rijndael/rijndael-api-fst.h
@@ -40,34 +40,34 @@
 
 /*  The structure for key information */
 typedef struct {
-    u_int8_t  direction;            /* Key used for encrypting or decrypting? */
+    uint8_t  direction;            /* Key used for encrypting or decrypting? */
     int   keyLen;                   /* Length of the key  */
     char  keyMaterial[RIJNDAEL_MAX_KEY_SIZE+1];  /* Raw key data in ASCII, e.g., user input or KAT values */
 	int   Nr;                       /* key-length-dependent number of rounds */
-	u_int32_t   rk[4*(RIJNDAEL_MAXNR + 1)];        /* key schedule */
-	u_int32_t   ek[4*(RIJNDAEL_MAXNR + 1)];        /* CFB1 key schedule (encryption only) */
+	uint32_t   rk[4*(RIJNDAEL_MAXNR + 1)];        /* key schedule */
+	uint32_t   ek[4*(RIJNDAEL_MAXNR + 1)];        /* CFB1 key schedule (encryption only) */
 } keyInstance;
 
 /*  The structure for cipher information */
 typedef struct {                    /* changed order of the components */
-    u_int8_t mode;                  /* MODE_ECB, MODE_CBC, or MODE_CFB1 */
-    u_int8_t IV[RIJNDAEL_MAX_IV_SIZE]; /* A possible Initialization Vector for ciphering */
+    uint8_t mode;                  /* MODE_ECB, MODE_CBC, or MODE_CFB1 */
+    uint8_t IV[RIJNDAEL_MAX_IV_SIZE]; /* A possible Initialization Vector for ciphering */
 } cipherInstance;
 
 /*  Function prototypes  */
 
-int rijndael_makeKey(keyInstance *, u_int8_t, int, const char *);
+int rijndael_makeKey(keyInstance *, uint8_t, int, const char *);
 
-int rijndael_cipherInit(cipherInstance *, u_int8_t, char *);
+int rijndael_cipherInit(cipherInstance *, uint8_t, char *);
 
-int rijndael_blockEncrypt(cipherInstance *, keyInstance *, const u_int8_t *,
-	int, u_int8_t *);
-int rijndael_padEncrypt(cipherInstance *, keyInstance *, const u_int8_t *,
-	int, u_int8_t *);
+int rijndael_blockEncrypt(cipherInstance *, keyInstance *, const uint8_t *,
+	int, uint8_t *);
+int rijndael_padEncrypt(cipherInstance *, keyInstance *, const uint8_t *,
+	int, uint8_t *);
 
-int rijndael_blockDecrypt(cipherInstance *, keyInstance *, const u_int8_t *,
-	int, u_int8_t *);
-int rijndael_padDecrypt(cipherInstance *, keyInstance *, const u_int8_t *,
-	int, u_int8_t *);
+int rijndael_blockDecrypt(cipherInstance *, keyInstance *, const uint8_t *,
+	int, uint8_t *);
+int rijndael_padDecrypt(cipherInstance *, keyInstance *, const uint8_t *,
+	int, uint8_t *);
 
 #endif /*  __RIJNDAEL_API_FST_H */