diff options
| author | martin <martin@NetBSD.org> | 2021-04-30 13:49:55 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2021-04-30 13:49:55 +0000 |
| commit | adc9aabd4bf3d3374edf00785f189e8c211ea7b3 (patch) | |
| tree | 1586a386e04b4d4067dece3069f3a3fefcb3f429 /share | |
| parent | 4cd716a27863769eeac3f47a07f04b38817ebd31 (diff) | |
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)
Diffstat (limited to 'share')
| -rw-r--r-- | share/man/man4/man4.evbarm/Makefile | 4 | ||||
| -rw-r--r-- | share/man/man4/man4.evbarm/sun8icrypto.4 | 109 |
2 files changed, 111 insertions, 2 deletions
diff --git a/share/man/man4/man4.evbarm/Makefile b/share/man/man4/man4.evbarm/Makefile index 48c8aa80706..6a0cab393d3 100644 --- a/share/man/man4/man4.evbarm/Makefile +++ b/share/man/man4/man4.evbarm/Makefile @@ -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 diff --git a/share/man/man4/man4.evbarm/sun8icrypto.4 b/share/man/man4/man4.evbarm/sun8icrypto.4 new file mode 100644 index 00000000000..955fdfd79cf --- /dev/null +++ b/share/man/man4/man4.evbarm/sun8icrypto.4 @@ -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. |
