Git Product home page Git Product logo

Comments (1)

qpernil avatar qpernil commented on July 29, 2024

SHA3 is currently not a supported algorithm. The YubiHSM checks what hash is used for two purposes - to determine if it is enabled, and secondly to add the proper OID if a raw hash is given, in which case the length of the hash is used to determine the hash algorithm. That is needed because the OID is part of a pkcs#1 signature. See https://developers.yubico.com/YubiHSM2/Commands/Sign_Pkcs1.html for info on what algorithms are supported.
So even if supplying a SHA2-384 OID works the signature will be incorrect when verified as a pkcs#1-sha3-384 signature (because the oid part of the signed data will be different), and also incorrect when verified as a pkcs#1-sha2-384 signature (because the hash part of the signed data will be different).

from yubihsm-shell.

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.