Code Monkey home page Code Monkey logo

Comments (7)

rmhrisk avatar rmhrisk commented on June 20, 2024

Can you explain the approach you would take? In particular for the crypto algorithm implementation itself.

from webcrypto.

LiraNuna avatar LiraNuna commented on June 20, 2024

So far as I understand, webcrypto-core covers most of the input validation and routing to the providers. I already got import/export working easily by creating a new provider.

As for the algorithm itself, I am certain NodeJS already supports AES-KW via crypto.createDecipheriv. I know that the cipher name via OSSL is id-aesXXX-wrap (where XXX is the key size) with IV of A6A6A6A6A6A6A6A6 hex.

I also have the RFC to work through given known test vectors via https://tools.ietf.org/html/rfc3394

You can track my progress with this PR: https://github.com/LiraNuna/webcrypto/pull/1

from webcrypto.

microshine avatar microshine commented on June 20, 2024

@LiraNuna I've updated webcrypto a bit. Please sync you code with the latest version.
You can use wrappedKey test param for AES-KW wrapped key checking (example)

from webcrypto.

microshine avatar microshine commented on June 20, 2024

@LiraNuna If your PR is done, I can accept it and publish new version to npm

from webcrypto.

LiraNuna avatar LiraNuna commented on June 20, 2024

Is that the binary of the 'expected encrypted key'?

from webcrypto.

microshine avatar microshine commented on June 20, 2024

yes

from webcrypto.

LiraNuna avatar LiraNuna commented on June 20, 2024

Just updated PR #5 with 3 of the test vectors from RFC 3394.

from webcrypto.

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.