Source-Changes-HG archive

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

[src/trunk]: src/sys/opencrypto fix typo in CRK_ALGORITHM_MIN definition to m...



details:   https://anonhg.NetBSD.org/src/rev/0f3e84a41680
branches:  trunk
changeset: 985233:0f3e84a41680
user:      andvar <andvar%NetBSD.org@localhost>
date:      Sat Aug 14 20:43:05 2021 +0000

description:
fix typo in CRK_ALGORITHM_MIN definition to match CRK_ALGORITHM_MAX one.
while here fix few typos in comments.

diffstat:

 sys/opencrypto/crypto.c    |   6 +++---
 sys/opencrypto/cryptodev.h |  10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r 015fca9e3ff8 -r 0f3e84a41680 sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c   Sat Aug 14 17:51:18 2021 +0000
+++ b/sys/opencrypto/crypto.c   Sat Aug 14 20:43:05 2021 +0000
@@ -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 @@
 
        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 -r 015fca9e3ff8 -r 0f3e84a41680 sys/opencrypto/cryptodev.h
--- a/sys/opencrypto/cryptodev.h        Sat Aug 14 17:51:18 2021 +0000
+++ b/sys/opencrypto/cryptodev.h        Sat Aug 14 20:43:05 2021 +0000
@@ -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 @@
 
 
 /* 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 @@
         * 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 @@
 /*
  * 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);



Home | Main Index | Thread Index | Old Index