This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { KeyObject, createECDH, createPrivateKey } from "node:crypto"; | |
| /** | |
| * The size of the private key for P-384 in bytes. | |
| * 384 bits / 8 = 48 bytes | |
| */ | |
| const P384_BYTE_LENGTH = 48; | |
| export interface DeriveEcPrivateKeyArgs { | |
| /** A high entropy, uniformly random secret. Must have at least 384 bits of entropy and must be uniformly random. */ |
OlderNewer