/**
- * The Algorithm object is a dictionary object [WebIDL] which is used to
- * specify an algorithm and any additional parameters required to fully
+ * The Algorithm object is a dictionary object [WebIDL] which is used to
+ * specify an algorithm and any additional parameters required to fully
* specify the desired operation.
*
* dictionary Algorithm {
@@ -867,7 +867,7 @@ function call(callback) {
*/
/**
- * The KeyAlgorithm interface represents information about the contents of a
+ * The KeyAlgorithm interface represents information about the contents of a
* given Key object.
*
* interface KeyAlgorithm {
@@ -875,14 +875,14 @@ function call(callback) {
* };
*
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#key-algorithm-interface}
- * @class KeyAlgorithm
+ * @class KeyAlgorithm
* @param {DOMString} name The name of the algorithm used to generate the Key
*/
/**
- * The type of a key. The recognized key type values are "public", "private"
- * and "secret". Opaque keying material, including that used for symmetric
- * algorithms, is represented by "secret", while keys used as part of asymmetric
+ * The type of a key. The recognized key type values are "public", "private"
+ * and "secret". Opaque keying material, including that used for symmetric
+ * algorithms, is represented by "secret", while keys used as part of asymmetric
* algorithms composed of public/private keypairs will be either "public" or "private".
*
* typedef DOMString KeyType;
@@ -892,8 +892,8 @@ function call(callback) {
*/
/**
- * Sequence of operation type that may be performed using a key. The recognized
- * key usage values are "encrypt", "decrypt", "sign", "verify", "deriveKey",
+ * Sequence of operation type that may be performed using a key. The recognized
+ * key usage values are "encrypt", "decrypt", "sign", "verify", "deriveKey",
* "deriveBits", "wrapKey" and "unwrapKey".
*
* typedef DOMString[] KeyUsages;
@@ -903,19 +903,19 @@ function call(callback) {
*/
/**
- * The Key object represents an opaque reference to keying material that is
+ * The Key object represents an opaque reference to keying material that is
* managed by the user agent.
- * This specification provides a uniform interface for many different kinds of
- * keying material managed by the user agent. This may include keys that have
- * been generated by the user agent, derived from other keys by the user agent,
- * imported to the user agent through user actions or using this API,
- * pre-provisioned within software or hardware to which the user agent has
- * access or made available to the user agent in other ways. The term key refers
- * broadly to any keying material including actual keys for cryptographic
+ * This specification provides a uniform interface for many different kinds of
+ * keying material managed by the user agent. This may include keys that have
+ * been generated by the user agent, derived from other keys by the user agent,
+ * imported to the user agent through user actions or using this API,
+ * pre-provisioned within software or hardware to which the user agent has
+ * access or made available to the user agent in other ways. The term key refers
+ * broadly to any keying material including actual keys for cryptographic
* operations and secret values obtained within key derivation or exchange operations.
- * The Key object is not required to directly interface with the underlying key
- * storage mechanism, and may instead simply be a reference for the user agent
- * to understand how to obtain the keying material when needed, eg. when performing
+ * The Key object is not required to directly interface with the underlying key
+ * storage mechanism, and may instead simply be a reference for the user agent
+ * to understand how to obtain the keying material when needed, eg. when performing
* a cryptographic operation.
*
* interface Key {
@@ -923,14 +923,14 @@ function call(callback) {
* readonly attribute boolean extractable;
* readonly attribute KeyAlgorithm algorithm;
* readonly attribute KeyUsages usages;
- * };
+ * };
*
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#key-interface}
* @class Key
* @param {KeyType} type The type of a key. The recognized key type values are "public", "private" and "secret".
* @param {boolean} extractable Whether or not the raw keying material may be exported by the application.
* @param {KeyAlgorithm} algorithm The Algorithm used to generate the key.
- * @param {KeyUsages} usages Key usage array: type of operation that may be performed using a key.
+ * @param {KeyUsages} usages Key usage array: type of operation that may be performed using a key.
*/
/**
@@ -939,7 +939,7 @@ function call(callback) {
* interface KeyPair {
* readonly attribute Key publicKey;
* readonly attribute Key privateKey;
- * };
+ * };
*
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#keypair}
* @class KeyPair
@@ -963,7 +963,7 @@ function call(callback) {
*/
/**
- * Binary data
+ * Binary data
*
* typedef (ArrayBuffer or ArrayBufferView) CryptoOperationData;
*
@@ -982,9 +982,9 @@ var CryptoOperationData = ArrayBuffer;
/**
* The gostCrypto provide general purpose cryptographic functionality for
- * GOST standards including a cryptographically strong pseudo-random number
+ * GOST standards including a cryptographically strong pseudo-random number
* generator seeded with truly random values.
- *
+ *
* @namespace gostCrypto
*/
var gostCrypto = {};
@@ -992,17 +992,17 @@ var gostCrypto = {};
/**
* The SubtleCrypto class provides low-level cryptographic primitives and algorithms.
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#subtlecrypto-interface}
- *
+ *
* @class SubtleCrypto
*/ //
function SubtleCrypto() {
}
/**
- * The encrypt method returns a new Promise object that will encrypt data
+ * The encrypt method returns a new Promise object that will encrypt data
* using the specified algorithm identifier with the supplied Key.
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-encrypt}
- *
+ *
* Supported algorithm names:
*
* - GOST 28147-ECB "prostaya zamena" (ECB) mode (default)
@@ -1016,8 +1016,8 @@ function SubtleCrypto() {
* - GOST R 34.12-CTR "gammirovanie" (counter) mode
* - GOST R 34.12-CBC Cipher-Block-Chaining (CBC) mode
*
- * For more information see {@link GostCipher}
- *
+ * For more information see {@link GostCipher}
+ *
* @memberOf SubtleCrypto
* @method encrypt
* @instance
@@ -1039,10 +1039,10 @@ SubtleCrypto.prototype.encrypt = function (algorithm, key, data) //
/**
- * The decrypt method returns a new Promise object that will decrypt data
- * using the specified algorithm identifier with the supplied Key.
+ * The decrypt method returns a new Promise object that will decrypt data
+ * using the specified algorithm identifier with the supplied Key.
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-decrypt}
- *
+ *
* Supported algorithm names:
*
* - GOST 28147-ECB "prostaya zamena" (ECB) mode (default)
@@ -1056,8 +1056,8 @@ SubtleCrypto.prototype.encrypt = function (algorithm, key, data) // GOST R 34.12-CTR "gammirovanie" (counter) mode
* - GOST R 34.12-CBC Cipher-Block-Chaining (CBC) mode
*
- * For additional modes see {@link GostCipher}
- *
+ * For additional modes see {@link GostCipher}
+ *
* @memberOf SubtleCrypto
* @method decrypt
* @instance
@@ -1079,10 +1079,10 @@ SubtleCrypto.prototype.decrypt = function (algorithm, key, data) //
/**
- * The sign method returns a new Promise object that will sign data using
+ * The sign method returns a new Promise object that will sign data using
* the specified algorithm identifier with the supplied Key.
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-sign}
- *
+ *
* Supported algorithm names:
*
* - GOST R 34.10-94 GOST Signature
@@ -1096,12 +1096,12 @@ SubtleCrypto.prototype.decrypt = function (algorithm, key, data) // SHA-HMAC HMAC base on SHA
*
* For additional modes see {@link GostSign}, {@link GostDigest} and {@link GostCipher}
- *
+ *
* @memberOf SubtleCrypto
* @method sign
* @instance
* @param {AlgorithmIdentifier} algorithm Algorithm identifier
- * @param {Key} key Key object
+ * @param {Key} key Key object
* @param {CryptoOperationData} data Operation data
* @returns {Promise} Promise that resolves with {@link CryptoOperationData}
*/
@@ -1124,10 +1124,10 @@ SubtleCrypto.prototype.sign = function (algorithm, key, data) //
/**
- * The verify method returns a new Promise object that will verify data
+ * The verify method returns a new Promise object that will verify data
* using the specified algorithm identifier with the supplied Key.
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-verify}
- *
+ *
* Supported algorithm names:
*
* - GOST R 34.10-94 GOST Signature
@@ -1141,7 +1141,7 @@ SubtleCrypto.prototype.sign = function (algorithm, key, data) // SHA-HMAC HMAC base on SHA
*
* For additional modes see {@link GostSign}, {@link GostDigest} and {@link GostCipher}
- *
+ *
* @memberOf SubtleCrypto
* @method verify
* @instance
@@ -1168,10 +1168,10 @@ SubtleCrypto.prototype.verify = function (algorithm, key, signature, data) //
/**
- * The digest method returns a new Promise object that will digest data
- * using the specified algorithm identifier.
+ * The digest method returns a new Promise object that will digest data
+ * using the specified algorithm identifier.
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-digest}
- *
+ *
* Supported algorithm names:
*
* - GOST R 34.11-94 Old-Style GOST Hash
@@ -1179,7 +1179,7 @@ SubtleCrypto.prototype.verify = function (algorithm, key, signature, data) // SHA SHA Hash
*
* For additional modes see {@link GostDigest}
- *
+ *
* @memberOf SubtleCrypto
* @method digest
* @instance
@@ -1201,10 +1201,10 @@ SubtleCrypto.prototype.digest = function (algorithm, data) //
- *
+ *
* Supported algorithm names:
*
* - GOST R 34.10 ECGOST Key Pairs
@@ -1216,7 +1216,7 @@ SubtleCrypto.prototype.digest = function (algorithm, data) //
* For additional modes see {@link GostSign}, {@link GostDigest} and {@link GostCipher}
* Note: Generation key for GOST R 34.10-94 not supported.
- *
+ *
* @memberOf SubtleCrypto
* @method generateKey
* @instance
@@ -1254,10 +1254,10 @@ SubtleCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages
/**
* The deriveKey method returns a new Promise object that will key(s) using
* the specified algorithm identifier. Key can be used in according with
- * KeyUsage sequence. The recognized key usage values are "encrypt", "decrypt",
+ * KeyUsage sequence. The recognized key usage values are "encrypt", "decrypt",
* "sign", "verify", "deriveKey", "deriveBits", "wrapKey" and "unwrapKey".
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-deriveKey}
- *
+ *
* Supported algorithm names:
*
* - GOST R 34.10-DH ECDH Key Agreement mode
@@ -1269,7 +1269,7 @@ SubtleCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages
* - SHA-PFXKDF PFX Key for Derivation Algorithm
*
* For additional modes see {@link GostSign} and {@link GostDigest}
- *
+ *
* @memberOf SubtleCrypto
* @method deriveKey
* @instance
@@ -1277,7 +1277,7 @@ SubtleCrypto.prototype.generateKey = function (algorithm, extractable, keyUsages
* @param {Key} baseKey Derivation key object
* @param {AlgorithmIdentifier} derivedKeyType Derived key algorithm identifier
* @param {boolean} extractable Whether or not the raw keying material may be exported by the application
- * @param {KeyUsages} keyUsages Key usage array: type of operation that may be performed using a key
+ * @param {KeyUsages} keyUsages Key usage array: type of operation that may be performed using a key
* @returns {Promise} Promise that resolves with {@link Key}
*/
SubtleCrypto.prototype.deriveKey = function (algorithm, baseKey,
@@ -1302,10 +1302,10 @@ SubtleCrypto.prototype.deriveKey = function (algorithm, baseKey,
}; //
/**
- * The deriveBits method returns length bits on baseKey using the
- * specified algorithm identifier.
+ * The deriveBits method returns length bits on baseKey using the
+ * specified algorithm identifier.
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-deriveBits}
- *
+ *
* Supported algorithm names:
*
* - GOST R 34.10-DH ECDH Key Agreement mode
@@ -1317,7 +1317,7 @@ SubtleCrypto.prototype.deriveKey = function (algorithm, baseKey,
* - SHA-PFXKDF PFX Key for Derivation Algorithm
*
* For additional modes see {@link GostSign} and {@link GostDigest}
- *
+ *
* @memberOf SubtleCrypto
* @method deriveBits
* @instance
@@ -1342,7 +1342,7 @@ SubtleCrypto.prototype.deriveBits = function (algorithm, baseKey, length) //
* Parameter keyData contains data in defined format.
* The suppored key format values are:
@@ -1352,7 +1352,7 @@ SubtleCrypto.prototype.deriveBits = function (algorithm, baseKey, length) // 'spki' - The DER encoding of the SubjectPublicKeyInfo structure from RFC 5280.
*
* WebCrypto API reference {@link http://www.w3.org/TR/WebCryptoAPI/#SubtleCrypto-method-importKey}
- *
+ *
* Supported algorithm names:
*
* - GOST R 34.10-94 GOST Private and Public keys
@@ -1364,7 +1364,7 @@ SubtleCrypto.prototype.deriveBits = function (algorithm, baseKey, length) // GOST R 34.11-KDF Key for Derivation Algorithm
*
* For additional modes see {@link GostSign}, {@link GostDigest} and {@link GostCipher}
- *
+ *
* @memberOf SubtleCrypto
* @method importKey
* @instance
@@ -1455,7 +1455,7 @@ SubtleCrypto.prototype.importKey = function (format, keyData, algorithm, extract
* 'spki' - The DER encoding of the SubjectPublicKeyInfo structure from RFC 5280.
*