common.h revision 4d703b5c9cb1bc29ace6c53cb50b2fe766e6370f
1N/A * The contents of this file are subject to the terms of the 1N/A * Common Development and Distribution License (the "License"). 1N/A * You may not use this file except in compliance with the License. 1N/A * See the License for the specific language governing permissions 1N/A * and limitations under the License. 1N/A * When distributing Covered Code, include this CDDL HEADER in each 1N/A * If applicable, add the following below this CDDL HEADER, with the 1N/A * fields enclosed by brackets "[]" replaced with your own identifying 1N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1N/A * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 1N/A * Use is subject to license terms. 1N/A * Header file for the common data structures of the cryptographic framework 1N/A/* Cryptographic Mechanisms */ 1N/A#
endif /* _SYSCALL32 */ 1N/A/* CK_AES_CTR_PARAMS provides parameters to the CKM_AES_CTR mechanism */ /* CK_AES_CCM_PARAMS provides parameters to the CKM_AES_CCM mechanism */ /* CK_AES_GCM_PARAMS provides parameters to the CKM_AES_GCM mechanism */ * CK_ECDH1_DERIVE_PARAMS provides the parameters to the * CKM_ECDH1_KEY_DERIVE mechanism /* needed for 32-bit applications running on 64-bit kernels */ /* needed for 32-bit applications running on 64-bit kernels */ /* needed for 32-bit applications running on 64-bit kernels */ * The measurement unit bit flag for a mechanism's minimum or maximum key size. * The unit are mechanism dependant. It can be in bits or in bytes. * The following bit flags are valid in cm_mech_flags field in * the crypto_mech_info_t structure of the SPI. * Only the first two bit flags are valid in mi_keysize_unit * field in the crypto_mechanism_info_t structure of the API. /* Mechanisms supported out-of-the-box */ /* Shared operation context format for CKM_RC4 */ /* Data arguments of cryptographic operations */ /* uio scatter-gather format */ /* mblk scatter-gather format */ }
cdu;
/* Crypto Data Union *//* The keys, and their contents */ /* Attribute types to use for passing a RSA public key or a private key. */ /* for CRYPTO_KEY_RAW ck_format */ /* for CRYPTO_KEY_REFERENCE ck_format */ /* for CRYPTO_KEY_ATTR_LIST ck_format */ /* for CRYPTO_KEY_RAW ck_format */ /* for CRYPTO_KEY_REFERENCE ck_format */ /* for CRYPTO_KEY_ATTR_LIST ck_format */ * Raw key lengths are expressed in number of bits. * The following macro returns the minimum number of * bytes that can contain the specified number of bits. /* User type for authentication ioctls and SPI entry points */ /* Version for provider management ioctls and SPI entry points */ /* session data structure opaque to the consumer */ /* provider data structure opaque to the consumer */ /* Limits used by both consumers and providers */ * Common cryptographic status and error codes. * Special values that can be used to indicate that information is unavailable * or that there is not practical limit. These values can be used * by fields of the SPI crypto_provider_ext_info(9S) structure. * The value of CRYPTO_UNAVAILABLE_INFO should be the same as * CK_UNAVAILABLE_INFO in the PKCS#11 spec. #
endif /* _SYS_CRYPTO_COMMON_H */