Skip to content

Commit 4e3f578

Browse files
committed
chacha20poly1305: remove prettier-ignore.
1 parent eac9eac commit 4e3f578

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

packages/chacha20poly1305/src/chacha/_poly1305.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
* Based on Public Domain [poly1305-donna](https://github.com/floodyberry/poly1305-donna).
2727
* @module
2828
*/
29-
// prettier-ignore
3029
import {
3130
abytes,
3231
aexists,

packages/chacha20poly1305/src/chacha/_polyval.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ export class GHASH implements IHash2 {
129129
for (let w = 0; w < windows; w++) {
130130
// truth table: 00, 01, 10, 11
131131
for (let byte = 0; byte < windowSize; byte++) {
132-
// prettier-ignore
133132
let s0 = 0, s1 = 0, s2 = 0, s3 = 0;
134133
for (let j = 0; j < W; j++) {
135134
const bit = (byte >>> (W - j - 1)) & 1;
@@ -145,7 +144,6 @@ export class GHASH implements IHash2 {
145144
protected _updateBlock(s0: number, s1: number, s2: number, s3: number): void {
146145
(s0 ^= this.s0), (s1 ^= this.s1), (s2 ^= this.s2), (s3 ^= this.s3);
147146
const { W, t, windowSize } = this;
148-
// prettier-ignore
149147
let o0 = 0, o1 = 0, o2 = 0, o3 = 0;
150148
const mask = (1 << W) - 1; // 2**W will kill performance.
151149
let w = 0;

packages/chacha20poly1305/src/chacha/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export type IHash = {
7878
};
7979

8080
/** Generic type encompassing 8/16/32-byte arrays - but not 64-byte. */
81-
// prettier-ignore
8281
export type TypedArray =
8382
| Int8Array
8483
| Uint8ClampedArray

0 commit comments

Comments
 (0)