Liking cljdoc? Tell your friends :D

web.crypto.AesGcmParams

The AesGcmParams dictionary of the Web Crypto API represents object that should be passed as the algorithm parameter into SubtleCrypto.decrypt(), SubtleCrypto.wrapKey(), or SubtleCrypto.unwrapKey(), using the AES-GCM algorithm.

The AesGcmParams dictionary of the Web Crypto API represents
object that should be passed as the algorithm parameter into
`SubtleCrypto.decrypt()`, `SubtleCrypto.wrapKey()`, or `SubtleCrypto.unwrapKey()`,
using the AES-GCM algorithm.
raw docstring

additional-datacljs

(additional-data this)

Property.

A BufferSource. This contains additional data that will not encrypted but will be authenticated along with the encrypted If additionalData is given here then the same data must be given the corresponding call to decrypt(): if the data given to the call does not match the original data, the decryption will throw exception. This gives you a way to authenticate associated data having to encrypt it. The bit length of additionalData must be ≤ 264-1. The additionalData property is optional and may be omitted without the security of the encryption operation.

Property.

A BufferSource. This contains additional data that will not
encrypted but will be authenticated along with the encrypted
If additionalData is given here then the same data must be given
the corresponding call to decrypt(): if the data given to the
call does not match the original data, the decryption will throw
exception. This gives you a way to authenticate associated data
having to encrypt it.
The bit length of additionalData must be ≤ 264-1.
The additionalData property is optional and may be omitted without
the security of the encryption operation.
sourceraw docstring

ivcljs

(iv this)

Property.

A BufferSource — the initialization vector. This must be unique every encryption operation carried out with a given key. Put way: never reuse an IV with the same key. The AES-GCM specification that the IV should be 96 bits long, and typically contains bits a random number generator. Section 8.2 of the specification outlines for constructing IVs. Note that the IV does not have to be secret, unique: so it is OK, for example, to transmit it in the clear the encrypted message.

Property.

A BufferSource — the initialization vector. This must be unique
every encryption operation carried out with a given key. Put
way: never reuse an IV with the same key. The AES-GCM specification
that the IV should be 96 bits long, and typically contains bits
a random number generator. Section 8.2 of the specification outlines
for constructing IVs. Note that the IV does not have to be secret,
unique: so it is OK, for example, to transmit it in the clear
the encrypted message.
sourceraw docstring

namecljs

(name this)

Property.

A DOMString. This should be set to AES-GCM.

Property.

A DOMString. This should be set to AES-GCM.
sourceraw docstring

set-additional-data!cljs

(set-additional-data! this val)

Property.

A BufferSource. This contains additional data that will not encrypted but will be authenticated along with the encrypted If additionalData is given here then the same data must be given the corresponding call to decrypt(): if the data given to the call does not match the original data, the decryption will throw exception. This gives you a way to authenticate associated data having to encrypt it. The bit length of additionalData must be ≤ 264-1. The additionalData property is optional and may be omitted without the security of the encryption operation.

Property.

A BufferSource. This contains additional data that will not
encrypted but will be authenticated along with the encrypted
If additionalData is given here then the same data must be given
the corresponding call to decrypt(): if the data given to the
call does not match the original data, the decryption will throw
exception. This gives you a way to authenticate associated data
having to encrypt it.
The bit length of additionalData must be ≤ 264-1.
The additionalData property is optional and may be omitted without
the security of the encryption operation.
sourceraw docstring

set-iv!cljs

(set-iv! this val)

Property.

A BufferSource — the initialization vector. This must be unique every encryption operation carried out with a given key. Put way: never reuse an IV with the same key. The AES-GCM specification that the IV should be 96 bits long, and typically contains bits a random number generator. Section 8.2 of the specification outlines for constructing IVs. Note that the IV does not have to be secret, unique: so it is OK, for example, to transmit it in the clear the encrypted message.

Property.

A BufferSource — the initialization vector. This must be unique
every encryption operation carried out with a given key. Put
way: never reuse an IV with the same key. The AES-GCM specification
that the IV should be 96 bits long, and typically contains bits
a random number generator. Section 8.2 of the specification outlines
for constructing IVs. Note that the IV does not have to be secret,
unique: so it is OK, for example, to transmit it in the clear
the encrypted message.
sourceraw docstring

set-name!cljs

(set-name! this val)

Property.

A DOMString. This should be set to AES-GCM.

Property.

A DOMString. This should be set to AES-GCM.
sourceraw docstring

set-tag-length!cljs

(set-tag-length! this val)

Property.

A Number. This determines the size in bits of the authentication generated in the encryption operation and used for authentication the corresponding decryption. According to the Web Crypto specification this must have one the following values: 32, 64, 96, 104, 112, 120, or 128. The specification recommends that it should be 96, 104, 112, 120 128, although 32 or 64 bits may be acceptable in some applications: C of the specification provides additional guidance here. tagLength is optional and defaults to 128 if it is not specified.

Property.

A Number. This determines the size in bits of the authentication
generated in the encryption operation and used for authentication
the corresponding decryption.
According to the Web Crypto specification this must have one
the following values: 32, 64, 96, 104, 112, 120, or 128. The
specification recommends that it should be 96, 104, 112, 120
128, although 32 or 64 bits may be acceptable in some applications:
C of the specification provides additional guidance here.
tagLength is optional and defaults to 128 if it is not specified.
sourceraw docstring

tag-lengthcljs

(tag-length this)

Property.

A Number. This determines the size in bits of the authentication generated in the encryption operation and used for authentication the corresponding decryption. According to the Web Crypto specification this must have one the following values: 32, 64, 96, 104, 112, 120, or 128. The specification recommends that it should be 96, 104, 112, 120 128, although 32 or 64 bits may be acceptable in some applications: C of the specification provides additional guidance here. tagLength is optional and defaults to 128 if it is not specified.

Property.

A Number. This determines the size in bits of the authentication
generated in the encryption operation and used for authentication
the corresponding decryption.
According to the Web Crypto specification this must have one
the following values: 32, 64, 96, 104, 112, 120, or 128. The
specification recommends that it should be 96, 104, 112, 120
128, although 32 or 64 bits may be acceptable in some applications:
C of the specification provides additional guidance here.
tagLength is optional and defaults to 128 if it is not specified.
sourceraw docstring

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

× close