crypto (4)
Leading comments
$NetBSD: crypto.4,v 1.24 2014/01/27 21:23:59 pgoyette Exp $ Copyright (c) 2008 The NetBSD Foundation, Inc. Copyright (c) 2014 The FreeBSD Foundation All rights reserved. Portions of this documentation were written by John-Mark Gurney under sponsorship of the FreeBSD Foundation and Rubicon Communications, LLC (Netgate). This code is derived from software contributed to The NetBSD Foundation by Coyote Point Systems, Inc. Redistribution and use in source and binary forms, with or w...
NAME
crypto cryptodev - hardware crypto access driverSYNOPSIS
device crypto device cryptodevDESCRIPTION
The ifconfig driver provides a device-independent framework to support cryptographic operations in the kernel. The cryptodev driver provides userland applications access to this support through the /dev/crypto device. This node primarily operates in an ioctl(2) based model, permitting a variety of applications to query device capabilities, submit transactions, and get results.If count given in the specification, and is greater than 0, a maximum of one ifconfig device is created.
The following ioctl(2) calls apply only to the ifconfig devices:
- CIOCGSESSION
- Setup a new crypto session for a new type of operation.
- CIOCFSESSION
- Free a previously established session.
- CIOCCRYPT
- Perform a crypto operation against a previously setup session.
FEATURES
Depending on hardware being present, the following symmetric and asymmetric cryptographic features are potentially available from /dev/crypto
- CRYPTO_DES_CBC
- CRYPTO_3DES_CBC
- CRYPTO_BLF_CBC
- CRYPTO_CAMELLIA_CBC
- CRYPTO_CAST_CBC
- CRYPTO_SKIPJACK_CBC
- CRYPTO_MD5_HMAC
- CRYPTO_SHA1_HMAC
- CRYPTO_RIPEMD160_HMAC
- CRYPTO_MD5_KPDK
- CRYPTO_SHA1_KPDK
- CRYPTO_AES_CBC
- CRYPTO_ARC4
- CRYPTO_MD5
- CRYPTO_SHA1
- CRK_MOD_EXP
- CRK_MOD_EXP_CRT
- CRK_DSA_SIGN
- CRK_DSA_VERIFY
- CRK_DH_COMPUTE_KEY
FILES
- /dev/crypto
- crypto access device