Skip to content

Commit 25a34f0

Browse files
author
Felix Robles
committed
fix lint
1 parent db137de commit 25a34f0

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/cryptography/abstract/HMAC.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Digest } from "./Digest";
1+
import { Digest } from "./Digest"
22
/**
33
* A HMAC ( commonly referred to as a Hash ) (hash-based message authentication
44
* code) is a type of message authentication code (MAC) that uses a
@@ -13,12 +13,12 @@ import { Digest } from "./Digest";
1313
* will vary based on the implementing class.
1414
*/
1515
export abstract class HMAC extends Digest {
16-
/**
17-
* Create a new HMAC Encrypter.
18-
*
19-
* @param secretKey - The shared secret to use for encryption.
20-
*/
21-
constructor(protected secretKey: Buffer) {
22-
super()
23-
}
16+
/**
17+
* Create a new HMAC Encrypter.
18+
*
19+
* @param secretKey - The shared secret to use for encryption.
20+
*/
21+
constructor(protected secretKey: Buffer) {
22+
super()
23+
}
2424
}

src/cryptography/drivers/node/SHA1HMAC.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import { createHmac } from "crypto"
99
* on the build flags of the underlying runtime.
1010
*/
1111
export class SHA1HMAC extends HMAC {
12-
public async calculate(input: Buffer): Promise<Buffer> {
13-
let hmacBuilder = createHmac("sha1", this.secretKey)
14-
hmacBuilder.update(input)
12+
public async calculate(input: Buffer): Promise<Buffer> {
13+
let hmacBuilder = createHmac("sha1", this.secretKey)
14+
hmacBuilder.update(input)
1515

16-
return hmacBuilder.digest()
17-
}
16+
return hmacBuilder.digest()
17+
}
1818
}

0 commit comments

Comments
 (0)