Comments (2)
It required use of CKM_AES_CMAC_GENERAL instead CKM_AES_CMAC and pass output length as MacGeneralParameters
But i did not used
PKCS11Constants.CKM_AES_CMAC_GENERAL (0x108b)
because CKM_AES_CMAC_GENERAL because constant seems wrong: https://www.oasis-open.org/committees/download.php/55622/AES-XTS.pdf
#define CKM_AES_CMAC_GENERAL 0x00001089
from pkcs11wrapper.
The PKCS11Constants are derived from https://github.com/xipki/pkcs11wrapper/blob/sunpkcs11/dev/resources/pkcs11t.h, a copy of http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/errata01/os/include/pkcs11-v2.40/pkcs11t.h.
#define CKM_AES_CCM 0x00001088UL
#define CKM_AES_CTS 0x00001089UL
#define CKM_AES_CMAC 0x0000108AUL
#define CKM_AES_CMAC_GENERAL 0x0000108BUL
#define CKM_AES_XCBC_MAC 0x0000108CUL
#define CKM_AES_XCBC_MAC_96 0x0000108DUL
#define CKM_AES_GMAC 0x0000108EUL
The AES-XTS.pdf seems to be the first v2.40 version http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/os/pkcs11-base-v2.40-os.html. Which is deprecated by http://docs.oasis-open.org/pkcs11/pkcs11-base/v2.40/errata01/pkcs11-base-v2.40-errata01-complete.html.
from pkcs11wrapper.
Related Issues (15)
- use xipki/pkcs11wrapper instead mikma/pkcs11wrapper HOT 11
- sunPKCS11 on Java 9+ HOT 2
- info about right pattern on hsm restart HOT 3
- RSASSA-PSS with SHA256 return CKR_MECHANISM_INVALID HOT 3
- Use pkcs11wrapper as SunPKCS11 provider
- Pass CKA_VALUE into secretkey template HOT 1
- Getting "WARNING: An illegal reflective access operation has occurred" HOT 3
- Token.closeAllSessions() function is commented out HOT 1
- CK_RSA_AES_KEY_WRAP_PARAMS support seems to be missing HOT 1
- Is there any way possible that I can write Junit test cases for PKCS11.getInstance? HOT 1
- chore : Unknwon instead of Unknown in mechanismCodeToString() HOT 1
- Not working with OpenJDK 11 HOT 2
- Decrypt with CKM_RSA_PKCS_OAEP mechanism return... Unsupported Parameters HOT 2
- How to cast iaik.pkcs.pkcs11.objects.KeyPair to java.security.KeyPair HOT 1
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 pkcs11wrapper.