PKCS11-SPECS | All versions of PKCS # 11 specification in one place | TLS library

 by   Pkcs11Interop C Version: Current License: No License

kandi X-RAY | PKCS11-SPECS Summary

kandi X-RAY | PKCS11-SPECS Summary

PKCS11-SPECS is a C library typically used in Security, TLS applications. PKCS11-SPECS has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

All versions of PKCS#11 specification in one place. 1995 - [PKCS#11 v1.0] v1.0) 1997 - [PKCS#11 v2.0] v2.0_DRAFT) 1997 - [PKCS#11 v2.01] v2.01) 1999 - [PKCS#11 v2.10] v2.10) 2001 - [PKCS#11 v2.11] v2.11) 2004 - [PKCS#11 v2.20] v2.20) 2009 - [PKCS#11 v2.30] v2.30_DRAFT) 2015 - [PKCS#11 v2.40] v2.40) 2020 - [PKCS#11 v3.0] v3.0). 2015 - [RFC7512 - The PKCS#11 URI Scheme] RELATED/RFC7512).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PKCS11-SPECS has a low active ecosystem.
              It has 40 star(s) with 6 fork(s). There are 7 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              PKCS11-SPECS has no issues reported. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of PKCS11-SPECS is current.

            kandi-Quality Quality

              PKCS11-SPECS has 0 bugs and 0 code smells.

            kandi-Security Security

              PKCS11-SPECS has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              PKCS11-SPECS code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              PKCS11-SPECS does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              PKCS11-SPECS releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PKCS11-SPECS
            Get all kandi verified functions for this library.

            PKCS11-SPECS Key Features

            No Key Features are available at this moment for PKCS11-SPECS.

            PKCS11-SPECS Examples and Code Snippets

            No Code Snippets are available at this moment for PKCS11-SPECS.

            Community Discussions

            QUESTION

            Hot to use mechanisms CKM_ECDH1_DERIVE with pkcs11interop
            Asked 2017-Jun-29 at 19:42

            I bought a NitroKey HSM and wanted to derive a secret with EC. Previosly question

            For this, I want to use the CKM_ECDH1_DERIVE mechanisms. Which is supported by this HSM, see:

            Referring to the PKCS#11 specification this must be considered:

            1. The mechanism CKM_ECDH1_DERIVE must be used with the function Derive (Page 188)
            2. The mechanism CKM_ECDH1_DERIVE expects parameter CK_ECDH1_DERIVE_PARAMS (Page 222) with this arguments:
              1. kdf: Key derivation function used on the shared secret value (CKD)
              2. sharedData: Some data shared between the two parties
              3. publicData: Other party's EC public key value
            3. The function DeriveKey expects these arguments:
              1. Mechanism CKM.CKM_ECDH1_DERIVE
              2. ObjectHandle PrivateKey
              3. ObjectAttributes (Page 338)
                1. CKA.CKA_CLASS -> CKO.CKO_SECRET_KEY
                2. CKA.CKA_KEY_TYPE -> CKK.CKK_GENERIC_SECRET
                3. But "However, since these facts are all implicit in the mechanism, there is no need to specify any of them" so these can be null?
            Problem

            So with this information, I tried to implement a method.

            But I get this Error:

            Net.Pkcs11Interop.Common.Pkcs11Exception : Method C_DeriveKey returned CKR_TEMPLATE_INCOMPLETE

            at Session.DeriveKey.

            Explanation of CKR_TEMPLATE_INCOMPLETE (Page 64):

            If the attribute values in the supplied template, together with any default attribute values and any attribute values contributed to the object by the object-creation function itself, are insufficient to fully specify the object to create, then the attempt should fail with the error code CKR_TEMPLATE_INCOMPLETE.

            and here (Page 98)

            CKR_TEMPLATE_INCOMPLETE: The template specified for creating an object is incomplete, and lacks some necessary attributes. See Section 10.1 for more information.

            But I used the nesseary attributes:

            1. CKA.CKA_CLASS -> CKO.CKO_SECRET_KEY
            2. CKA.CKA_KEY_TYPE -> CKK.CKK_GENERIC_SECRET

            Ideas?

            Code ...

            ANSWER

            Answered 2017-Feb-21 at 22:02

            That's a very nice and complete description of a problem.

            CKR_TEMPLATE_INCOMPLETE is always very painful to deal with because almost every library vendor expect different set of attributes to be provided and this error does not reveal which exact attributes are missing.

            After a quick look at OpenSC source code I would try with following template:

            Source https://stackoverflow.com/questions/42378394

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PKCS11-SPECS

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Pkcs11Interop/PKCS11-SPECS.git

          • CLI

            gh repo clone Pkcs11Interop/PKCS11-SPECS

          • sshUrl

            git@github.com:Pkcs11Interop/PKCS11-SPECS.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular TLS Libraries

            mkcert

            by FiloSottile

            v2rayN

            by 2dust

            acme.sh

            by acmesh-official

            nginxconfig.io

            by digitalocean

            v2ray

            by 233boy

            Try Top Libraries by Pkcs11Interop

            Pkcs11Interop

            by Pkcs11InteropC#

            pkcs11-logger

            by Pkcs11InteropC

            pkcs11-mock

            by Pkcs11InteropC

            Pkcs11Interop.X509Store

            by Pkcs11InteropC#

            empty-pkcs11

            by Pkcs11InteropC