Skip to content

✨ support for crypto.hkdf() / crypto.hkdfSync() #783

@shashibheemanapally

Description

@shashibheemanapally

What feature or enhancement are you suggesting?

Hello, I would like to request support for HKDF operations. Thanks!

Pros:
HKDF is the recommended KDF for deriving symmetric keys from ECDH shared secrets

Also attaching open issue link for ECDH feature request

What Platforms whould this feature/enhancement affect?

iOS, Android

Alternatives/Workarounds

I am currently using all Javascript library noble-hashes to derive symmetric keys for given ECDH shared secret.

import { hkdf } from "@noble/hashes/hkdf.js";
import { sha256 } from "@noble/hashes/sha2.js";

...
const aliceDerivedAesKey = hkdf(sha256, aliceSharedSecret, salt, info, 32);
...

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions