Liking cljdoc? Tell your friends :D

web.crypto.CryptoKey

The CryptoKey interface of the Web Crypto API represents a cryptographic

The CryptoKey interface of the Web Crypto API represents a cryptographic
raw docstring

algorithmcljs

(algorithm this)

Property.

An object describing the algorithm for which this key can be and any associated extra parameters. AesKeyGenParams if the algorithm is any of the AES variants. RsaHashedKeyGenParams if the algorithm is any of the RSA variants. EcKeyGenParams if the algorithm is any of the EC variants. HmacKeyGenParams if the algorithm is HMAC.

Property.

An object describing the algorithm for which this key can be
and any associated extra parameters.
AesKeyGenParams if the algorithm is any of the AES variants.
RsaHashedKeyGenParams if the algorithm is any of the RSA variants.
EcKeyGenParams if the algorithm is any of the EC variants.
HmacKeyGenParams if the algorithm is HMAC.
sourceraw docstring

extractablecljs

(extractable this)

Property.

Boolean indicating whether or not the key may be extracted using or SubtleCrypto.wrapKey(). true: The key may be extracted. false The key may not be extracted. exportKey() or wrapKey() throw an exception if used to extract this key.

Property.

Boolean indicating whether or not the key may be extracted using
or SubtleCrypto.wrapKey().
true: The key may be extracted.
false The key may not be extracted. exportKey() or wrapKey()
throw an exception if used to extract this key.
sourceraw docstring

set-algorithm!cljs

(set-algorithm! this val)

Property.

An object describing the algorithm for which this key can be and any associated extra parameters. AesKeyGenParams if the algorithm is any of the AES variants. RsaHashedKeyGenParams if the algorithm is any of the RSA variants. EcKeyGenParams if the algorithm is any of the EC variants. HmacKeyGenParams if the algorithm is HMAC.

Property.

An object describing the algorithm for which this key can be
and any associated extra parameters.
AesKeyGenParams if the algorithm is any of the AES variants.
RsaHashedKeyGenParams if the algorithm is any of the RSA variants.
EcKeyGenParams if the algorithm is any of the EC variants.
HmacKeyGenParams if the algorithm is HMAC.
sourceraw docstring

set-extractable!cljs

(set-extractable! this val)

Property.

Boolean indicating whether or not the key may be extracted using or SubtleCrypto.wrapKey(). true: The key may be extracted. false The key may not be extracted. exportKey() or wrapKey() throw an exception if used to extract this key.

Property.

Boolean indicating whether or not the key may be extracted using
or SubtleCrypto.wrapKey().
true: The key may be extracted.
false The key may not be extracted. exportKey() or wrapKey()
throw an exception if used to extract this key.
sourceraw docstring

set-type!cljs

(set-type! this val)

Property.

String which may take one of the following values: "secret": This key is a secret key for use with a symmetric "private": This key is the private half of an asymmetric algorithm's "public": This key is the public half of an asymmetric algorithm's

Property.

String which may take one of the following values:
"secret": This key is a secret key for use with a symmetric
"private": This key is the private half of an asymmetric algorithm's
"public": This key is the public half of an asymmetric algorithm's
sourceraw docstring

set-usages!cljs

(set-usages! this val)

Property.

An Array of strings, indicating what can be done with the key. values for array elements are: "encrypt": The key may be used to encrypt messages. "decrypt": The key may be used to decrypt messages. "sign": The key may be used to sign messages. "verify": The key may be used to verify signatures. "deriveKey": The key may be used in deriving a new key. "deriveBits": The key may be used in deriving bits. "wrapKey": The key may be used to wrap a key. "unwrapKey": The key may be used to unwrap a key.

Property.

An Array of strings, indicating what can be done with the key.
values for array elements are:
"encrypt": The key may be used to encrypt messages.
"decrypt": The key may be used to decrypt messages.
"sign": The key may be used to sign messages.
"verify": The key may be used to verify signatures.
"deriveKey": The key may be used in deriving a new key.
"deriveBits": The key may be used in deriving bits.
"wrapKey": The key may be used to wrap a key.
"unwrapKey": The key may be used to unwrap a key.
sourceraw docstring

typecljs

(type this)

Property.

String which may take one of the following values: "secret": This key is a secret key for use with a symmetric "private": This key is the private half of an asymmetric algorithm's "public": This key is the public half of an asymmetric algorithm's

Property.

String which may take one of the following values:
"secret": This key is a secret key for use with a symmetric
"private": This key is the private half of an asymmetric algorithm's
"public": This key is the public half of an asymmetric algorithm's
sourceraw docstring

usagescljs

(usages this)

Property.

An Array of strings, indicating what can be done with the key. values for array elements are: "encrypt": The key may be used to encrypt messages. "decrypt": The key may be used to decrypt messages. "sign": The key may be used to sign messages. "verify": The key may be used to verify signatures. "deriveKey": The key may be used in deriving a new key. "deriveBits": The key may be used in deriving bits. "wrapKey": The key may be used to wrap a key. "unwrapKey": The key may be used to unwrap a key.

Property.

An Array of strings, indicating what can be done with the key.
values for array elements are:
"encrypt": The key may be used to encrypt messages.
"decrypt": The key may be used to decrypt messages.
"sign": The key may be used to sign messages.
"verify": The key may be used to verify signatures.
"deriveKey": The key may be used in deriving a new key.
"deriveBits": The key may be used in deriving bits.
"wrapKey": The key may be used to wrap a key.
"unwrapKey": The key may be used to unwrap a key.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close