crypto_util.h revision ff0e937b36dcde1a47ff7b00aa76a491c0dc07a8
/*
* 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
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _CRYPTO_UTIL_H
#define _CRYPTO_UTIL_H
#ifdef __cplusplus
extern "C" {
#endif
#include <limits.h>
#include <security/cryptoki.h>
#include <kmfapi.h>
#define WUSB_DEV_MAC_LENGTH 6
#define WUSB_TYPE_LEN 16
/*
* wusb_cc_info.
* Record the association information and it is
*/
typedef struct wusb_cc_info {
/* Device state definition */
#define DEV_STAT_DISCONN 0x00
#define DEV_STAT_CONNECT 0x01
/* wusbadm list structure */
typedef struct wusb_cc_list {
struct wusb_cc_list *next;
typedef struct wusb_device_info {
char type[WUSB_TYPE_LEN];
/* cc generation functions */
const char *, const char *);
void wusb_crypto_fini(KMF_HANDLE_T);
void mac_to_label(uint8_t *, char *);
#ifdef __cplusplus
}
#endif
#endif /* _CRYPTO_UTIL_H */