]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost3410/vko2001.go
Make Public/PrivateKey structure elements public for convenience
[gogost.git] / src / cypherpunks.ru / gogost / gost3410 / vko2001.go
index e7482bb6d23945705d14154a4842c989d874b791..67e94d5307adbcf77dd1397d53de6cf4520ba685 100644 (file)
@@ -27,7 +27,7 @@ import (
 // RFC 4357 VKO GOST R 34.10-2001 key agreement function.
 // UKM is user keying material, also called VKO-factor.
 func (prv *PrivateKey) KEK2001(pub *PublicKey, ukm *big.Int) ([]byte, error) {
-       if prv.mode != Mode2001 {
+       if prv.Mode != Mode2001 {
                return nil, errors.New("KEK2001 can not be used in Mode2012")
        }
        key, err := prv.KEK(pub, ukm)