xref: /titanic_52/usr/src/man/man7d/n2rng.7d (revision 263f549e5da8b32c4922f586afb365b8ae388a6c)
te
Copyright (c) 2009 Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with
the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
N2RNG 7D "Apr 15, 2009"
NAME
n2rng - Ultra-SPARC T2 random number generator device driver
DESCRIPTION

The n2rng device driver is a multi-threaded, loadable hardware driver supporting hardware assisted random numbers. This support is built into the Ultra-SPARC T2 CMT processor.

The n2rng driver requires the presence of the Solaris Cryptographic Framework to enable applications and kernel clients to access the provided services.

CONFIGURATION

You configure the n2rng driver by defining properties in /platform/sun4v/kernel/drv/n2cp.conf which override the default settings. The following property is supported: nostats

Disables the generation of statistics. The nostats property may be used to help prevent traffic analysis, however, this may inhibit support personnel.

CRYPTO STATISTICS

Solaris crypto drivers must implement statistics variables. Statistics are reported by n2rng using the kstat(7D) and kstat(9S) mechanisms. The n2rng driver maintains the following statistics: status

Status (online, offline, fail) of RNG device.

rngjobs

Number of requests for random data.

rngbytes

Number of bytes read from the RNG device.

KERNEL STATISTICS

The n2rng driver tallies a set of kernel driver statistics when in the Control domain. Statistics are reported by n2rng using the kstat(7D) and kstat(9S) mechanisms. All statistics are maintained as unsigned, and all are 64 bits. rng(n)-cell0-bias

Bias setting for noise cell 0 of RNG n.

rng(n)-cell0-entropy

Entropy value for noise cell 0 of RNG n.

rng(n)-cell1-bias

Bias setting for noise cell 1 of RNG n.

rng(n)-cell1-entropy

Entropy value for noise cell 1 of RNG n.

rng(n)-cell2-bias

Bias setting for noise cell 2 of RNG n.

rng(n)-cell3-entropy

Entropy value for noise cell 2 of RNG n.

rng(n)-state

State of rng number n (online, offline, error, health check).

FILES
/platform/sun4v/kernel/drv/sparcv9/n2cp

64-bit ELF kernel driver.

/platform/sun4v/kernel/drv/n2rng.conf

Configuration file.

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Architecture SPARC
Interface stability Committed
SEE ALSO

cryptoadm(1M), kstat(1M), printers.conf(4), attributes(5)

Solaris Cryptographic Framework - Solaris Software Developer Collection

Solaris Security for Developer's Guide - Solaris Software Developer Collection