Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/crypto_session.9
Show All 24 Lines | |||||
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | .\" 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 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||||
.\" POSSIBILITY OF SUCH DAMAGE. | .\" POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" * Other names and brands may be claimed as the property of others. | .\" * Other names and brands may be claimed as the property of others. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd May 25, 2020 | .Dd June 22, 2020 | ||||
.Dt CRYPTO_SESSION 9 | .Dt CRYPTO_SESSION 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm crypto_session | .Nm crypto_session | ||||
.Nd state used for symmetric cryptographic services | .Nd state used for symmetric cryptographic services | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In opencrypto/cryptodev.h | .In opencrypto/cryptodev.h | ||||
.Ft struct auth_hash * | .Ft struct auth_hash * | ||||
▲ Show 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
.Bl -tag -width CSP_F_SEPARATE_OUTPUT | .Bl -tag -width CSP_F_SEPARATE_OUTPUT | ||||
.It Dv CSP_F_SEPARATE_OUTPUT | .It Dv CSP_F_SEPARATE_OUTPUT | ||||
Support requests that use separate input and output buffers. | Support requests that use separate input and output buffers. | ||||
Sessions with this flag set permit requests with either a single buffer | Sessions with this flag set permit requests with either a single buffer | ||||
that is modified in-place, or requests with separate input and output | that is modified in-place, or requests with separate input and output | ||||
buffers. | buffers. | ||||
Sessions without this flag only permit requests with a single buffer that | Sessions without this flag only permit requests with a single buffer that | ||||
is modified in-place. | is modified in-place. | ||||
.It Dv CSP_F_SEPARATE_AAD | |||||
Support requests that use a separate buffer for AAD rather than providing | |||||
AAD as a region in the input buffer. | |||||
Sessions with this flag set permit requests with AAD passed in either in | |||||
a region of the input buffer or in a single, virtually-contiguous buffer. | |||||
Sessions without this flag only permit requests with AAD passed in as | |||||
a region in the input buffer. | |||||
.El | .El | ||||
.It Fa csp_ivlen | .It Fa csp_ivlen | ||||
If either the cipher or authentication algorithms require an explicit | If either the cipher or authentication algorithms require an explicit | ||||
initialization vector (IV) or nonce, | initialization vector (IV) or nonce, | ||||
this specifies the length in bytes. | this specifies the length in bytes. | ||||
All requests for a session use the same IV length. | All requests for a session use the same IV length. | ||||
.It Fa csp_cipher_alg | .It Fa csp_cipher_alg | ||||
Encryption or compression algorithm. | Encryption or compression algorithm. | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |