Changes needed to make tris a separated lib

This commit is contained in:
Henry Case 2019-04-05 11:28:54 +01:00
parent af21f3083c
commit 7bbaf23cda
6 changed files with 8 additions and 8 deletions

6
13.go
View File

@ -21,9 +21,9 @@ import (
"sync/atomic" "sync/atomic"
"time" "time"
sidh "github_com/cloudflare/sidh/sidh" sidh "github.com/cloudflare/sidh/sidh"
sike "github_com/cloudflare/sidh/sike" sike "github.com/cloudflare/sidh/sike"
"golang_org/x/crypto/curve25519" "golang.org/x/crypto/curve25519"
) )
// numSessionTickets is the number of different session tickets the // numSessionTickets is the number of different session tickets the

View File

@ -1,12 +1,12 @@
package main package main
import ( import (
"crypto/tls"
"crypto/x509" "crypto/x509"
"encoding/hex" "encoding/hex"
"errors" "errors"
"flag" "flag"
"fmt" "fmt"
"github.com/henrydcase/trs"
"io/ioutil" "io/ioutil"
"log" "log"
"net/http" "net/http"

View File

@ -1,11 +1,11 @@
package main package main
import ( import (
"crypto/tls"
"crypto/x509" "crypto/x509"
"errors" "errors"
"flag" "flag"
"fmt" "fmt"
"github.com/henrydcase/trs"
"io" "io"
"log" "log"
"os" "os"

View File

@ -15,7 +15,7 @@ import (
"crypto/sha256" "crypto/sha256"
"hash" "hash"
"golang_org/x/crypto/chacha20poly1305" "golang.org/x/crypto/chacha20poly1305"
) )
// a keyAgreement implements the client and server side of a TLS key agreement // a keyAgreement implements the client and server side of a TLS key agreement

View File

@ -12,7 +12,7 @@ import (
"crypto/x509" "crypto/x509"
"errors" "errors"
"fmt" "fmt"
"internal/cpu" "golang.org/x/sys/cpu"
"io" "io"
"math/big" "math/big"
"net" "net"

View File

@ -14,7 +14,7 @@ import (
"io" "io"
"math/big" "math/big"
"golang_org/x/crypto/curve25519" "golang.org/x/crypto/curve25519"
) )
var errClientKeyExchange = errors.New("tls: invalid ClientKeyExchange message") var errClientKeyExchange = errors.New("tls: invalid ClientKeyExchange message")