Giter Club home page Giter Club logo

Comments (5)

xipki avatar xipki commented on June 25, 2024 1

Adding new constant is not possible. You can only override the vendor constants defined in PKCS11Constants.java.
Taking CKK_VENDOR_SM2 as example, it specifies the constant value to the SM2 key type. Since SM2 key type is not specified in the PKCS#11 standard, each HSM vendor may use different constant value. In the java code, I assign CKM_VENDOR_SM2 = 0xFFFFF001L (see https://github.com/xipki/jpkcs11wrapper/blob/main/src/main/java/org/xipki/pkcs11/wrapper/PKCS11Constants.java#L1240). In the vendor.conf you may override this with the value defined by the HSM vendor.

BTW: It is better to have an issue under the project xipki/jpkcs11wrapper to discuss the usage of jpkcs11wrapper.

from xipki.

xipki avatar xipki commented on June 25, 2024

You can define your own vendor.conf and point it via the java property org.xipki.pkcs11.vendor.conf (-Dorg.xipki.pkcs11.vendor.conf=/path/to/your/vendor.conf-file).

BTW: Do you use jpkcs11wrapper in xipki or your own project? Please update to latest version (v1.0.4).

from xipki.

vitorcabral94 avatar vitorcabral94 commented on June 25, 2024

Hi,

Yes, I'm currently upgrading the jpkcs11wrapper version from 1.0.1 that I was using, to 1.0.4 which is very helpful on managing sessions on it's own .

Can you give me an brief explanation about VENDOR_BEHAVIORS? I can't really understand how it works! And I can't customize the name for example from CKK_VENDOR_SM2 to CKK_SOMETHING_SM2?

Really appreciate the help!

from xipki.

vitorcabral94 avatar vitorcabral94 commented on June 25, 2024

Hi,

Sorry, didn't notice that I created the issue in the root of the repositories, my bad!

Thank you for all the information, now I know how to configure those mechanisms.

from xipki.

xipki avatar xipki commented on June 25, 2024

Please also take a look at xipki/ipkcs11wrapper. It supports more algorithms.

from xipki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.