Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structs to Objects #5

Open
lucasperin opened this issue Nov 5, 2015 · 0 comments
Open

Structs to Objects #5

lucasperin opened this issue Nov 5, 2015 · 0 comments

Comments

@lucasperin
Copy link
Collaborator

PKCS11 has many structures of data. We need to create simple objetcs that represent these strctures.

Info Objects are static copies, user should only be able to call functions to obtain data. Look at CryptokiInfo and CryptokiSessionInfo.

Other objects that may be initialized should follow the CryptokiSession pattern, implementing P11Init to avoid bad programming habits or human error. Think of RAII design patter for the end user when implementing.

Some objects that are missing:
CryptokiToken
CryptokiTokenInfo
CryptokiSlot
CryptokiSlotInfo
CryptokiMechanism
CryptokiMechanismInfo

Please use PKCS11 oficial documentation to describe objects, attributes and functions using doxygen.
ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs-11v2-20.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant