Skip to content

Invalid AES-GCM key length derived from ECDH 256 #14938

Description

@negrel

SubtleCrypto.deriveKey always returns a derived key with length of 256 (unlike chrome and firefox).
I'm deriving ECDH keys to generate a 128 bit AES-GCM key but the function always return a 256 bit key. I suppose this is not standard as firefox and chrome respect the given length.

SubtleCrypto.deriveKey(ecdhKey, privateK, { name: "AES-GCM", length: 128 }, true, keyUsages)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlyext/cryptorelated to the ext/crypto crate

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions