Ë E xtUþ¢ãó�—dZGd„de«ZGd„de«ZGd„de«ZGd„de«ZGd „d e«ZGd „d e«ZGd „de«ZGd„de«Z Gd„de«Z Gd„de«Z Gd„de«Z Gd„de«Z Gd„de«ZGd„de«ZGd„de«ZGd„d e«ZGd!„d"e«ZGd#„d$e«ZGd%„d&e«ZGd'„d(e«ZGd)„d*e«ZGd+„d,e«ZGd-„d.e«ZGd/„d0e«ZGd1„d2e«ZGd3„d4e«ZGd5„d6e«ZGd7„d8e«ZGd9„d:e«ZGd;„de«Z Gd?„d@e«Z!GdA„dBe«Z"GdC„dDe«Z#GdE„dFe«Z$GdG„dHe«Z%GdI„dJe«Z&GdK„dLe«Z'GdM„dNe«Z(GdO„dPe«Z)GdQ„dRe«Z*GdS„dTe«Z+GdU„dVe«Z,GdW„dXe«Z-GdY„dZe«Z.Gd[„d\e«Z/Gd]„d^e«Z0Gd_„d`e«Z1Gda„dbe«Z2Gdc„dde«Z3Gde„dfe«Z4Gdg„dhe«Z5Gdi„dje«Z6Gdk„dle«Z7Gdm„dne«Z8Gdo„dpe«Z9Gdq„dre«Z:Gds„dte«Z;Gdu„dve«Z<Gdw„dxe«Z=Gdy„dze«Z>Gd{„d|e«Z?Gd}„d~e«Z@Gd„d€e«ZAGd�„d‚e«ZBGdƒ„d„e«ZCGd…„d†e«ZDGd‡„dˆe«ZEGd‰„dŠe«ZFGd‹„dŒe«ZGGd�„dŽe«ZHGd�„d�e«ZIGd‘„d’e«ZJGd“„d”e«ZKGd•„d–e«ZLGd—„d˜e«ZMy™)šz] PKCS#11 return codes are exposed as Python exceptions inheriting from :class:`PKCS11Error`. có—eZdZdZy)Ú PKCS11Errorz4 Base exception for all PKCS#11 exceptions. N©Ú__name__Ú __module__Ú __qualname__Ú__doc__©óú6/usr/lib/python3.12/site-packages/pkcs11/exceptions.pyrró„òr rcó—eZdZdZy)ÚAlreadyInitializedz> pkcs11 was already initialized with another library. Nrr r r rr r r rcó —eZdZy)ÚAnotherUserAlreadyLoggedInN©rrrr r r rró„Ør rcó —eZdZy)ÚAttributeTypeInvalidNrr r r rrrr rcó —eZdZy)ÚAttributeValueInvalidNrr r r rrrr rcó—eZdZdZy)ÚAttributeReadOnlyz› An attempt was made to set a value for an attribute which may not be set by the application, or which may not be modified by the application. Nrr r r rró„òr rcó—eZdZdZy)ÚAttributeSensitivezª An attempt was made to obtain the value of an attribute of an object which cannot be satisfied because the object is either sensitive or un-extractable. Nrr r r rr&ó„òr rcó—eZdZdZy)Ú ArgumentsBadz® Bad arguments were passed into PKCS#11. This can indicate missing parameters to a mechanism or some other issue. Consult your PKCS#11 vendor documentation. Nrr r r rr.ó„òr rcó—eZdZdZy)Ú DataInvalidzK The plaintext input data to a cryptographic operation is invalid. Nrr r r r!r!7r r r!có—eZdZdZy)Ú DataLenRangeuû The plaintext input data to a cryptographic operation has a bad length. Depending on the operation’s mechanism, this could mean that the plaintext data is too short, too long, or is not a multiple of some particular block size. Nrr r r r#r#=rr r#có—eZdZdZy)ÚDomainParamsInvalidzÌ Invalid or unsupported domain parameters were supplied to the function. Which representation methods of domain parameters are supported by a given mechanism can vary from token to token. Nrr r r r%r%Frr r%có —eZdZy)Ú DeviceErrorNrr r r r'r'Nrr r'có—eZdZdZy)Ú DeviceMemoryzZ The token does not have sufficient memory to perform the requested function. Nrr r r r)r)Rrr r)có—eZdZdZy)Ú DeviceRemovedzS The token was removed from its slot during the execution of the function. Nrr r r r+r+Yr r r+có—eZdZdZy)ÚEncryptedDataInvalidzi The encrypted input to a decryption operation has been determined to be invalid ciphertext. Nrr r r r-r-_rr r-có—eZdZdZy)ÚEncryptedDataLenRangeu/ The ciphertext input to a decryption operation has been determined to be invalid ciphertext solely on the basis of its length. Depending on the operation’s mechanism, this could mean that the ciphertext is too short, too long, or is not a multiple of some particular block size. Nrr r r r/r/frr r/có—eZdZdZy)ÚExceededMaxIterationsz¦ An iterative algorithm (for key pair generation, domain parameter generation etc.) failed because we have exceeded the maximum number of iterations. Nrr r r r1r1orr r1có —eZdZy)ÚFunctionCancelledNrr r r r3r3wrr r3có —eZdZy)ÚFunctionFailedNrr r r r5r5{rr r5có —eZdZy)ÚFunctionRejectedNrr r r r7r7rr r7có —eZdZy)ÚFunctionNotSupportedNrr r r r9r9ƒrr r9có —eZdZy)ÚKeyHandleInvalidNrr r r r;r;‡rr r;có —eZdZy)ÚKeyIndigestibleNrr r r r=r=‹rr r=có —eZdZy)Ú KeyNeededNrr r r r?r?�rr r?có —eZdZy)Ú KeyNotNeededNrr r r rArA“rr rAcó —eZdZy)ÚKeyNotWrappableNrr r r rCrC—rr rCcó —eZdZy)Ú KeySizeRangeNrr r r rErE›rr rEcó —eZdZy)ÚKeyTypeInconsistentNrr r r rGrGŸrr rGcó —eZdZy)ÚKeyUnextractableNrr r r rIrI£rr rIcó—eZdZdZy)Ú GeneralErrora! In unusual (and extremely unpleasant!) circumstances, a function can fail with the return value CKR_GENERAL_ERROR. When this happens, the token and/or host computer may be in an inconsistent state, and the goals of the function may have been partially achieved. Nrr r r rKrK§s„ò r rKcó—eZdZdZy)Ú HostMemoryz} The computer that the Cryptoki library is running on has insufficient memory to perform the requested function. Nrr r r rMrM°rr rMcó—eZdZdZy)ÚMechanismInvalidz= Mechanism can not be used with requested operation. Nrr r r rOrO·r r rOcó —eZdZy)ÚMechanismParamInvalidNrr r r rQrQ½rr rQcó—eZdZdZy)ÚMultipleObjectsReturnedz9 Multiple objects matched the search parameters. Nrr r r rSrSÁr r rScó—eZdZdZy)ÚMultipleTokensReturnedz8 Multiple tokens matched the search parameters. Nrr r r rUrUÇr r rUcó—eZdZdZy)Ú NoSuchKeyz3 No key matching the parameters was found. Nrr r r rWrWÍr r rWcó—eZdZdZy)Ú NoSuchTokenz5 No token matching the parameters was found. Nrr r r rYrYÓr r rYcó —eZdZy)ÚObjectHandleInvalidNrr r r r[r[Ùrr r[có—eZdZdZy)ÚOperationActiveuÞ There is already an active operation (or combination of active operations) which prevents Cryptoki from activating the specified operation. For example, an active object-searching operation would prevent Cryptoki from activating an encryption operation with C_EncryptInit. Or, an active digesting operation and an active encryption operation would prevent Cryptoki from activating a signature operation. Or, on a token which doesn’t support simultaneous dual cryptographic operations in a session (see the description of the CKF_DUAL_CRYPTO_OPERATIONS flag in the CK_TOKEN_INFO structure), an active signature operation would prevent Cryptoki from activating an encryption operation. Nrr r r r]r]Ýs„ò r r]có —eZdZy)ÚOperationNotInitializedNrr r r r_r_ìrr r_có —eZdZy)Ú PinExpiredNrr r r raraðrr racó —eZdZy)Ú PinIncorrectNrr r r rcrcôrr rccó —eZdZy)Ú PinInvalidNrr r r rereørr recó—eZdZdZy)Ú PinLenRangez+The specified PIN is too long or too short.Nrr r r rgrgüs„Ú5r rgcó —eZdZy)Ú PinLockedNrr r r ririrr ricó —eZdZy)Ú PinTooWeakNrr r r rkrkrr rkcó —eZdZy)ÚPublicKeyInvalidNrr r r rmrmrr rmcó —eZdZy)Ú RandomNoRNGNrr r r roro rr rocó —eZdZy)ÚRandomSeedNotSupportedNrr r r rqrqrr rqcó—eZdZdZy)Ú SessionClosedzF The session was closed during the execution of the function. Nrr r r rsrsr r rscó—eZdZdZy)Ú SessionCountzo An attempt to open a session which does not succeed because there are too many existing sessions. Nrr r r rururr rucó —eZdZy)Ú SessionExistsNrr r r rwrw!rr rwcó—eZdZdZy)ÚSessionHandleInvalidz� The session handle was invalid. This is usually caused by using an old session object that is not known to PKCS#11. Nrr r r ryry%rr rycó—eZdZdZy)ÚSessionReadOnlyz*Attempted to write to a read-only session.Nrr r r r{r{,s„Ú4r r{có —eZdZy)ÚSessionReadOnlyExistsNrr r r r}r}0rr r}có—eZdZdZy)ÚSessionReadWriteSOExistsz If the application calling :meth:`Token.open` already has a R/W SO session open with the token, then any attempt to open a R/O session with the token fails with this exception. Nrr r r rr4rr rcó —eZdZy)ÚSignatureLenRangeNrr r r r�r�<rr r�có —eZdZy)ÚSignatureInvalidNrr r r rƒrƒ@rr rƒcó —eZdZy)Ú SlotIDInvalidNrr r r r…r…Drr r…có—eZdZdZy)ÚTemplateIncompletez@ Required attributes to create the object were missing. Nrr r r r‡r‡Hr r r‡có—eZdZdZy)ÚTemplateInconsistentzH Template values (including vendor defaults) are contradictory. Nrr r r r‰r‰Nr r r‰có—eZdZdZy)ÚTokenNotPresentz^ The token was not present in its slot at the time that the function was invoked. Nrr r r r‹r‹Trr r‹có —eZdZy)ÚTokenNotRecognisedNrr r r r�r�[rr r�có —eZdZy)ÚTokenWriteProtectedNrr r r r�r�_rr r�có —eZdZy)ÚUnwrappingKeyHandleInvalidNrr r r r‘r‘crr r‘có —eZdZy)ÚUnwrappingKeySizeRangeNrr r r r“r“grr r“có —eZdZy)ÚUnwrappingKeyTypeInconsistentNrr r r r•r•krr r•có —eZdZy)ÚUserAlreadyLoggedInNrr r r r—r—orr r—có —eZdZy)ÚUserNotLoggedInNrr r r r™r™srr r™có —eZdZy)ÚUserPinNotInitializedNrr r r r›r›wrr r›có—eZdZdZy)ÚUserTooManyTypesa  An attempt was made to have more distinct users simultaneously logged into the token than the token and/or library permits. For example, if some application has an open SO session, and another application attempts to log the normal user into a session, the attempt may return this error. It is not required to, however. Only if the simultaneous distinct users cannot be supported does C_Login have to return this value. Note that this error code generalizes to true multi-user tokens. Nrr r r r�r�{s„òr r�có —eZdZy)ÚWrappedKeyInvalidNrr r r rŸrŸ‡rr rŸcó —eZdZy)ÚWrappedKeyLenRangeNrr r r r¡r¡‹rr r¡có —eZdZy)ÚWrappingKeyHandleInvalidNrr r r r£r£�rr r£có —eZdZy)ÚWrappingKeySizeRangeNrr r r r¥r¥“rr r¥có —eZdZy)ÚWrappingKeyTypeInconsistentNrr r r r§r§—rr r§N)NrÚ RuntimeErrorrrrrrrrrr!r#r%r'r)r+r-r/r1r3r5r7r9r;r=r?rArCrErGrIrKrMrOrQrSrUrWrYr[r]r_rarcrergrirkrmrorqrsrurwryr{r}rr�rƒr…r‡r‰r‹r�r�r‘r“r•r—r™r›r�rŸr¡r£r¥r§r r r Úr©sšðñô �,ôô ˜ôô   ô ô ˜;ô ô ˜Kô ô˜ ôô˜ôô�;ôô�+ôô �;ôô˜+ôô �+ô ô�;ôô�Kôô ˜;ôô˜Kôô˜Kôô ˜ ô ô �[ô ô �{ô ô ˜;ô ô �{ô ô �kô ô � ô ô �;ô ô �kô ô �;ô ô ˜+ô ô �{ô ô �;ô ô�ôô�{ôô  ˜Kô ô˜kôô ˜[ôô � ôô �+ôô  ˜+ô ô �kô ô ˜kô ô �ô ô �;ô ô �ô ô6�+ô6ô � ô ô �ô ô �{ô ô �+ô ô ˜[ô ô�Kôô �;ôô �Kô ô˜;ôô5�kô5ô ˜Kô ô˜{ôô ˜ ô ô �{ô ô �Kô ô˜ôô ˜;ôô �kôô ˜ô ô ˜+ô ô  ô ô ˜[ô ô  Kô ô ˜+ô ô �kô ô ˜Kô ô �{ô ô ˜ ô ô ˜ô ô ˜{ô ô ˜;ô ô  +õ r