padding.h revision 726fad2a65f16c200a03969c29cb5c86c2d427db
/*
* CDDL HEADER START
*
* 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
* 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]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _PADDING_H
#define _PADDING_H
#ifdef __cplusplus
extern "C" {
#endif
#define MIN_PKCS1_PADLEN 11
/*
*/
#define PKCS1_ENCRYPT 0x02
#define PKCS1_DECRYPT 0x02
#define PKCS1_SIGN 0x01
#define PKCS1_VERIFY 0x01
#ifdef _KERNEL
#define CKR_DEVICE_ERROR CRYPTO_DEVICE_ERROR
#else
#include <security/cryptoki.h>
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _PADDING_H */