镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Oct 23, 2020. It is now read-only.
This repository was archived by the owner on Oct 23, 2020. It is now read-only.

RSA needs to distinguish between RSA keys with different OIDs and parameters #17

Open

Description

@tniessen

WebCrypto requires implementations to be able to distinguish between the OIDs rsaEncryption, sha1WithRSAEncryption, sha256WithRSAEncryption, sha384WithRSAEncryption, sha512WithRSAEncryption, id-RSAES-OAEP and id-RSASSA-PSS, and for the last two, we even need access to the ASN.1 parameters.

This is currently not possible using the KeyObject API.

Activity

  1. panva commented on Aug 13, 2019

    @panva
    Member

    Similar for EC and (in the future, not part of webcrypto yet) OKP keys, you'll need the curve name from the key too.

  2. tniessen commented on Aug 13, 2019

    @tniessen
    MemberAuthor

    @panva The curve name would have been part of my original proposal in nodejs/node#26854, I guess we could use a similar pattern for the other OIDs / parameters.

    Another problem is that WebCrypto requires the ability to export keys with a different OID than they were imported with, so we would need to implement some kind of conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    node featureRequires a missing feature in Node.js

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions