mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Replace NSS with Pale Moon's
This commit is contained in:
parent
ff1e5e48bf
commit
8c2e376f94
2870 changed files with 1762232 additions and 1374220 deletions
|
|
@ -22,7 +22,7 @@ CK_PKCS11_FUNCTION_INFO(C_Initialize)
|
|||
CK_VOID_PTR pInitArgs /* if this is not NULL_PTR, it gets
|
||||
* cast to CK_C_INITIALIZE_ARGS_PTR
|
||||
* and dereferenced */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Finalize indicates that an application is done with the
|
||||
|
|
@ -31,7 +31,7 @@ CK_PKCS11_FUNCTION_INFO(C_Finalize)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_VOID_PTR pReserved /* reserved. Should be NULL_PTR */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetInfo returns general information about PKCS #11. */
|
||||
|
|
@ -39,7 +39,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetInfo)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_INFO_PTR pInfo /* location that receives information */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetFunctionList returns the function list. */
|
||||
|
|
@ -48,7 +48,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetFunctionList)
|
|||
(
|
||||
CK_FUNCTION_LIST_PTR_PTR ppFunctionList /* receives pointer to
|
||||
* function list */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Slot and token management */
|
||||
|
|
@ -60,7 +60,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetSlotList)
|
|||
CK_BBOOL tokenPresent, /* only slots with tokens? */
|
||||
CK_SLOT_ID_PTR pSlotList, /* receives array of slot IDs */
|
||||
CK_ULONG_PTR pulCount /* receives number of slots */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetSlotInfo obtains information about a particular slot in
|
||||
|
|
@ -70,7 +70,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetSlotInfo)
|
|||
(
|
||||
CK_SLOT_ID slotID, /* the ID of the slot */
|
||||
CK_SLOT_INFO_PTR pInfo /* receives the slot information */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetTokenInfo obtains information about a particular token
|
||||
|
|
@ -80,7 +80,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetTokenInfo)
|
|||
(
|
||||
CK_SLOT_ID slotID, /* ID of the token's slot */
|
||||
CK_TOKEN_INFO_PTR pInfo /* receives the token information */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetMechanismList obtains a list of mechanism types
|
||||
|
|
@ -91,7 +91,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetMechanismList)
|
|||
CK_SLOT_ID slotID, /* ID of token's slot */
|
||||
CK_MECHANISM_TYPE_PTR pMechanismList, /* gets mech. array */
|
||||
CK_ULONG_PTR pulCount /* gets # of mechs. */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetMechanismInfo obtains information about a particular
|
||||
|
|
@ -102,7 +102,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetMechanismInfo)
|
|||
CK_SLOT_ID slotID, /* ID of the token's slot */
|
||||
CK_MECHANISM_TYPE type, /* type of mechanism */
|
||||
CK_MECHANISM_INFO_PTR pInfo /* receives mechanism info */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_InitToken initializes a token. */
|
||||
|
|
@ -114,7 +114,7 @@ CK_PKCS11_FUNCTION_INFO(C_InitToken)
|
|||
CK_UTF8CHAR_PTR pPin, /* the SO's initial PIN */
|
||||
CK_ULONG ulPinLen, /* length in bytes of the PIN */
|
||||
CK_UTF8CHAR_PTR pLabel /* 32-byte token label (blank padded) */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_InitPIN initializes the normal user's PIN. */
|
||||
|
|
@ -124,7 +124,7 @@ CK_PKCS11_FUNCTION_INFO(C_InitPIN)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_UTF8CHAR_PTR pPin, /* the normal user's PIN */
|
||||
CK_ULONG ulPinLen /* length in bytes of the PIN */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SetPIN modifies the PIN of the user who is logged in. */
|
||||
|
|
@ -136,7 +136,7 @@ CK_PKCS11_FUNCTION_INFO(C_SetPIN)
|
|||
CK_ULONG ulOldLen, /* length of the old PIN */
|
||||
CK_UTF8CHAR_PTR pNewPin, /* the new PIN */
|
||||
CK_ULONG ulNewLen /* length of the new PIN */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Session management */
|
||||
|
|
@ -151,7 +151,7 @@ CK_PKCS11_FUNCTION_INFO(C_OpenSession)
|
|||
CK_VOID_PTR pApplication, /* passed to callback */
|
||||
CK_NOTIFY Notify, /* callback function */
|
||||
CK_SESSION_HANDLE_PTR phSession /* gets session handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_CloseSession closes a session between an application and a
|
||||
|
|
@ -160,7 +160,7 @@ CK_PKCS11_FUNCTION_INFO(C_CloseSession)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession /* the session's handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_CloseAllSessions closes all sessions with a token. */
|
||||
|
|
@ -168,7 +168,7 @@ CK_PKCS11_FUNCTION_INFO(C_CloseAllSessions)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SLOT_ID slotID /* the token's slot */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetSessionInfo obtains information about the session. */
|
||||
|
|
@ -177,7 +177,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetSessionInfo)
|
|||
(
|
||||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_SESSION_INFO_PTR pInfo /* receives session info */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetOperationState obtains the state of the cryptographic operation
|
||||
|
|
@ -188,7 +188,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetOperationState)
|
|||
CK_SESSION_HANDLE hSession, /* session's handle */
|
||||
CK_BYTE_PTR pOperationState, /* gets state */
|
||||
CK_ULONG_PTR pulOperationStateLen /* gets state length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SetOperationState restores the state of the cryptographic
|
||||
|
|
@ -201,7 +201,7 @@ CK_PKCS11_FUNCTION_INFO(C_SetOperationState)
|
|||
CK_ULONG ulOperationStateLen, /* holds state length */
|
||||
CK_OBJECT_HANDLE hEncryptionKey, /* en/decryption key */
|
||||
CK_OBJECT_HANDLE hAuthenticationKey /* sign/verify key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Login logs a user into a token. */
|
||||
|
|
@ -212,7 +212,7 @@ CK_PKCS11_FUNCTION_INFO(C_Login)
|
|||
CK_USER_TYPE userType, /* the user type */
|
||||
CK_UTF8CHAR_PTR pPin, /* the user's PIN */
|
||||
CK_ULONG ulPinLen /* the length of the PIN */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Logout logs a user out from a token. */
|
||||
|
|
@ -220,7 +220,7 @@ CK_PKCS11_FUNCTION_INFO(C_Logout)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession /* the session's handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Object management */
|
||||
|
|
@ -233,7 +233,7 @@ CK_PKCS11_FUNCTION_INFO(C_CreateObject)
|
|||
CK_ATTRIBUTE_PTR pTemplate, /* the object's template */
|
||||
CK_ULONG ulCount, /* attributes in template */
|
||||
CK_OBJECT_HANDLE_PTR phObject /* gets new object's handle. */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_CopyObject copies an object, creating a new object for the
|
||||
|
|
@ -246,7 +246,7 @@ CK_PKCS11_FUNCTION_INFO(C_CopyObject)
|
|||
CK_ATTRIBUTE_PTR pTemplate, /* template for new object */
|
||||
CK_ULONG ulCount, /* attributes in template */
|
||||
CK_OBJECT_HANDLE_PTR phNewObject /* receives handle of copy */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DestroyObject destroys an object. */
|
||||
|
|
@ -255,7 +255,7 @@ CK_PKCS11_FUNCTION_INFO(C_DestroyObject)
|
|||
(
|
||||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_OBJECT_HANDLE hObject /* the object's handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetObjectSize gets the size of an object in bytes. */
|
||||
|
|
@ -265,7 +265,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetObjectSize)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_OBJECT_HANDLE hObject, /* the object's handle */
|
||||
CK_ULONG_PTR pulSize /* receives size of object */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GetAttributeValue obtains the value of one or more object
|
||||
|
|
@ -277,7 +277,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetAttributeValue)
|
|||
CK_OBJECT_HANDLE hObject, /* the object's handle */
|
||||
CK_ATTRIBUTE_PTR pTemplate, /* specifies attrs; gets vals */
|
||||
CK_ULONG ulCount /* attributes in template */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SetAttributeValue modifies the value of one or more object
|
||||
|
|
@ -289,7 +289,7 @@ CK_PKCS11_FUNCTION_INFO(C_SetAttributeValue)
|
|||
CK_OBJECT_HANDLE hObject, /* the object's handle */
|
||||
CK_ATTRIBUTE_PTR pTemplate, /* specifies attrs and values */
|
||||
CK_ULONG ulCount /* attributes in template */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_FindObjectsInit initializes a search for token and session
|
||||
|
|
@ -300,7 +300,7 @@ CK_PKCS11_FUNCTION_INFO(C_FindObjectsInit)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_ATTRIBUTE_PTR pTemplate, /* attribute values to match */
|
||||
CK_ULONG ulCount /* attrs in search template */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_FindObjects continues a search for token and session
|
||||
|
|
@ -313,7 +313,7 @@ CK_PKCS11_FUNCTION_INFO(C_FindObjects)
|
|||
CK_OBJECT_HANDLE_PTR phObject, /* gets obj. handles */
|
||||
CK_ULONG ulMaxObjectCount, /* max handles to get */
|
||||
CK_ULONG_PTR pulObjectCount /* actual # returned */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_FindObjectsFinal finishes a search for token and session
|
||||
|
|
@ -322,7 +322,7 @@ CK_PKCS11_FUNCTION_INFO(C_FindObjectsFinal)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession /* the session's handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Encryption and decryption */
|
||||
|
|
@ -334,7 +334,7 @@ CK_PKCS11_FUNCTION_INFO(C_EncryptInit)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_MECHANISM_PTR pMechanism, /* the encryption mechanism */
|
||||
CK_OBJECT_HANDLE hKey /* handle of encryption key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Encrypt encrypts single-part data. */
|
||||
|
|
@ -346,7 +346,7 @@ CK_PKCS11_FUNCTION_INFO(C_Encrypt)
|
|||
CK_ULONG ulDataLen, /* bytes of plaintext */
|
||||
CK_BYTE_PTR pEncryptedData, /* gets ciphertext */
|
||||
CK_ULONG_PTR pulEncryptedDataLen /* gets c-text size */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_EncryptUpdate continues a multiple-part encryption
|
||||
|
|
@ -359,7 +359,7 @@ CK_PKCS11_FUNCTION_INFO(C_EncryptUpdate)
|
|||
CK_ULONG ulPartLen, /* plaintext data len */
|
||||
CK_BYTE_PTR pEncryptedPart, /* gets ciphertext */
|
||||
CK_ULONG_PTR pulEncryptedPartLen /* gets c-text size */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_EncryptFinal finishes a multiple-part encryption
|
||||
|
|
@ -370,7 +370,7 @@ CK_PKCS11_FUNCTION_INFO(C_EncryptFinal)
|
|||
CK_SESSION_HANDLE hSession, /* session handle */
|
||||
CK_BYTE_PTR pLastEncryptedPart, /* last c-text */
|
||||
CK_ULONG_PTR pulLastEncryptedPartLen /* gets last size */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DecryptInit initializes a decryption operation. */
|
||||
|
|
@ -380,7 +380,7 @@ CK_PKCS11_FUNCTION_INFO(C_DecryptInit)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_MECHANISM_PTR pMechanism, /* the decryption mechanism */
|
||||
CK_OBJECT_HANDLE hKey /* handle of decryption key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Decrypt decrypts encrypted data in a single part. */
|
||||
|
|
@ -392,7 +392,7 @@ CK_PKCS11_FUNCTION_INFO(C_Decrypt)
|
|||
CK_ULONG ulEncryptedDataLen, /* ciphertext length */
|
||||
CK_BYTE_PTR pData, /* gets plaintext */
|
||||
CK_ULONG_PTR pulDataLen /* gets p-text size */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DecryptUpdate continues a multiple-part decryption
|
||||
|
|
@ -405,7 +405,7 @@ CK_PKCS11_FUNCTION_INFO(C_DecryptUpdate)
|
|||
CK_ULONG ulEncryptedPartLen, /* input length */
|
||||
CK_BYTE_PTR pPart, /* gets plaintext */
|
||||
CK_ULONG_PTR pulPartLen /* p-text size */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DecryptFinal finishes a multiple-part decryption
|
||||
|
|
@ -416,7 +416,7 @@ CK_PKCS11_FUNCTION_INFO(C_DecryptFinal)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pLastPart, /* gets plaintext */
|
||||
CK_ULONG_PTR pulLastPartLen /* p-text size */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Message digesting */
|
||||
|
|
@ -427,7 +427,7 @@ CK_PKCS11_FUNCTION_INFO(C_DigestInit)
|
|||
(
|
||||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_MECHANISM_PTR pMechanism /* the digesting mechanism */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Digest digests data in a single part. */
|
||||
|
|
@ -439,7 +439,7 @@ CK_PKCS11_FUNCTION_INFO(C_Digest)
|
|||
CK_ULONG ulDataLen, /* bytes of data to digest */
|
||||
CK_BYTE_PTR pDigest, /* gets the message digest */
|
||||
CK_ULONG_PTR pulDigestLen /* gets digest length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DigestUpdate continues a multiple-part message-digesting
|
||||
|
|
@ -450,7 +450,7 @@ CK_PKCS11_FUNCTION_INFO(C_DigestUpdate)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pPart, /* data to be digested */
|
||||
CK_ULONG ulPartLen /* bytes of data to be digested */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DigestKey continues a multi-part message-digesting
|
||||
|
|
@ -461,7 +461,7 @@ CK_PKCS11_FUNCTION_INFO(C_DigestKey)
|
|||
(
|
||||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_OBJECT_HANDLE hKey /* secret key to digest */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DigestFinal finishes a multiple-part message-digesting
|
||||
|
|
@ -472,7 +472,7 @@ CK_PKCS11_FUNCTION_INFO(C_DigestFinal)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pDigest, /* gets the message digest */
|
||||
CK_ULONG_PTR pulDigestLen /* gets byte count of digest */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Signing and MACing */
|
||||
|
|
@ -487,7 +487,7 @@ CK_PKCS11_FUNCTION_INFO(C_SignInit)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_MECHANISM_PTR pMechanism, /* the signature mechanism */
|
||||
CK_OBJECT_HANDLE hKey /* handle of signature key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Sign signs (encrypts with private key) data in a single
|
||||
|
|
@ -501,7 +501,7 @@ CK_PKCS11_FUNCTION_INFO(C_Sign)
|
|||
CK_ULONG ulDataLen, /* count of bytes to sign */
|
||||
CK_BYTE_PTR pSignature, /* gets the signature */
|
||||
CK_ULONG_PTR pulSignatureLen /* gets signature length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SignUpdate continues a multiple-part signature operation,
|
||||
|
|
@ -513,7 +513,7 @@ CK_PKCS11_FUNCTION_INFO(C_SignUpdate)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pPart, /* the data to sign */
|
||||
CK_ULONG ulPartLen /* count of bytes to sign */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SignFinal finishes a multiple-part signature operation,
|
||||
|
|
@ -524,7 +524,7 @@ CK_PKCS11_FUNCTION_INFO(C_SignFinal)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pSignature, /* gets the signature */
|
||||
CK_ULONG_PTR pulSignatureLen /* gets signature length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SignRecoverInit initializes a signature operation, where
|
||||
|
|
@ -535,7 +535,7 @@ CK_PKCS11_FUNCTION_INFO(C_SignRecoverInit)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_MECHANISM_PTR pMechanism, /* the signature mechanism */
|
||||
CK_OBJECT_HANDLE hKey /* handle of the signature key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SignRecover signs data in a single operation, where the
|
||||
|
|
@ -548,7 +548,7 @@ CK_PKCS11_FUNCTION_INFO(C_SignRecover)
|
|||
CK_ULONG ulDataLen, /* count of bytes to sign */
|
||||
CK_BYTE_PTR pSignature, /* gets the signature */
|
||||
CK_ULONG_PTR pulSignatureLen /* gets signature length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Verifying signatures and MACs */
|
||||
|
|
@ -562,7 +562,7 @@ CK_PKCS11_FUNCTION_INFO(C_VerifyInit)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_MECHANISM_PTR pMechanism, /* the verification mechanism */
|
||||
CK_OBJECT_HANDLE hKey /* verification key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_Verify verifies a signature in a single-part operation,
|
||||
|
|
@ -576,7 +576,7 @@ CK_PKCS11_FUNCTION_INFO(C_Verify)
|
|||
CK_ULONG ulDataLen, /* length of signed data */
|
||||
CK_BYTE_PTR pSignature, /* signature */
|
||||
CK_ULONG ulSignatureLen /* signature length*/
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_VerifyUpdate continues a multiple-part verification
|
||||
|
|
@ -588,7 +588,7 @@ CK_PKCS11_FUNCTION_INFO(C_VerifyUpdate)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pPart, /* signed data */
|
||||
CK_ULONG ulPartLen /* length of signed data */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_VerifyFinal finishes a multiple-part verification
|
||||
|
|
@ -599,7 +599,7 @@ CK_PKCS11_FUNCTION_INFO(C_VerifyFinal)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pSignature, /* signature to verify */
|
||||
CK_ULONG ulSignatureLen /* signature length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_VerifyRecoverInit initializes a signature verification
|
||||
|
|
@ -610,7 +610,7 @@ CK_PKCS11_FUNCTION_INFO(C_VerifyRecoverInit)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_MECHANISM_PTR pMechanism, /* the verification mechanism */
|
||||
CK_OBJECT_HANDLE hKey /* verification key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_VerifyRecover verifies a signature in a single-part
|
||||
|
|
@ -623,7 +623,7 @@ CK_PKCS11_FUNCTION_INFO(C_VerifyRecover)
|
|||
CK_ULONG ulSignatureLen, /* signature length */
|
||||
CK_BYTE_PTR pData, /* gets signed data */
|
||||
CK_ULONG_PTR pulDataLen /* gets signed data len */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Dual-function cryptographic operations */
|
||||
|
|
@ -638,7 +638,7 @@ CK_PKCS11_FUNCTION_INFO(C_DigestEncryptUpdate)
|
|||
CK_ULONG ulPartLen, /* plaintext length */
|
||||
CK_BYTE_PTR pEncryptedPart, /* gets ciphertext */
|
||||
CK_ULONG_PTR pulEncryptedPartLen /* gets c-text length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DecryptDigestUpdate continues a multiple-part decryption and
|
||||
|
|
@ -651,7 +651,7 @@ CK_PKCS11_FUNCTION_INFO(C_DecryptDigestUpdate)
|
|||
CK_ULONG ulEncryptedPartLen, /* ciphertext length */
|
||||
CK_BYTE_PTR pPart, /* gets plaintext */
|
||||
CK_ULONG_PTR pulPartLen /* gets plaintext len */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_SignEncryptUpdate continues a multiple-part signing and
|
||||
|
|
@ -664,7 +664,7 @@ CK_PKCS11_FUNCTION_INFO(C_SignEncryptUpdate)
|
|||
CK_ULONG ulPartLen, /* plaintext length */
|
||||
CK_BYTE_PTR pEncryptedPart, /* gets ciphertext */
|
||||
CK_ULONG_PTR pulEncryptedPartLen /* gets c-text length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DecryptVerifyUpdate continues a multiple-part decryption and
|
||||
|
|
@ -677,7 +677,7 @@ CK_PKCS11_FUNCTION_INFO(C_DecryptVerifyUpdate)
|
|||
CK_ULONG ulEncryptedPartLen, /* ciphertext length */
|
||||
CK_BYTE_PTR pPart, /* gets plaintext */
|
||||
CK_ULONG_PTR pulPartLen /* gets p-text length */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Key management */
|
||||
|
|
@ -692,7 +692,7 @@ CK_PKCS11_FUNCTION_INFO(C_GenerateKey)
|
|||
CK_ATTRIBUTE_PTR pTemplate, /* template for new key */
|
||||
CK_ULONG ulCount, /* # of attrs in template */
|
||||
CK_OBJECT_HANDLE_PTR phKey /* gets handle of new key */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GenerateKeyPair generates a public-key/private-key pair,
|
||||
|
|
@ -708,7 +708,7 @@ CK_PKCS11_FUNCTION_INFO(C_GenerateKeyPair)
|
|||
CK_ULONG ulPrivateKeyAttributeCount, /* # priv. attrs. */
|
||||
CK_OBJECT_HANDLE_PTR phPublicKey, /* gets pub. key handle */
|
||||
CK_OBJECT_HANDLE_PTR phPrivateKey /* gets priv. key handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_WrapKey wraps (i.e., encrypts) a key. */
|
||||
|
|
@ -721,7 +721,7 @@ CK_PKCS11_FUNCTION_INFO(C_WrapKey)
|
|||
CK_OBJECT_HANDLE hKey, /* key to be wrapped */
|
||||
CK_BYTE_PTR pWrappedKey, /* gets wrapped key */
|
||||
CK_ULONG_PTR pulWrappedKeyLen /* gets wrapped key size */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_UnwrapKey unwraps (decrypts) a wrapped key, creating a new
|
||||
|
|
@ -737,7 +737,7 @@ CK_PKCS11_FUNCTION_INFO(C_UnwrapKey)
|
|||
CK_ATTRIBUTE_PTR pTemplate, /* new key template */
|
||||
CK_ULONG ulAttributeCount, /* template length */
|
||||
CK_OBJECT_HANDLE_PTR phKey /* gets new handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_DeriveKey derives a key from a base key, creating a new key
|
||||
|
|
@ -751,7 +751,7 @@ CK_PKCS11_FUNCTION_INFO(C_DeriveKey)
|
|||
CK_ATTRIBUTE_PTR pTemplate, /* new key template */
|
||||
CK_ULONG ulAttributeCount, /* template length */
|
||||
CK_OBJECT_HANDLE_PTR phKey /* gets new handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Random number generation */
|
||||
|
|
@ -764,7 +764,7 @@ CK_PKCS11_FUNCTION_INFO(C_SeedRandom)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR pSeed, /* the seed material */
|
||||
CK_ULONG ulSeedLen /* length of seed material */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_GenerateRandom generates random data. */
|
||||
|
|
@ -774,7 +774,7 @@ CK_PKCS11_FUNCTION_INFO(C_GenerateRandom)
|
|||
CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||
CK_BYTE_PTR RandomData, /* receives the random data */
|
||||
CK_ULONG ulRandomLen /* # of bytes to generate */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Parallel function management */
|
||||
|
|
@ -786,7 +786,7 @@ CK_PKCS11_FUNCTION_INFO(C_GetFunctionStatus)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession /* the session's handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* C_CancelFunction is a legacy function; it cancels a function
|
||||
|
|
@ -795,7 +795,7 @@ CK_PKCS11_FUNCTION_INFO(C_CancelFunction)
|
|||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession /* the session's handle */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
/* Functions added in for PKCS #11 Version 2.01 or later */
|
||||
|
|
@ -808,5 +808,237 @@ CK_PKCS11_FUNCTION_INFO(C_WaitForSlotEvent)
|
|||
CK_FLAGS flags, /* blocking/nonblocking flag */
|
||||
CK_SLOT_ID_PTR pSlot, /* location that receives the slot ID */
|
||||
CK_VOID_PTR pRserved /* reserved. Should be NULL_PTR */
|
||||
);
|
||||
);
|
||||
#endif
|
||||
|
||||
#if defined(CK_PKCS11_3_0) && !defined(CK_PKCS11_2_0_ONLY)
|
||||
CK_PKCS11_FUNCTION_INFO(C_GetInterfaceList)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_INTERFACE_PTR interfaces,
|
||||
CK_ULONG_PTR pulCount);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_GetInterface)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_UTF8CHAR_PTR pInterfaceName,
|
||||
CK_VERSION_PTR pVersion,
|
||||
CK_INTERFACE_PTR_PTR ppInterface,
|
||||
CK_FLAGS flags);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_LoginUser)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_USER_TYPE userType,
|
||||
CK_CHAR_PTR pPin,
|
||||
CK_ULONG ulPinLen,
|
||||
CK_UTF8CHAR_PTR pUsername,
|
||||
CK_ULONG ulUsernameLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_SessionCancel)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_FLAGS flags);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageEncryptInit)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_MECHANISM_PTR pMechanism,
|
||||
CK_OBJECT_HANDLE hKey);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_EncryptMessage)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pAssociatedData,
|
||||
CK_ULONG ulAssociatedDataLen,
|
||||
CK_BYTE_PTR pPlaintext,
|
||||
CK_ULONG ulPlaintextLen,
|
||||
CK_BYTE_PTR pCiphertext,
|
||||
CK_ULONG_PTR pulCiphertextLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_EncryptMessageBegin)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pAssociatedData,
|
||||
CK_ULONG ulAssociatedDataLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_EncryptMessageNext)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pPlaintextPart,
|
||||
CK_ULONG ulPlaintextPartLen,
|
||||
CK_BYTE_PTR pCiphertextPart,
|
||||
CK_ULONG_PTR pulCiphertextPartLen,
|
||||
CK_FLAGS flags);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageEncryptFinal)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageDecryptInit)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_MECHANISM_PTR pMechanism,
|
||||
CK_OBJECT_HANDLE hKey);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_DecryptMessage)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pAssociatedData,
|
||||
CK_ULONG ulAssociatedDataLen,
|
||||
CK_BYTE_PTR pCiphertext,
|
||||
CK_ULONG ulCiphertextLen,
|
||||
CK_BYTE_PTR pPlaintext,
|
||||
CK_ULONG_PTR pulPlaintextLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_DecryptMessageBegin)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pAssociatedData,
|
||||
CK_ULONG ulAssociatedDataLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_DecryptMessageNext)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pCiphertextPart,
|
||||
CK_ULONG ulCiphertextPartLen,
|
||||
CK_BYTE_PTR pPlaintextPart,
|
||||
CK_ULONG_PTR pulPlaintextPartLen,
|
||||
CK_FLAGS flags);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageDecryptFinal)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageSignInit)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_MECHANISM_PTR pMechanism,
|
||||
CK_OBJECT_HANDLE hKey);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_SignMessage)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pData,
|
||||
CK_ULONG ulDataLen,
|
||||
|
||||
CK_BYTE_PTR pSignature,
|
||||
CK_ULONG_PTR pulSignatureLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_SignMessageBegin)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_SignMessageNext)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pData,
|
||||
CK_ULONG ulDataLen,
|
||||
CK_BYTE_PTR pSignature,
|
||||
CK_ULONG_PTR pulSignatureLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageSignFinal)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageVerifyInit)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_MECHANISM_PTR pMechanism,
|
||||
CK_OBJECT_HANDLE hKey);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_VerifyMessage)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pData,
|
||||
CK_ULONG ulDataLen,
|
||||
CK_BYTE_PTR pSignature,
|
||||
CK_ULONG ulSignatureLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_VerifyMessageBegin)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_VerifyMessageNext)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession,
|
||||
CK_VOID_PTR pParameter,
|
||||
CK_ULONG ulParameterLen,
|
||||
CK_BYTE_PTR pData,
|
||||
CK_ULONG ulDataLen,
|
||||
CK_BYTE_PTR pSignature,
|
||||
CK_ULONG ulSignatureLen);
|
||||
#endif
|
||||
|
||||
CK_PKCS11_FUNCTION_INFO(C_MessageVerifyFinal)
|
||||
#ifdef CK_NEED_ARG_LIST
|
||||
(
|
||||
CK_SESSION_HANDLE hSession);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue