From 4dc1a2ab95d39f556c6f3918e6bc70f5a9f18985 Mon Sep 17 00:00:00 2001 From: Belma Gutlic Date: Mon, 30 Dec 2019 09:59:59 +0100 Subject: [PATCH] Address PR comment, rename constant --- src/handshakes/abstract-handshake.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handshakes/abstract-handshake.ts b/src/handshakes/abstract-handshake.ts index 24d1d6c..486dd96 100644 --- a/src/handshakes/abstract-handshake.ts +++ b/src/handshakes/abstract-handshake.ts @@ -5,7 +5,7 @@ import {bytes, bytes32, uint32} from "../@types/basic"; import {CipherState, MessageBuffer, SymmetricState} from "../@types/handshake"; import {getHkdf} from "../utils"; -const minNonce = 0; +export const MIN_NONCE = 0; export abstract class AbstractHandshake { public encryptWithAd(cs: CipherState, ad: bytes, plaintext: bytes): bytes { @@ -122,7 +122,7 @@ export abstract class AbstractHandshake { } protected initializeKey(k: bytes32): CipherState { - const n = minNonce; + const n = MIN_NONCE; return { k, n }; }