Skip to content

Commit 307f494

Browse files
author
Andrej Zavgorodnij
committed
renamed to corestar
1 parent a22a391 commit 307f494

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+263
-261
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: go
33
go:
44
- "1.13.x"
55

6-
go_import_path: go.dedis.ch/kyber/v3
6+
go_import_path: github.com/corestario/kyber/v3
77

88
script: GO111MODULE=on make test
99

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Docs](https://img.shields.io/badge/docs-current-brightgreen.svg)](https://godoc.org/go.dedis.ch/kyber)
1+
[![Docs](https://img.shields.io/badge/docs-current-brightgreen.svg)](https://godoc.org/github.com/corestario/kyber)
22
[![Build Status](https://travis-ci.org/dedis/kyber.svg?branch=master)](https://travis-ci.org/dedis/kyber)
33

44
DEDIS Advanced Crypto Library for Go
@@ -8,13 +8,13 @@ This package provides a toolbox of advanced cryptographic primitives for Go,
88
targeting applications like [Cothority](https://go.dedis.ch/cothority)
99
that need more than straightforward signing and encryption.
1010
Please see the
11-
[Godoc documentation for this package](https://godoc.org/go.dedis.ch/kyber)
11+
[Godoc documentation for this package](https://godoc.org/github.com/corestario/kyber)
1212
for details on the library's purpose and API functionality.
1313

1414
This package includes a mix of variable time and constant time
1515
implementations. If your application is sensitive to timing-based attacks
1616
and you need to constrain Kyber to offering only constant time implementations,
17-
you should use the [suites.RequireConstantTime()](https://godoc.org/go.dedis.ch/kyber/suites#RequireConstantTime)
17+
you should use the [suites.RequireConstantTime()](https://godoc.org/github.com/corestario/kyber/suites#RequireConstantTime)
1818
function in the `init()` function of your `main` package.
1919

2020
Versioning - Development
@@ -41,7 +41,7 @@ The basic crypto library requires only Go and a few
4141
third-party Go-language dependencies that can be installed automatically
4242
as follows:
4343

44-
go get go.dedis.ch/kyber
44+
go get github.com/corestario/kyber
4545

4646
You can recursively test all the packages in the library as follows:
4747

encrypt/ecies/ecies.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"errors"
1010
"hash"
1111

12-
"go.dedis.ch/kyber/v3"
13-
"go.dedis.ch/kyber/v3/util/random"
12+
"github.com/corestario/kyber/v3"
13+
"github.com/corestario/kyber/v3/util/random"
1414
"golang.org/x/crypto/hkdf"
1515
)
1616

encrypt/ecies/ecies_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"testing"
55

66
"github.com/stretchr/testify/require"
7-
"go.dedis.ch/kyber/v3/group/edwards25519"
8-
"go.dedis.ch/kyber/v3/util/random"
7+
"github.com/corestario/kyber/v3/group/edwards25519"
8+
"github.com/corestario/kyber/v3/util/random"
99
)
1010

1111
func TestECIES(t *testing.T) {

examples/dh_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package examples
33
import (
44
"fmt"
55

6-
"go.dedis.ch/kyber/v3/group/edwards25519"
7-
"go.dedis.ch/kyber/v3/xof/blake2xb"
6+
"github.com/corestario/kyber/v3/group/edwards25519"
7+
"github.com/corestario/kyber/v3/xof/blake2xb"
88
)
99

1010
/*

examples/enc_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package examples
33
import (
44
"fmt"
55

6-
"go.dedis.ch/kyber/v3"
7-
"go.dedis.ch/kyber/v3/group/edwards25519"
8-
"go.dedis.ch/kyber/v3/util/random"
6+
"github.com/corestario/kyber/v3"
7+
"github.com/corestario/kyber/v3/group/edwards25519"
8+
"github.com/corestario/kyber/v3/util/random"
99
)
1010

1111
func ElGamalEncrypt(group kyber.Group, pubkey kyber.Point, message []byte) (

examples/sig_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"errors"
88
"fmt"
99

10-
"go.dedis.ch/kyber/v3"
11-
"go.dedis.ch/kyber/v3/group/edwards25519"
10+
"github.com/corestario/kyber/v3"
11+
"github.com/corestario/kyber/v3/group/edwards25519"
1212
)
1313

1414
type Suite interface {

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module go.dedis.ch/kyber/v3
1+
module github.com/corestario/kyber/v3
22

33
require (
44
github.com/stretchr/testify v1.3.0
@@ -8,4 +8,4 @@ require (
88
golang.org/x/sys v0.0.0-20190124100055-b90733256f2e
99
)
1010

11-
go 1.12
11+
go 1.12

go.sum

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
github.com/corestario/kyber/v3 v3.0.4 h1:FDuC/S3STkvwxZ0ooo3gcp56QkUKsN7Jy7cpzBxL+vQ=
2+
github.com/corestario/kyber/v3 v3.0.4/go.mod h1:OzvaEnPvKlyrWyp3kGXlFdp7ap1VC6RkZDTaPikqhsQ=
3+
github.com/corestario/kyber/v3 v3.0.9/go.mod h1:rhNjUUg6ahf8HEg5HUvVBYoWY4boAafX8tYxX+PS+qg=
14
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
25
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
36
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
@@ -7,7 +10,6 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
710
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
811
go.dedis.ch/fixbuf v1.0.3 h1:hGcV9Cd/znUxlusJ64eAlExS+5cJDIyTyEG+otu5wQs=
912
go.dedis.ch/fixbuf v1.0.3/go.mod h1:yzJMt34Wa5xD37V5RTdmp38cz3QhMagdGoem9anUalw=
10-
go.dedis.ch/kyber/v3 v3.0.4 h1:FDuC/S3STkvwxZ0ooo3gcp56QkUKsN7Jy7cpzBxL+vQ=
1113
go.dedis.ch/kyber/v3 v3.0.4/go.mod h1:OzvaEnPvKlyrWyp3kGXlFdp7ap1VC6RkZDTaPikqhsQ=
1214
go.dedis.ch/kyber/v3 v3.0.9/go.mod h1:rhNjUUg6ahf8HEg5HUvVBYoWY4boAafX8tYxX+PS+qg=
1315
go.dedis.ch/protobuf v1.0.5 h1:EbF1czEKICxf5KY8Tm7wMF28hcOQbB6yk4IybIFWTYE=

group/curve25519/basic.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"io"
88
"math/big"
99

10-
"go.dedis.ch/kyber/v3"
11-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
12-
"go.dedis.ch/kyber/v3/group/mod"
10+
"github.com/corestario/kyber/v3"
11+
"github.com/corestario/kyber/v3/group/internal/marshalling"
12+
"github.com/corestario/kyber/v3/group/mod"
1313
)
1414

1515
type basicPoint struct {

group/curve25519/basic_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package curve25519
55
import (
66
"testing"
77

8-
"go.dedis.ch/kyber/v3/util/test"
8+
"github.com/corestario/kyber/v3/util/test"
99
)
1010

1111
// Test the basic implementation of the Ed25519 curve.

group/curve25519/curve.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"fmt"
88
"math/big"
99

10-
"go.dedis.ch/kyber/v3"
11-
"go.dedis.ch/kyber/v3/group/mod"
12-
"go.dedis.ch/kyber/v3/util/random"
10+
"github.com/corestario/kyber/v3"
11+
"github.com/corestario/kyber/v3/group/mod"
12+
"github.com/corestario/kyber/v3/util/random"
1313
)
1414

1515
var zero = big.NewInt(0)

group/curve25519/curve_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package curve25519
33
import (
44
"testing"
55

6-
"go.dedis.ch/kyber/v3/group/edwards25519"
7-
"go.dedis.ch/kyber/v3/util/test"
6+
"github.com/corestario/kyber/v3/group/edwards25519"
7+
"github.com/corestario/kyber/v3/util/test"
88
)
99

1010
var testSuite = NewBlakeSHA256Curve25519(false)

group/curve25519/ext.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"io"
77
"math/big"
88

9-
"go.dedis.ch/kyber/v3"
10-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
11-
"go.dedis.ch/kyber/v3/group/mod"
9+
"github.com/corestario/kyber/v3"
10+
"github.com/corestario/kyber/v3/group/internal/marshalling"
11+
"github.com/corestario/kyber/v3/group/mod"
1212
)
1313

1414
type extPoint struct {

group/curve25519/param.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package curve25519
1515
import (
1616
"math/big"
1717

18-
"go.dedis.ch/kyber/v3/group/mod"
18+
"github.com/corestario/kyber/v3/group/mod"
1919
)
2020

2121
// Param defines a Twisted Edwards curve (TEC).

group/curve25519/proj.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"io"
66
"math/big"
77

8-
"go.dedis.ch/kyber/v3"
9-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
10-
"go.dedis.ch/kyber/v3/group/mod"
8+
"github.com/corestario/kyber/v3"
9+
"github.com/corestario/kyber/v3/group/internal/marshalling"
10+
"github.com/corestario/kyber/v3/group/mod"
1111
)
1212

1313
type projPoint struct {

group/curve25519/suite.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"reflect"
99

1010
"go.dedis.ch/fixbuf"
11-
"go.dedis.ch/kyber/v3"
12-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
13-
"go.dedis.ch/kyber/v3/util/random"
14-
"go.dedis.ch/kyber/v3/xof/blake2xb"
11+
"github.com/corestario/kyber/v3"
12+
"github.com/corestario/kyber/v3/group/internal/marshalling"
13+
"github.com/corestario/kyber/v3/util/random"
14+
"github.com/corestario/kyber/v3/xof/blake2xb"
1515
)
1616

1717
// SuiteCurve25519 is the suite for the 25519 curve
@@ -49,7 +49,7 @@ func (s *SuiteCurve25519) RandomStream() cipher.Stream {
4949
}
5050

5151
// NewBlakeSHA256Curve25519 returns a cipher suite based on package
52-
// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and Curve25519.
52+
// github.com/corestario/kyber/v3/xof/blake2xb, SHA-256, and Curve25519.
5353
//
5454
// If fullGroup is false, then the group is the prime-order subgroup.
5555
//

group/edwards25519/allowvt_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package edwards25519
33
import (
44
"testing"
55

6-
"go.dedis.ch/kyber/v3"
6+
"github.com/corestario/kyber/v3"
77
)
88

99
func TestVartime(t *testing.T) {

group/edwards25519/curve.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"crypto/cipher"
55
"crypto/sha512"
66

7-
"go.dedis.ch/kyber/v3"
8-
"go.dedis.ch/kyber/v3/util/random"
7+
"github.com/corestario/kyber/v3"
8+
"github.com/corestario/kyber/v3/util/random"
99
)
1010

1111
// Curve represents the Ed25519 group.

group/edwards25519/curve_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66

77
"github.com/stretchr/testify/assert"
8-
"go.dedis.ch/kyber/v3/util/test"
8+
"github.com/corestario/kyber/v3/util/test"
99
)
1010

1111
var tSuite = NewBlakeSHA256Ed25519()

group/edwards25519/point.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"errors"
2121
"io"
2222

23-
"go.dedis.ch/kyber/v3"
24-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
23+
"github.com/corestario/kyber/v3"
24+
"github.com/corestario/kyber/v3/group/internal/marshalling"
2525
)
2626

2727
var marshalPointID = [8]byte{'e', 'd', '.', 'p', 'o', 'i', 'n', 't'}

group/edwards25519/scalar.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212
"io"
1313
"math/big"
1414

15-
"go.dedis.ch/kyber/v3"
16-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
17-
"go.dedis.ch/kyber/v3/group/mod"
18-
"go.dedis.ch/kyber/v3/util/random"
15+
"github.com/corestario/kyber/v3"
16+
"github.com/corestario/kyber/v3/group/internal/marshalling"
17+
"github.com/corestario/kyber/v3/group/mod"
18+
"github.com/corestario/kyber/v3/util/random"
1919
)
2020

2121
// This code is a port of the public domain, "ref10" implementation of ed25519

group/edwards25519/scalar_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"testing"
66

77
"github.com/stretchr/testify/require"
8-
"go.dedis.ch/kyber/v3"
9-
"go.dedis.ch/kyber/v3/util/random"
8+
"github.com/corestario/kyber/v3"
9+
"github.com/corestario/kyber/v3/util/random"
1010
)
1111

1212
// SimpleCTScalar implements the scalar operations only using `ScMulAdd` by

group/edwards25519/suite.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"reflect"
99

1010
"go.dedis.ch/fixbuf"
11-
"go.dedis.ch/kyber/v3"
12-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
13-
"go.dedis.ch/kyber/v3/util/random"
14-
"go.dedis.ch/kyber/v3/xof/blake2xb"
11+
"github.com/corestario/kyber/v3"
12+
"github.com/corestario/kyber/v3/group/internal/marshalling"
13+
"github.com/corestario/kyber/v3/util/random"
14+
"github.com/corestario/kyber/v3/xof/blake2xb"
1515
)
1616

1717
// SuiteEd25519 implements some basic functionalities such as Group, HashFactory,
@@ -54,15 +54,15 @@ func (s *SuiteEd25519) RandomStream() cipher.Stream {
5454
}
5555

5656
// NewBlakeSHA256Ed25519 returns a cipher suite based on package
57-
// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and the Ed25519 curve.
57+
// github.com/corestario/kyber/v3/xof/blake2xb, SHA-256, and the Ed25519 curve.
5858
// It produces cryptographically random numbers via package crypto/rand.
5959
func NewBlakeSHA256Ed25519() *SuiteEd25519 {
6060
suite := new(SuiteEd25519)
6161
return suite
6262
}
6363

6464
// NewBlakeSHA256Ed25519WithRand returns a cipher suite based on package
65-
// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and the Ed25519 curve.
65+
// github.com/corestario/kyber/v3/xof/blake2xb, SHA-256, and the Ed25519 curve.
6666
// It produces cryptographically random numbers via the provided stream r.
6767
func NewBlakeSHA256Ed25519WithRand(r cipher.Stream) *SuiteEd25519 {
6868
suite := new(SuiteEd25519)

group/internal/marshalling/marshal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"io"
88
"reflect"
99

10-
"go.dedis.ch/kyber/v3"
10+
"github.com/corestario/kyber/v3"
1111
)
1212

1313
// PointMarshalTo provides a generic implementation of Point.EncodeTo

group/mod/int.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"io"
1010
"math/big"
1111

12-
"go.dedis.ch/kyber/v3"
13-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
14-
"go.dedis.ch/kyber/v3/util/random"
12+
"github.com/corestario/kyber/v3"
13+
"github.com/corestario/kyber/v3/group/internal/marshalling"
14+
"github.com/corestario/kyber/v3/util/random"
1515
)
1616

1717
var one = big.NewInt(1)

group/nist/curve.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"io"
88
"math/big"
99

10-
"go.dedis.ch/kyber/v3"
11-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
12-
"go.dedis.ch/kyber/v3/group/mod"
13-
"go.dedis.ch/kyber/v3/util/random"
10+
"github.com/corestario/kyber/v3"
11+
"github.com/corestario/kyber/v3/group/internal/marshalling"
12+
"github.com/corestario/kyber/v3/group/mod"
13+
"github.com/corestario/kyber/v3/util/random"
1414
)
1515

1616
type curvePoint struct {

group/nist/group_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package nist
33
import (
44
"testing"
55

6-
"go.dedis.ch/kyber/v3/util/test"
6+
"github.com/corestario/kyber/v3/util/test"
77
)
88

99
var testQR512 = NewBlakeSHA256QR512()

group/nist/qrsuite.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"reflect"
1010

1111
"go.dedis.ch/fixbuf"
12-
"go.dedis.ch/kyber/v3"
13-
"go.dedis.ch/kyber/v3/group/internal/marshalling"
14-
"go.dedis.ch/kyber/v3/util/random"
15-
"go.dedis.ch/kyber/v3/xof/blake2xb"
12+
"github.com/corestario/kyber/v3"
13+
"github.com/corestario/kyber/v3/group/internal/marshalling"
14+
"github.com/corestario/kyber/v3/util/random"
15+
"github.com/corestario/kyber/v3/xof/blake2xb"
1616
)
1717

1818
// QrSuite is a quadratic residue suite
@@ -50,7 +50,7 @@ func (s *QrSuite) New(t reflect.Type) interface{} {
5050
}
5151

5252
// NewBlakeSHA256QR512 returns a cipher suite based on package
53-
// go.dedis.ch/kyber/v3/xof/blake2xb, SHA-256, and a residue group of
53+
// github.com/corestario/kyber/v3/xof/blake2xb, SHA-256, and a residue group of
5454
// quadratic residues modulo a 512-bit prime.
5555
//
5656
// This group size should be used only for testing and experimentation.

0 commit comments

Comments
 (0)