@@ -22,7 +22,6 @@ import { type CHash, createHasher } from "./hash.ts";
22
22
* Round constants:
23
23
* First 32 bits of fractional parts of the cube roots of the first 64 primes 2..311)
24
24
*/
25
- // prettier-ignore
26
25
const SHA256_K = /* @__PURE__ */ Uint32Array . from ( [
27
26
0x428a2f98 ,
28
27
0x71374491 ,
@@ -122,7 +121,6 @@ abstract class SHA2_32B<T extends SHA2_32B<T>> extends HashMD<T> {
122
121
const { A, B, C, D, E, F, G, H } = this ;
123
122
return [ A , B , C , D , E , F , G , H ] ;
124
123
}
125
- // prettier-ignore
126
124
protected set (
127
125
A : number ,
128
126
B : number ,
@@ -211,7 +209,6 @@ export class _SHA256 extends SHA2_32B<_SHA256> {
211
209
212
210
// Round contants
213
211
// First 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409
214
- // prettier-ignore
215
212
const K512 = /* @__PURE__ */ ( ( ) =>
216
213
u64 . split ( [
217
214
"0x428a2f98d728ae22" ,
@@ -327,7 +324,6 @@ abstract class SHA2_64B<T extends SHA2_64B<T>> extends HashMD<T> {
327
324
constructor ( outputLen : number ) {
328
325
super ( 128 , outputLen , 16 , false ) ;
329
326
}
330
- // prettier-ignore
331
327
protected get ( ) : [
332
328
number ,
333
329
number ,
@@ -350,7 +346,6 @@ abstract class SHA2_64B<T extends SHA2_64B<T>> extends HashMD<T> {
350
346
this ;
351
347
return [ Ah , Al , Bh , Bl , Ch , Cl , Dh , Dl , Eh , El , Fh , Fl , Gh , Gl , Hh , Hl ] ;
352
348
}
353
- // prettier-ignore
354
349
protected set (
355
350
Ah : number ,
356
351
Al : number ,
@@ -432,7 +427,6 @@ abstract class SHA2_64B<T extends SHA2_64B<T>> extends HashMD<T> {
432
427
const CHIh = ( Eh & Fh ) ^ ( ~ Eh & Gh ) ;
433
428
const CHIl = ( El & Fl ) ^ ( ~ El & Gl ) ;
434
429
// T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i]
435
- // prettier-ignore
436
430
const T1ll = u64 . add5L ( Hl , sigma1l , CHIl , SHA512_Kl [ i ] , SHA512_W_L [ i ] ) ;
437
431
const T1h = u64 . add5H (
438
432
T1ll ,
0 commit comments