We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbf929 commit 07e5a59Copy full SHA for 07e5a59
types/aes-js/aes-js-tests.ts
@@ -8,3 +8,6 @@ const ecb = new aesjs.ModeOfOperation.ecb(key);
8
ecb.decrypt(ecb.encrypt(data));
9
10
const hex: string = aesjs.utils.hex.fromBytes(data);
11
+
12
+const ctr = new aesjs.ModeOfOperation.ctr(key, new aesjs.Counter([]));
13
+ctr.encrypt(data);
types/aes-js/index.d.ts
@@ -19,7 +19,7 @@ export class AES {
19
* @param initialValue The Counter initial value.
20
*/
21
export class Counter {
22
- constructor(initialValue: number)
+ constructor(initialValue: number | ByteSource)
23
setValue(value: number): void;
24
setBytes(bytes: ByteSource): void;
25
increment(): void;
0 commit comments