mirror of
https://github.com/danbulant/jose
synced 2026-05-25 04:51:47 +00:00
14 lines
363 B
TypeScript
14 lines
363 B
TypeScript
import type { KeyObject } from 'crypto'
|
|
import type { KeyLike } from '../types.d'
|
|
export declare function generateSecret(alg: string): Promise<KeyLike>
|
|
interface Options {
|
|
crv?: string
|
|
}
|
|
export declare function generateKeyPair(
|
|
alg: string,
|
|
options?: Options,
|
|
): Promise<{
|
|
privateKey: CryptoKey | KeyObject
|
|
publicKey: CryptoKey | KeyObject
|
|
}>
|
|
export {}
|