diff --git a/shadowaead_2022/method.go b/shadowaead_2022/method.go index 5e571e6..7e6bfcb 100644 --- a/shadowaead_2022/method.go +++ b/shadowaead_2022/method.go @@ -79,7 +79,7 @@ func NewMethod(ctx context.Context, methodName string, options C.MethodOptions) m.constructor = aeadCipher(aes.NewCipher, cipher.NewGCM) m.blockConstructor = aes.NewCipher case "2022-blake3-chacha20-poly1305": - if len(options.KeyList) > 1 { + if len(m.pskList) > 1 { return nil, ErrNoEIH } m.keySaltLength = 32