Comments (2)
Hi,
you say that the encrypt and decrypt functions work well when they are coupled together, but decryption fails when both are separated. Would you be able to provide an example of this ? With some example data, ciphertexts, IV & AAD value
from php-pkcs11.
Hello,
At present, it has been debugged.
Using the columns on 'GitHub' failed. The following method is OK Gets the object of the key
This separation can be used for normal encryption and decryption.
$objects = $session->findObjects([
\Pkcs11\CKA_CLASS => \Pkcs11\CKO_SECRET_KEY,
\Pkcs11\CKA_KEY_TYPE => \Pkcs11\CKK_AES,
\Pkcs11\CKA_VALUE_LEN => 32,
]);
return reset($objects);
I intend to open up the code with good mode and provide it to friends who need it. If we encounter difficulties, we can discuss and learn from each other.
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
- Variable types of attributes are not compareable with constants HOT 1
- How To Use On Windows ? HOT 2
- Exception thrown on propietary driver 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.