@stablelib/chacha20poly1305
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -150,3 +150,3 @@ // Copyright (C) 2016 Dmitry Chestnykh | ||
if (dst.length !== resultLength) { | ||
throw new Error("GCM: incorrect destination length"); | ||
throw new Error("ChaCha20Poly1305: incorrect destination length"); | ||
} | ||
@@ -153,0 +153,0 @@ result = dst; |
@@ -46,3 +46,3 @@ import { AEAD } from "@stablelib/aead"; | ||
clean(): this; | ||
private _authenticate(tagOut, authKey, ciphertext, associatedData?); | ||
private _authenticate; | ||
} |
@@ -19,3 +19,3 @@ "use strict"; | ||
*/ | ||
var ChaCha20Poly1305 = (function () { | ||
var ChaCha20Poly1305 = /** @class */ (function () { | ||
/** | ||
@@ -126,3 +126,3 @@ * Creates a new instance with the given 32-byte key. | ||
if (dst.length !== resultLength) { | ||
throw new Error("GCM: incorrect destination length"); | ||
throw new Error("ChaCha20Poly1305: incorrect destination length"); | ||
} | ||
@@ -129,0 +129,0 @@ result = dst; |
{ | ||
"name": "@stablelib/chacha20poly1305", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "ChaCha20-Poly1305 AEAD (RFC 7539)", | ||
@@ -28,3 +28,4 @@ "main": "./lib/chacha20poly1305.js", | ||
"@stablelib/hex": "^0.5.0" | ||
} | ||
}, | ||
"gitHead": "dd08cfe89bc89b4106f0c9705db6281dd7357b26" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1627
103558