@@ -20,7 +20,7 @@ export function createSymmetricKeyFromText(key: string, extractable?: boolean, t
2020 * @param {string } text - String value to be encrypted.
2121 * @param {boolean } [urlSafe] - The encrypted values default to `base64` alphabet; this property enables the `base64url` alphabet. Enabled by default.
2222 * @param {TextEncoder } [textEncoder] - If you have an instance of a `TextEncoder`, you can reuse it.
23- * @param {BufferSource } [additionalData] - Additional data to be included in the encryption process ( authentication tag) .
23+ * @param {BufferSource } [additionalData] - Additional data for authentication.
2424 * @returns {Promise<string> } The value encrypted and encoded as a Base64 string.
2525 * @throws {DOMException } Raised when:
2626 * - The provided key is not valid.
@@ -35,7 +35,7 @@ export function encryptTextSymmetrically(key: CryptoKey, text: string, urlSafe?:
3535 * @param {CryptoKey } key - Symmetric key used to encrypt the value.
3636 * @param {string } ciphertext - Encrypted value to be decrypted.
3737 * @param {TextDecoder } [textDecoder] - If you have an instance of a `TextDecoder`, you can reuse it.
38- * @param {BufferSource } [additionalData] - Additional data to be included in the encryption process ( authentication tag) .
38+ * @param {BufferSource } [additionalData] - Additional data for authentication.
3939 * @returns {Promise<string> } The value decrypted.
4040 * @throws {TypeError } Thrown if `ciphertext` is not a string.
4141 * @throws {SyntaxError } Thrown if `ciphertext` contains characters outside Base64 alphabet.
@@ -68,7 +68,7 @@ export class SingleCryptText {
6868 * @async
6969 * @param {string } text - String value to be encrypted.
7070 * @param {boolean } [urlSafe] - The encrypted values default to `base64` alphabet; this property enables the `base64url` alphabet. Enabled by default.
71- * @param {BufferSource } [additionalData] - Additional data to be included in the encryption process ( authentication tag) .
71+ * @param {BufferSource } [additionalData] - Additional data for authentication.
7272 * @returns {Promise<string> } The value encrypted and encoded as a Base64 string.
7373 * @throws {DOMException } Raised when:
7474 * - The provided key is not valid.
@@ -78,7 +78,7 @@ export class SingleCryptText {
7878 /**
7979 * @async
8080 * @param {string } ciphertext - Encrypted value to be decrypted.
81- * @param {BufferSource } [additionalData] - Additional data to be included in the encryption process ( authentication tag) .
81+ * @param {BufferSource } [additionalData] - Additional data for authentication.
8282 * @returns {Promise<string> } The value decrypted.
8383 * @throws {TypeError } Thrown if `ciphertext` is not a string.
8484 * @throws {SyntaxError } Thrown if `ciphertext` contains characters outside Base64 alphabet.
0 commit comments