Namespace curve25519/shared. Curve25519Shared
source · [−]Functions
sourceexportKey
exportKey
source(format: KeyFormat, key: Curve25519CryptoKeys): Promise<JsonWebKey | ArrayBuffer>
(format: KeyFormat, key: Curve25519CryptoKeys): Promise<JsonWebKey | ArrayBuffer>
sourcegenerateKey
generateKey
source<T>(algorithm: EnforcedCurve25519KeyGenParams, extractable?: boolean, keyUsages?: KeyUsage[]): Promise<T>
<T>(algorithm: EnforcedCurve25519KeyGenParams, extractable?: boolean, keyUsages?: KeyUsage[]): Promise<T>
Type Parameters
T extends Curve25519CryptoKeyPairs
Parameters
algorithm: EnforcedCurve25519KeyGenParams
extractable: boolean = true
Optional keyUsages: KeyUsage[]
Returns Promise<T>
sourceimportKey
importKey
source<T>(format: KeyFormat, key: BufferSource | JsonWebKey, algorithm: EnforcedCurve25519KeyImportParams, extractable?: boolean, keyUsages?: KeyUsage[]): Promise<T>
<T>(format: KeyFormat, key: BufferSource | JsonWebKey, algorithm: EnforcedCurve25519KeyImportParams, extractable?: boolean, keyUsages?: KeyUsage[]): Promise<T>
Type Parameters
T extends Curve25519CryptoKeys
Parameters
format: KeyFormat
key: BufferSource | JsonWebKey
algorithm: EnforcedCurve25519KeyImportParams
extractable: boolean = true
Optional keyUsages: KeyUsage[]