Module Name: src
Committed By: martin
Date: Fri Apr 30 13:49:55 UTC 2021
Modified Files:
src/distrib/sets/lists/man [netbsd-9]: mi
src/share/man/man4/man4.evbarm [netbsd-9]: Makefile
Added Files:
src/share/man/man4/man4.evbarm [netbsd-9]: sun8icrypto.4
Log Message:
Pull up following revision(s) (requested by nia in ticket #1260):
distrib/sets/lists/man/mi: revision 1.1718 (patch)
share/man/man4/man4.evbarm/sun8icrypto.4: revision 1.1
share/man/man4/man4.evbarm/Makefile: revision 1.12 (patch)
add a man page for sun8icrypto(4)
To generate a diff of this commit:
cvs rdiff -u -r1.1649.2.7 -r1.1649.2.8 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.9 -r1.9.2.1 src/share/man/man4/man4.evbarm/Makefile
cvs rdiff -u -r0 -r1.2.2.2 src/share/man/man4/man4.evbarm/sun8icrypto.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/sets/lists/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1649.2.7 src/distrib/sets/lists/man/mi:1.1649.2.8
--- src/distrib/sets/lists/man/mi:1.1649.2.7 Tue Jul 7 10:29:06 2020
+++ src/distrib/sets/lists/man/mi Fri Apr 30 13:49:55 2021
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1649.2.7 2020/07/07 10:29:06 martin Exp $
+# $NetBSD: mi,v 1.1649.2.8 2021/04/30 13:49:55 martin Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -1090,6 +1090,7 @@
./usr/share/man/cat4/evbarm/iopaau.0 man-sys-catman .cat
./usr/share/man/cat4/evbarm/iopwdog.0 man-sys-catman .cat
./usr/share/man/cat4/evbarm/rktsadc.0 man-sys-catman .cat
+./usr/share/man/cat4/evbarm/sun8icrypto.0 man-sys-catman .cat
./usr/share/man/cat4/evbmips/aupci.0 man-sys-catman .cat
./usr/share/man/cat4/evbmips/intro.0 man-sys-catman .cat
./usr/share/man/cat4/evbppc/cpc.0 man-sys-catman .cat
@@ -4267,6 +4268,7 @@
./usr/share/man/html4/evbarm/iopaau.html man-sys-htmlman html
./usr/share/man/html4/evbarm/iopwdog.html man-sys-htmlman html
./usr/share/man/html4/evbarm/rktsadc.html man-sys-htmlman html
+./usr/share/man/html4/evbarm/sun8icrypto.html man-sys-htmlman html
./usr/share/man/html4/evbmips/aupci.html man-sys-htmlman html
./usr/share/man/html4/evbmips/intro.html man-sys-htmlman html
./usr/share/man/html4/evbppc/cpc.html man-sys-htmlman html
@@ -7216,6 +7218,7 @@
./usr/share/man/man4/evbarm/iopaau.4 man-sys-man .man
./usr/share/man/man4/evbarm/iopwdog.4 man-sys-man .man
./usr/share/man/man4/evbarm/rktsadc.4 man-sys-man .man
+./usr/share/man/man4/evbarm/sun8icrypto.4 man-sys-man .man
./usr/share/man/man4/evbmips/aupci.4 man-sys-man .man
./usr/share/man/man4/evbmips/intro.4 man-sys-man .man
./usr/share/man/man4/evbppc/cpc.4 man-sys-man .man
Index: src/share/man/man4/man4.evbarm/Makefile
diff -u src/share/man/man4/man4.evbarm/Makefile:1.9 src/share/man/man4/man4.evbarm/Makefile:1.9.2.1
--- src/share/man/man4/man4.evbarm/Makefile:1.9 Thu Jun 6 05:32:29 2019
+++ src/share/man/man4/man4.evbarm/Makefile Fri Apr 30 13:49:55 2021
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.9 2019/06/06 05:32:29 mrg Exp $
+# $NetBSD: Makefile,v 1.9.2.1 2021/04/30 13:49:55 martin Exp $
MAN= awge.4 bcmgpio.4 cpsw.4 epgpio.4 gxio.4 intro.4 iopaau.4 iopwdog.4 \
- rktsadc.4
+ rktsadc.4 sun8icrypto.4
MANSUBDIR=/evbarm
Added files:
Index: src/share/man/man4/man4.evbarm/sun8icrypto.4
diff -u /dev/null src/share/man/man4/man4.evbarm/sun8icrypto.4:1.2.2.2
--- /dev/null Fri Apr 30 13:49:56 2021
+++ src/share/man/man4/man4.evbarm/sun8icrypto.4 Fri Apr 30 13:49:55 2021
@@ -0,0 +1,109 @@
+.\" $NetBSD: sun8icrypto.4,v 1.2.2.2 2021/04/30 13:49:55 martin Exp $
+.\"
+.\" Copyright (c) 2021 The NetBSD Foundation, Inc.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+.\" POSSIBILITY OF SUCH DAMAGE.
+.\"
+.Dd April 25, 2021
+.Dt SUN8ICRYPTO 4
+.Os
+.Sh NAME
+.Nm sun8icrypto
+.Nd driver for Allwinner Crypto Engine
+.Sh SYNOPSIS
+.Cd "sun8icrypto* at fdt?"
+.Sh DESCRIPTION
+The
+.Nm
+driver provides support for the cryptographic processors on Allwinner
+A64 and H5 systems-on-a-chip.
+The Allwinner Crypto Engine is the successor to the earlier
+Allwinner Security System.
+.Pp
+The hardware includes a True Random Number Generator (TRNG) that is
+used as an entropy source for the
+.Xr rnd 4
+system, and implementations of various cryptographic algorithms
+that can be used with
+.Xr ipsec 4
+and
+.Xr crypto 4 .
+.Pp
+The following
+.Xr opencrypto 9
+algorithms are supported:
+.Pp
+.Bl -bullet -compact -offset indent
+.It
+.Dv CRYPTO_AES_CBC
+.It
+.Dv CRYPTO_AES_CTR
+.It
+.Dv CRYPTO_AES_ECB
+.It
+.Dv CRYPTO_AES_XTS
+.It
+.Dv CRYPTO_DES_CBC
+.It
+.Dv CRYPTO_DES_ECB
+.It
+.Dv CRYPTO_3DES_CBC
+.It
+.Dv CRYPTO_3DES_ECB
+.It
+.Dv CRYPTO_MD5
+.It
+.Dv CRYPTO_SHA1
+.It
+.Dv CRYPTO_SHA224
+.It
+.Dv CRYPTO_SHA256
+.It
+.Dv CRYPTO_SHA1_HMAC
+.It
+.Dv CRYPTO_SHA2_256_HMAC
+.El
+.Sh SEE ALSO
+.Xr crypto 4 ,
+.Xr ipsec 4 ,
+.Xr rnd 4 ,
+.Xr entropy 7 ,
+.Xr opencrypto 9
+.Sh HISTORY
+The
+.Nm
+device driver first appeared in
+.Nx 9.1 .
+.Sh CAVEATS
+The
+.Nm
+TRNG's underlying source of randomness is not documented by Allwinner,
+so is not trusted as a reliable source of entropy.
+Initial tests using NIST's SP800-90B tools showed highly biased
+runs of output, suggesting any potential physical source is not
+subject to whitening.
+.Pp
+Cryptographic operations using
+.Nm
+are generally slower than using the CPU on supported devices, but provide
+an advantage in terms of hardware offloading if the CPU is busy.