Giter Site home page Giter Site logo

Comments (3)

celic avatar celic commented on June 3, 2024

It should be noted, in the SHA spec, there is no reference to bits or bytes for things like message length. The intended notion is bit length in terms of SHA, but I think this should be discussed. Perhaps we could have a default of bits unless otherwise specified? I'm not sure how much sense this would make in terms of other algorithms however.

from acvp.

atvassilev avatar atvassilev commented on June 3, 2024

If you look at SP 800-38C http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38c.pdf, Appendix A, the specification of AES-CCM is defined in bits with the additional constraint that the bit-length of each input string shall be a multiple of 8. So, it seems that the byte-length inputs are something that CAVS came up with and it is not how the standard defines it.

When in doubt, we should check the standard and if a discrepancy is found, the definition in the standard prevails.

If we use the bit-oriented definitions in SP 800-38C and change the numbers for AES-CCM in the table above the inconsistency would go away and the sub-symmetric spec will be simpler.

from acvp.

atvassilev avatar atvassilev commented on June 3, 2024

Resolved with PR #133

from acvp.

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.