From 0254e856663c2b473080adc09af3bb0c7a24c068 Mon Sep 17 00:00:00 2001 From: Ali Sabbagh Date: Fri, 13 Oct 2023 20:38:47 +0200 Subject: [PATCH] typo in error message when decoding epochID --- rolling-shutter/shcryptowasm/shutter_crypto_wasm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rolling-shutter/shcryptowasm/shutter_crypto_wasm.go b/rolling-shutter/shcryptowasm/shutter_crypto_wasm.go index 1b404f6c..f73e7ca0 100644 --- a/rolling-shutter/shcryptowasm/shutter_crypto_wasm.go +++ b/rolling-shutter/shcryptowasm/shutter_crypto_wasm.go @@ -147,8 +147,8 @@ func decodeEpochIDArgBytes(arg js.Value) ([]byte, error) { if err != nil { return nil, err } - if len(b) != 32 { - return nil, fmt.Errorf("sigma must be 32 bytes, got %d", len(b)) + if len(b) != shcrypto.BlockSize { + return nil, fmt.Errorf("epochID must be %d bytes, got %d", shcrypto.BlockSize, len(b)) } return b, nil }