diff options
| author | andvar <andvar@NetBSD.org> | 2021-08-14 20:43:05 +0000 |
|---|---|---|
| committer | andvar <andvar@NetBSD.org> | 2021-08-14 20:43:05 +0000 |
| commit | 8e6f0b5be70e50ee08acc84810aa9c60c91d2276 (patch) | |
| tree | 2ffff529f9e8a50f9a5460e85156e0e5d8edba0a /sys/opencrypto | |
| parent | bc2926d3a87174cce38dd44a3fb55628f6ccb377 (diff) | |
fix typo in CRK_ALGORITHM_MIN definition to match CRK_ALGORITHM_MAX one.
while here fix few typos in comments.
Diffstat (limited to 'sys/opencrypto')
| -rw-r--r-- | sys/opencrypto/crypto.c | 6 | ||||
| -rw-r--r-- | sys/opencrypto/cryptodev.h | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c index 70a395632db..186e74692ac 100644 --- a/sys/opencrypto/crypto.c +++ b/sys/opencrypto/crypto.c @@ -1,4 +1,4 @@ -/* $NetBSD: crypto.c,v 1.115 2021/08/09 19:57:58 andvar Exp $ */ +/* $NetBSD: crypto.c,v 1.116 2021/08/14 20:43:05 andvar Exp $ */ /* $FreeBSD: src/sys/opencrypto/crypto.c,v 1.4.2.5 2003/02/26 00:14:05 sam Exp $ */ /* $OpenBSD: crypto.c,v 1.41 2002/07/17 23:52:38 art Exp $ */ @@ -53,7 +53,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.115 2021/08/09 19:57:58 andvar Exp $"); +__KERNEL_RCSID(0, "$NetBSD: crypto.c,v 1.116 2021/08/14 20:43:05 andvar Exp $"); #include <sys/param.h> #include <sys/reboot.h> @@ -1047,7 +1047,7 @@ crypto_kregister(u_int32_t driverid, int kalg, u_int32_t flags, cap = crypto_checkdriver_lock(driverid); if (cap != NULL && - (CRK_ALGORITM_MIN <= kalg && kalg <= CRK_ALGORITHM_MAX)) { + (CRK_ALGORITHM_MIN <= kalg && kalg <= CRK_ALGORITHM_MAX)) { /* * XXX Do some performance testing to determine placing. * XXX We probably need an auxiliary data structure that diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h index 238b2bfcde4..f2cc2187fc3 100644 --- a/sys/opencrypto/cryptodev.h +++ b/sys/opencrypto/cryptodev.h @@ -1,4 +1,4 @@ -/* $NetBSD: cryptodev.h,v 1.41 2021/08/09 19:57:58 andvar Exp $ */ +/* $NetBSD: cryptodev.h,v 1.42 2021/08/14 20:43:05 andvar Exp $ */ /* $FreeBSD: src/sys/opencrypto/cryptodev.h,v 1.2.2.6 2003/07/02 17:04:50 sam Exp $ */ /* $OpenBSD: cryptodev.h,v 1.33 2002/07/17 23:52:39 art Exp $ */ @@ -325,7 +325,7 @@ struct cryptret { /* Asymmetric key operations */ -#define CRK_ALGORITM_MIN 0 +#define CRK_ALGORITHM_MIN 0 #define CRK_MOD_EXP 0 #define CRK_MOD_EXP_CRT 1 #define CRK_DSA_SIGN 2 @@ -402,7 +402,7 @@ struct cryptostats { * accumulate statistics about how long it takes to process * crypto requests at various points during processing. */ - struct cryptotstat cs_invoke; /* crypto_dipsatch -> crypto_invoke */ + struct cryptotstat cs_invoke; /* crypto_dispatch -> crypto_invoke */ struct cryptotstat cs_done; /* crypto_invoke -> crypto_done */ struct cryptotstat cs_cb; /* crypto_done -> callback */ struct cryptotstat cs_finis; /* callback -> callback return */ @@ -636,8 +636,8 @@ extern int crypto_devallowsoft; /* only use hardware crypto */ /* * initialize the crypto framework subsystem (not the pseudo-device). * This must be called very early in boot, so the framework is ready - * to handle registration requests when crpto hardware is autoconfigured. - * (This declaration doesnt really belong here but there's no header + * to handle registration requests when crypto hardware is autoconfigured. + * (This declaration doesn't really belong here but there's no header * for the raw framework.) */ int crypto_init(void); |
