From 221cb45be80b70a8e4a06ea2918fce098d30a16a Mon Sep 17 00:00:00 2001 From: Ayham Kteash Date: Wed, 10 Jan 2024 11:10:05 +0100 Subject: [PATCH] add: private notations to private values in generec class --- src/type/s2k/generic.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/type/s2k/generic.ts b/src/type/s2k/generic.ts index ff039baa..858969a7 100644 --- a/src/type/s2k/generic.ts +++ b/src/type/s2k/generic.ts @@ -35,10 +35,10 @@ import { UnsupportedError } from '../../packet/packet'; import util from '../../util'; class GenericS2K { - algorithm: number; + private algorithm: number; type: string; - c: number; - salt: Uint8Array | null; + private c: number; + private salt: Uint8Array | null; /** * @param {Object} [config] - Full configuration, defaults to openpgp.config */ @@ -69,7 +69,7 @@ class GenericS2K { } } - getCount() { + private getCount() { // Exponent bias, defined in RFC4880 const expbias = 6;