From 8ae339a08435ffb0a3c46aa88ada7af314ccbc25 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Tue, 22 Aug 2023 16:25:47 +0800 Subject: [PATCH] fix: length typo Signed-off-by: guoguangwu --- security/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/vault.go b/security/vault.go index d34881b7..229d327a 100644 --- a/security/vault.go +++ b/security/vault.go @@ -86,7 +86,7 @@ func NewVault(ca CAAPI, storer VaultStorer) (*Vault, error) { return nil, err } if len(data) < keySize { - return nil, errors.New("key lenght should be longer than 32") + return nil, errors.New("key length should be longer than 32") } h := sha256.New() _, _ = h.Write(data)