2001-11-06 18:43:36 +00:00
|
|
|
|
/*
|
|
|
|
|
* function_table.c: Table of PKCS#11 functions
|
2001-10-30 16:16:18 +00:00
|
|
|
|
*
|
2001-11-06 18:43:36 +00:00
|
|
|
|
* Copyright (C) 2001 Timo Ter<EFBFBD>s <timo.teras@iki.fi>
|
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
2001-10-30 16:16:18 +00:00
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2001-11-06 18:43:36 +00:00
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
2001-10-30 16:16:18 +00:00
|
|
|
|
*
|
2001-11-06 18:43:36 +00:00
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2001-10-30 16:16:18 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2001-10-19 19:52:00 +00:00
|
|
|
|
#include "sc-pkcs11.h"
|
|
|
|
|
|
|
|
|
|
CK_FUNCTION_LIST function_list = {
|
2001-10-20 23:51:58 +00:00
|
|
|
|
{ 2, 11 },
|
2001-10-19 19:52:00 +00:00
|
|
|
|
// generic.c
|
|
|
|
|
C_Initialize,
|
|
|
|
|
C_Finalize,
|
|
|
|
|
C_GetInfo,
|
|
|
|
|
C_GetFunctionList,
|
|
|
|
|
C_GetSlotList,
|
|
|
|
|
C_GetSlotInfo,
|
|
|
|
|
C_GetTokenInfo,
|
|
|
|
|
C_GetMechanismList,
|
|
|
|
|
C_GetMechanismInfo,
|
|
|
|
|
C_InitToken,
|
|
|
|
|
C_InitPIN,
|
|
|
|
|
C_SetPIN,
|
|
|
|
|
// session.c
|
|
|
|
|
C_OpenSession,
|
|
|
|
|
C_CloseSession,
|
|
|
|
|
C_CloseAllSessions,
|
|
|
|
|
C_GetSessionInfo,
|
|
|
|
|
C_GetOperationState,
|
|
|
|
|
C_SetOperationState,
|
|
|
|
|
C_Login,
|
|
|
|
|
C_Logout,
|
|
|
|
|
// object.c
|
|
|
|
|
C_CreateObject,
|
|
|
|
|
C_CopyObject,
|
|
|
|
|
C_DestroyObject,
|
|
|
|
|
C_GetObjectSize,
|
|
|
|
|
C_GetAttributeValue,
|
|
|
|
|
C_SetAttributeValue,
|
|
|
|
|
C_FindObjectsInit,
|
|
|
|
|
C_FindObjects,
|
|
|
|
|
C_FindObjectsFinal,
|
|
|
|
|
// endecypt.c
|
|
|
|
|
C_EncryptInit,
|
|
|
|
|
C_Encrypt,
|
|
|
|
|
C_EncryptUpdate,
|
|
|
|
|
C_EncryptFinal,
|
|
|
|
|
C_DecryptInit,
|
|
|
|
|
C_Decrypt,
|
|
|
|
|
C_DecryptUpdate,
|
|
|
|
|
C_DecryptFinal,
|
|
|
|
|
// digestsign.c
|
|
|
|
|
C_DigestInit,
|
|
|
|
|
C_Digest,
|
|
|
|
|
C_DigestUpdate,
|
|
|
|
|
C_DigestKey,
|
|
|
|
|
C_DigestFinal,
|
|
|
|
|
C_SignInit,
|
|
|
|
|
C_Sign,
|
|
|
|
|
C_SignUpdate,
|
|
|
|
|
C_SignFinal,
|
|
|
|
|
C_SignRecoverInit,
|
|
|
|
|
C_SignRecover,
|
|
|
|
|
// verify.c
|
|
|
|
|
C_VerifyInit,
|
|
|
|
|
C_Verify,
|
|
|
|
|
C_VerifyUpdate,
|
|
|
|
|
C_VerifyFinal,
|
|
|
|
|
C_VerifyRecoverInit,
|
|
|
|
|
C_VerifyRecover,
|
|
|
|
|
// misc.c
|
|
|
|
|
C_DigestEncryptUpdate,
|
|
|
|
|
C_DecryptDigestUpdate,
|
|
|
|
|
C_SignEncryptUpdate,
|
|
|
|
|
C_DecryptVerifyUpdate,
|
|
|
|
|
C_GenerateKey,
|
|
|
|
|
C_GenerateKeyPair,
|
|
|
|
|
C_WrapKey,
|
|
|
|
|
C_UnwrapKey,
|
|
|
|
|
C_DeriveKey,
|
|
|
|
|
C_SeedRandom,
|
|
|
|
|
C_GenerateRandom,
|
|
|
|
|
C_GetFunctionStatus,
|
|
|
|
|
C_CancelFunction
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|