n2rng_kcf.c revision 741c280d5486676df48cd5d5e8ed8d92eac714a8
3853N/A * The contents of this file are subject to the terms of the 3853N/A * Common Development and Distribution License (the "License"). 3853N/A * You may not use this file except in compliance with the License. 3853N/A * See the License for the specific language governing permissions 3853N/A * and limitations under the License. 3853N/A * When distributing Covered Code, include this CDDL HEADER in each 3853N/A * If applicable, add the following below this CDDL HEADER, with the 3853N/A * fields enclosed by brackets "[]" replaced with your own identifying 3853N/A * information: Portions Copyright [yyyy] [name of copyright owner] 3853N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 3853N/A * Use is subject to license terms. 3853N/A#
pragma ident "%Z%%M% %I% %E% SMI" 3853N/A 0,
/* number of mechanisms */ 3853N/A 0,
/* pi_logical_provider_count */ 3853N/A /* handle info common to logical and hardware provider */ 3853N/A /* Time. No need to be supplied for token without a clock */ 3853N/A /* handle hardware provider specific fields */ 3853N/A /* Unregister provider without checking result */ 3853N/A * Register with KCF if not already registered 3853N/A "crypto_register_provider() failed (%d)",
ret);
3853N/A * Unregister with KCF if not already registered 4859N/A * Set state to failed for all rngs if in control domain and dispatch a task 3853N/A /* Check if error has already been detected */ 3853N/A /* Set each rng to failed if running in control domain */ 3853N/A /* Dispatch task to unregister from kcf */ 3853N/A * Set state to unconfigured for all rngs if in control domain and dispatch a 3853N/A * task to unregister from kcf. 3853N/A /* Check if unconfigured state has already been detected */ 3853N/A /* Set each rng to unconfigured if running in control domain */ 3853N/A /* Dispatch task to unregister from kcf */ 3853N/A /* Schedule a configuration retry */ 3853N/A * Setup and also register to kCF 3853N/A /* Initialize data structures if not already done */ 3853N/A /* initialize the FIPS data and mutexes */ 3853N/A * Register with crypto framework if not already registered. 3853N/A * Be careful not to exceed 32 characters. 3853N/A * Unregister from kCF and cleanup 3853N/A /* Un-initialize data structures if they exist */ 3853N/A * This needs to be done at the beginning of detach. 3853N/A * At this time there are no periodic health checks. If the health 3853N/A * check done at attrach time fails, the driver does not even attach. 3853N/A * So there are no failure conditions to report, and this provider is /* finalize all the FIPS structures allocated so far */