diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-22 20:36:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 20:36:06 +0200 |
commit | 9b20cfbee8d932c2f232f6bad911fe65c8257adc (patch) | |
tree | 5974a4ecd44c224e252a28d18639f00eedb8bc33 /std/hash | |
parent | d592c128cf42852d2ccffc45574761fd78de8fa7 (diff) |
upgrade: deno_doc, deno_lint, dprint, swc (#8077)
- deno_doc 0.1.13
- deno_lint 0.2.5
- dprint-plugin-typescript 0.32.6
- swc_bundler 0.12.0
- swc_ecmascript 0.11.1
Diffstat (limited to 'std/hash')
-rw-r--r-- | std/hash/_sha3/sha3.ts | 4 | ||||
-rw-r--r-- | std/hash/sha3_test.ts | 13 |
2 files changed, 17 insertions, 0 deletions
diff --git a/std/hash/_sha3/sha3.ts b/std/hash/_sha3/sha3.ts index 05b9d82e3..4aa50b900 100644 --- a/std/hash/_sha3/sha3.ts +++ b/std/hash/_sha3/sha3.ts @@ -4,6 +4,7 @@ import { Sponge } from "./sponge.ts"; import { keccakf } from "./keccakf.ts"; /** Sha3-224 hash */ +// deno-lint-ignore camelcase export class Sha3_224 extends Sponge { constructor() { super({ @@ -16,6 +17,7 @@ export class Sha3_224 extends Sponge { } /** Sha3-256 hash */ +// deno-lint-ignore camelcase export class Sha3_256 extends Sponge { constructor() { super({ @@ -28,6 +30,7 @@ export class Sha3_256 extends Sponge { } /** Sha3-384 hash */ +// deno-lint-ignore camelcase export class Sha3_384 extends Sponge { constructor() { super({ @@ -40,6 +43,7 @@ export class Sha3_384 extends Sponge { } /** Sha3-512 hash */ +// deno-lint-ignore camelcase export class Sha3_512 extends Sponge { constructor() { super({ diff --git a/std/hash/sha3_test.ts b/std/hash/sha3_test.ts index 4ff0ec63e..cfdce0553 100644 --- a/std/hash/sha3_test.ts +++ b/std/hash/sha3_test.ts @@ -6,9 +6,13 @@ import { Keccak256, Keccak384, Keccak512, + // deno-lint-ignore camelcase Sha3_224, + // deno-lint-ignore camelcase Sha3_256, + // deno-lint-ignore camelcase Sha3_384, + // deno-lint-ignore camelcase Sha3_512, Shake128, Shake256, @@ -17,6 +21,7 @@ import * as hex from "../encoding/hex.ts"; const millionAs = "a".repeat(1000000); +// deno-lint-ignore camelcase const testSetSha3_224 = [ ["", "6b4e03423667dbb73b6e15454f0eb1abd4597f9a1b078e3f5b5a6bc7"], ["abc", "e642824c3f8cf24ad09234ee7d3c766fc9a3a5168d0c94ad73b46fdf"], @@ -31,6 +36,7 @@ const testSetSha3_224 = [ [millionAs, "d69335b93325192e516a912e6d19a15cb51c6ed5c15243e7a7fd653c"], ]; +// deno-lint-ignore camelcase const testSetSha3_256 = [ ["", "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a"], ["abc", "3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532"], @@ -48,6 +54,7 @@ const testSetSha3_256 = [ ], ]; +// deno-lint-ignore camelcase const testSetSha3_384 = [ [ "", @@ -71,6 +78,7 @@ const testSetSha3_384 = [ ], ]; +// deno-lint-ignore camelcase const testSetSha3_512 = [ [ "", @@ -165,6 +173,7 @@ const testSetShake128 = [ [millionAs, "9d222c79c4ff9d092cf6ca86143aa411"], ]; +// deno-lint-ignore camelcase const testSetShake128_224 = [ ["", "7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eac"], ["abc", "5881092dd818bf5cf8a3ddb793fbcba74097d5c526a6d35f97b83351"], @@ -175,6 +184,7 @@ const testSetShake128_224 = [ [millionAs, "9d222c79c4ff9d092cf6ca86143aa411e369973808ef97093255826c"], ]; +// deno-lint-ignore camelcase const testSetShake128_2048 = [ [ "", @@ -207,6 +217,7 @@ const testSetShake256 = [ ], ]; +// deno-lint-ignore camelcase const testSetShake256_128 = [ ["", "46b9dd2b0ba88d13233b3feb743eeb24"], ["abc", "483366601360a8771c6863080cc4114d"], @@ -217,6 +228,7 @@ const testSetShake256_128 = [ [millionAs, "3578a7a4ca9137569cdf76ed617d31bb"], ]; +// deno-lint-ignore camelcase const testSetShake256_384 = [ [ "", @@ -236,6 +248,7 @@ const testSetShake256_384 = [ ], ]; +// deno-lint-ignore camelcase const testSetShake256_512 = [ [ "", |