/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <pthread.h>
#include <errno.h>
#include <stdio.h>
#include <strings.h>
#include <security/cryptoki.h>
#include "softSession.h"
#include "softObject.h"
#include "softOps.h"
#include "softMAC.h"
#include "kernelSoftCommon.h"
/*
* Do the operation(s) specified by opflag.
*/
int opflag)
{
session_p = *((soft_session_t **)s);
return (CKR_ARGUMENTS_BAD);
}
/*
* Initialize the lock for the newly created session.
* We do only the minimum needed setup for the
* soft_digest* routines to succeed.
*/
return (CKR_CANT_LOCK);
}
*s = session_p;
}
return (rv);
}
} else {
return (rv);
}
}
}
return (rv);
}
/*
* opflag specifies whether this is a sign or verify.
*/
{
session_p = *((soft_session_t **)s);
/* See comments in do_soft_digest() above */
return (CKR_CANT_LOCK);
}
*s = session_p;
}
/* Do the minimum needed setup for the call to succeed */
return (rv);
}
/*
* opflag specifies whether this is a sign or verify.
*/
{
session_p = *((soft_session_t **)s);
return (CKR_ARGUMENTS_BAD);
}
return (soft_hmac_sign_verify_update(session_p,
}
/*
* opflag specifies whether this is a final or single.
*/
{
session_p = *((soft_session_t **)s);
return (CKR_ARGUMENTS_BAD);
}
}
return (rv);
}
/*
* opflag specifies whether this is a final or single.
*/
{
session_p = *((soft_session_t **)s);
return (CKR_ARGUMENTS_BAD);
}
if (len != ulSignatureLen) {
}
}
}
return (rv);
}
/*
* Helper routine to handle the case when the ctx is abandoned.
*/
void
{
session_p = (soft_session_t *)s;
return;
return;
return;
} else {
return;
}
}