verify
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: KeyLike, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>): Boolean(source)
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: VerifyKeyObjectInput, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>): Boolean(source)
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: VerifyPublicKeyInput, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>): Boolean(source)
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: VerifyJsonWebKeyInput, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>): Boolean(source)
Verifies the given signature for data
using the given key and algorithm. If algorithm
is null
or undefined
, then the algorithm is dependent upon the key type (especially Ed25519 and Ed448).
If key
is not a KeyObject
, this function behaves as if key
had been passed to {@link createPublicKey}. If it is an object, the following additional properties can be passed:
The signature
argument is the previously calculated signature for the data
.
Because public keys can be derived from private keys, a private key or a public key may be passed for key
.
If the callback
function is provided this function uses libuv's threadpool.
Since
v12.0.0
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: KeyLike, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, callback: (@R|kotlin/ParameterName|(name = String(error)) ERROR CLASS: Symbol not found for js.errors.JsError??, result: Boolean) -> Unit)(source)
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: VerifyKeyObjectInput, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, callback: (@R|kotlin/ParameterName|(name = String(error)) ERROR CLASS: Symbol not found for js.errors.JsError??, result: Boolean) -> Unit)(source)
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: VerifyPublicKeyInput, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, callback: (@R|kotlin/ParameterName|(name = String(error)) ERROR CLASS: Symbol not found for js.errors.JsError??, result: Boolean) -> Unit)(source)
external fun verify(algorithm: String?, data: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, key: VerifyJsonWebKeyInput, signature: ERROR CLASS: Symbol not found for js.buffer.ArrayBufferView<*>, callback: (@R|kotlin/ParameterName|(name = String(error)) ERROR CLASS: Symbol not found for js.errors.JsError??, result: Boolean) -> Unit)(source)