2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * C_DigestInit will verify that the session handle is valid within 2N/A * the framework, that the mechanism is not disabled for the slot 2N/A * associated with this session, and then redirect to the underlying 2N/A * provider. Policy is only checked for C_DigestInit, since it is 2N/A * required to be called before C_Digest and C_DigestUpdate. 2N/A /* Check for a fastpath */ 2N/A /* Obtain the session pointer */ 2N/A /* Make sure this is not a disabled mechanism */ 2N/A /* Initialize the digest with the underlying provider */ 2N/A /* Present consistent interface to the application */ 2N/A * C_Digest is a pure wrapper to the underlying provider. 2N/A * The only argument checked is whether or not hSession is valid. 2N/A /* Check for a fastpath */ 2N/A /* Obtain the session pointer */ 2N/A /* Pass data to the provider */ 2N/A /* Present consistent interface to the application */ 2N/A * C_DigestUpdate is a pure wrapper to the underlying provider. 2N/A * The only argument checked is whether or not hSession is valid. 2N/A /* Check for a fastpath */ 2N/A /* Obtain the session pointer */ 2N/A /* Pass data to the provider */ 2N/A /* Present consistent interface to the application */ 2N/A * C_DigestKey is a pure wrapper to the underlying provider. 2N/A * The only argument checked is whether or not hSession is valid. 2N/A /* Check for a fastpath */ 2N/A /* Obtain the session pointer */ 2N/A /* Pass data to the provider */ 2N/A /* Present consistent interface to the application */ 2N/A * C_DigestFinal is a pure wrapper to the underlying provider. 2N/A * The only argument checked is whether or not hSession is valid. 2N/A /* Check for a fastpath */ 2N/A /* Obtain the session pointer */ 2N/A /* Pass data to the provider */ 2N/A /* Present consistent interface to the application */