Static ReadonlycreateKeyPair
Static Readonlydecrypt
decrypt: ((key: Uint8Array, data: Uint8Array, nonce: Uint8Array, aad?: Uint8Array) => Uint8Array)
Static ReadonlyecdhGeneratePublicKey
ecdhGeneratePublicKey: (() => {
ecdh: any;
publicKey: Uint8Array;
})
Static ReadonlyecdhGeneratePublicKeyAndSecret
ecdhGeneratePublicKeyAndSecret: ((peerPublicKey: Uint8Array) => {
publicKey: Uint8Array;
sharedSecret: Uint8Array;
})
Static ReadonlyecdhGenerateSecret
ecdhGenerateSecret: ((peerPublicKey: Uint8Array, ecdh: any) => Uint8Array)
Static Readonlyencrypt
encrypt: ((key: Uint8Array, data: Uint8Array, nonce: Uint8Array, aad?: Uint8Array) => Uint8Array)
Staticget
Static ReadonlygetRandom
getRandom: (() => Uint8Array)
Static ReadonlygetRandomBigInt
getRandomBigInt: ((size: number, maxValue?: bigint) => bigint)
Static ReadonlygetRandomBigUInt64
getRandomBigUInt64: (() => bigint)
Static ReadonlygetRandomData
getRandomData: ((length: number) => Uint8Array)
Static ReadonlygetRandomUInt16
getRandomUInt16: (() => number)
Static ReadonlygetRandomUInt32
getRandomUInt32: (() => number)
Static Readonlyhash
hash: ((data: Uint8Array | Uint8Array[]) => Uint8Array)
Static Readonlyhkdf
hkdf: ((secret: Uint8Array, salt: Uint8Array, info: Uint8Array, length?: number) => Promise<Uint8Array>)
Static Readonlyhmac
hmac: ((key: Uint8Array, data: Uint8Array) => Uint8Array)
Static Readonlypbkdf2
pbkdf2: ((secret: Uint8Array, salt: Uint8Array, iteration: number, keyLength: number) => Promise<Uint8Array>)
Static Readonlysign
sign: ((privateKey: JsonWebKey,
data: Uint8Array | Uint8Array[],
dsaEncoding?: CryptoDsaEncoding) => Uint8Array) Static Readonlyverify
verify: ((publicKey: JsonWebKey,
data: Uint8Array,
signature: Uint8Array,
dsaEncoding?: CryptoDsaEncoding) => void)