⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verify.c

📁 linux下的专门用于处理PKCS11的c++库和源代码 非常好用
💻 C
字号:
/* * verify.c: PKCS#11 functions for signature verification * * Copyright (C) 2001  Timo Ter鋝 <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, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * 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 */#include "sc-pkcs11.h"CK_RV C_VerifyInit(CK_SESSION_HANDLE hSession,    /* the session's handle */		   CK_MECHANISM_PTR  pMechanism,  /* the verification mechanism */		   CK_OBJECT_HANDLE  hKey)        /* handle of the verification key */{        LOG("C_VerifyInit\n");        return CKR_FUNCTION_NOT_SUPPORTED;}CK_RV C_Verify(CK_SESSION_HANDLE hSession,       /* the session's handle */	       CK_BYTE_PTR       pData,          /* plaintext data (digest) to compare */	       CK_ULONG          ulDataLen,      /* length of data (digest) in bytes */	       CK_BYTE_PTR       pSignature,     /* the signature to be verified */	       CK_ULONG          ulSignatureLen) /* count of bytes of signature */{        LOG("C_Verify\n");        return CKR_FUNCTION_NOT_SUPPORTED;}CK_RV C_VerifyUpdate(CK_SESSION_HANDLE hSession,  /* the session's handle */		     CK_BYTE_PTR       pPart,     /* plaintext data (digest) to compare */		     CK_ULONG          ulPartLen) /* length of data (digest) in bytes */{        LOG("C_VerifyUpdate\n");        return CKR_FUNCTION_NOT_SUPPORTED;}CK_RV C_VerifyFinal(CK_SESSION_HANDLE hSession,       /* the session's handle */		    CK_BYTE_PTR       pSignature,     /* the signature to be verified */		    CK_ULONG          ulSignatureLen) /* count of bytes of signature */{        LOG("C_VerifyFinal\n");        return CKR_FUNCTION_NOT_SUPPORTED;}CK_RV C_VerifyRecoverInit(CK_SESSION_HANDLE hSession,    /* the session's handle */			  CK_MECHANISM_PTR  pMechanism,  /* the verification mechanism */			  CK_OBJECT_HANDLE  hKey)        /* handle of the verification key */{        LOG("C_VerifyRecoverInit\n");        return CKR_FUNCTION_NOT_SUPPORTED;}CK_RV C_VerifyRecover(CK_SESSION_HANDLE hSession,        /* the session's handle */		      CK_BYTE_PTR       pSignature,      /* the signature to be verified */		      CK_ULONG          ulSignatureLen,  /* count of bytes of signature */		      CK_BYTE_PTR       pData,           /* receives decrypted data (digest) */		      CK_ULONG_PTR      pulDataLen)      /* receives byte count of data */{        LOG("C_VerifyRecover\n");        return CKR_FUNCTION_NOT_SUPPORTED;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -