]> Cypherpunks.ru repositories - gogost.git/blobdiff - mgm/mul128.go
Raise copyright years in advance
[gogost.git] / mgm / mul128.go
index 10511a7dbbe9ace64443236fd38d8c2978f27b09..8119803e8a79369cd71f290b8533741fcef80105 100644 (file)
@@ -1,5 +1,5 @@
 // GoGOST -- Pure Go GOST cryptographic functions library
-// Copyright (C) 2015-2023 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2015-2024 Sergey Matveev <stargrave@stargrave.org>
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -45,7 +45,8 @@ func (mul *mul128) Mul(x, y []byte) []byte {
        x0 := binary.BigEndian.Uint64(x[8:])
        y1 := binary.BigEndian.Uint64(y[:8])
        y0 := binary.BigEndian.Uint64(y[8:])
-       t, x0, x1, z0, z1 := gf128half(64, y0, x0, x1, 0, 0)
+       var t uint64
+       _, x0, x1, z0, z1 := gf128half(64, y0, x0, x1, 0, 0)
        t, x0, x1, z0, z1 = gf128half(63, y1, x0, x1, z0, z1)
        if t&1 > 0 {
                z0, z1 = z0^x0, z1^x1