Comments (2)
When creating an object, the code looks for the object class (CKA_CLASS) in order to return the correct PHP object type:
Pkcs11\Key for the following:
CKO_PUBLIC_KEY
CKO_PRIVATE_KEY
CKO_SECRET_KEY
CKO_OTP_KEY
Lines 584 to 592 in 14cb4e8
Pkcs11\Object for the the rest.
Lines 596 to 602 in 14cb4e8
To do so, it calls into getObjectClass
Line 582 in 14cb4e8
Inside getObjectClass
, we get the CKA_CLASS, but it seems as though by that time, CK_OBJECT_HANDLE_PTR hObject
that was passed as argument is no longer referencing the object that we just created.
Lines 177 to 191 in 14cb4e8
from php-pkcs11.
Thanks for your reply.
We're currently trying to debug our setup with the info provided.
from php-pkcs11.
Related Issues (20)
- Support C_WaitForSlotEvent() HOT 4
- Support Notify in C_OpenSession
- tests: PHP11_PIN vs PHP11_SOPIN HOT 1
- Segfault when Pkcs11\Module is instanciated inside an included file. HOT 2
- test failures - P11Object HOT 4
- [0.1.1] Seg fault in test suite HOT 22
- 0160-rsa-encrypt-pkcs - segfault with HSM HOT 5
- failed tests due to unsupported C_CreateObject() by HSM
- Module variable going out of scope causes open session to be broken and cause SegFault HOT 5
- Decryption using symmetric key in another function gives CKR_GENERAL_ERROR HOT 14
- How to use in Laravel application? HOT 7
- Using ECDSA/RSA Signing? HOT 5
- Internal Server Error (0x00000007/CKR_ARGUMENTS_BAD) PKCS#11 module error: Unable to encrypt [/website/test/***/Hsm.php:119] HOT 2
- Variable types of attributes are not compareable with constants HOT 1
- How To Use On Windows ? HOT 2
- AWS Cloud HSM Support HOT 2
- Exporting a public key/object from token. HOT 3
- Support AWS CloudHSM SDK 1.1.1 and later HOT 7
- Not login when sign HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-pkcs11.