xref: /titanic_41/usr/src/cmd/cmd-inet/etc/ipsecalgs (revision dc25fd745d311a1cf9d98d7b7897caa0877adff0)
1#
2#
3# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
4# Use is subject to license terms.
5#
6# CDDL HEADER START
7#
8# The contents of this file are subject to the terms of the
9# Common Development and Distribution License (the "License").
10# You may not use this file except in compliance with the License.
11#
12# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13# or http://www.opensolaris.org/os/licensing.
14# See the License for the specific language governing permissions
15# and limitations under the License.
16#
17# When distributing Covered Code, include this CDDL HEADER in each
18# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19# If applicable, add the following below this CDDL HEADER, with the
20# fields enclosed by brackets "[]" replaced with your own identifying
21# information: Portions Copyright [yyyy] [name of copyright owner]
22#
23# CDDL HEADER END
24#
25# DO NOT EDIT OR PARSE THIS FILE!
26#
27# Use the ipsecalgs(1m) command to change the contents of this file.
28# The algorithm descriptions contained in this file are synchronised to the
29# kernel with ipsecalgs -s, the kernel validates the entries at this point.
30
31# PROTO|protocol-id|protocol-name|exec-mode
32##  NOTE:  Some protocol numbers are well-known and defined in <netdb.h>
33
34PROTO|2|PROTO_IPSEC_AH|sync
35PROTO|3|PROTO_IPSEC_ESP|sync
36
37# ALG|protocol-id|alg-id|name,name,...|ef-id| \
38#	{default/}{key,key..}or{key-key,inc}|block_size or MAC-size|\
39#	[parameter,parameter..]|[flags]
40#
41## Note:   Parameters and flags only apply to certain algorithms.
42
43ALG|2|0|none,any|-|0|0
44ALG|2|2|hmac-md5,md5|CKM_MD5_HMAC_GENERAL|128|12
45ALG|2|3|hmac-sha1,sha,sha1,sha-1,hmac-sha,hmac-sha-1|CKM_SHA_1_HMAC_GENERAL|160|12
46ALG|2|5|hmac-sha256,sha256,sha-256,hmac-sha-256|CKM_SHA256_HMAC_GENERAL|256|16
47ALG|2|6|hmac-sha384,sha384,sha-384,hmac-sha-384|CKM_SHA384_HMAC_GENERAL|384|24
48ALG|2|7|hmac-sha512,sha512,sha-512,hmac-sha-512|CKM_SHA512_HMAC_GENERAL|512|32
49ALG|3|0|any|-|0|0
50ALG|3|2|des-cbc,des|CKM_DES_CBC|64|8
51ALG|3|3|3des-cbc,3des|CKM_DES3_CBC|192|8
52ALG|3|7|blowfish-cbc,blowfish|CKM_BLOWFISH_CBC|128|8
53ALG|3|11|null|-|0|0
54ALG|3|12|aes-cbc,aes|CKM_AES_CBC|128/128-256,64|16
55ALG|3|14|aes-ccm8|CKM_AES_CCM|128/128-256,64|16|8,8,3|15
56ALG|3|15|aes-ccm12|CKM_AES_CCM|128/128-256,64|16|8,12,3|15
57ALG|3|16|aes-ccm,aes-ccm16|CKM_AES_CCM|128/128-256,64|16|8,16,3|15
58ALG|3|18|aes-gcm8|CKM_AES_GCM|128/128-256,64|16|8,8,4|23
59ALG|3|19|aes-gcm12|CKM_AES_GCM|128/128-256,64|16|8,12,4|23
60ALG|3|20|aes-gcm,aes-gcm16|CKM_AES_GCM|128/128-256,64|16|8,16,4|23
61