Skip to content

Commit

Permalink
Moving BCCSP under fabric
Browse files Browse the repository at this point in the history
This change-set moves the BCCSP package
under fabric/
Refenreces to the BCCSP package have been
updated to reflect the new path.

Change-Id: I0a5e6d9c49d8f8099aaa8b21258937d83c2b40d9
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
  • Loading branch information
adecaro committed Jan 6, 2017
1 parent 4ad8f9e commit b9ed727
Show file tree
Hide file tree
Showing 34 changed files with 28 additions and 28 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

"os"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/sw"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/sw"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"os"
"testing"

"github.com/hyperledger/fabric/core/crypto/bccsp/sw"
"github.com/hyperledger/fabric/bccsp/sw"
)

func TestGetDefault(t *testing.T) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"fmt"
"sync"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/sw"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/sw"
)

const (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions core/crypto/bccsp/signer/signer.go → bccsp/signer/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"fmt"
"io"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/utils"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/utils"
)

// CryptoSigner is the BCCSP-based implementation of a crypto.Signer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"os"
"testing"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/sw"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/sw"
)

var (
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/crypto/bccsp/sw/aes_test.go → bccsp/sw/aes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"math/big"
"testing"

"github.com/hyperledger/fabric/core/crypto/bccsp/utils"
"github.com/hyperledger/fabric/bccsp/utils"
)

// TestCBCPKCS7EncryptCBCPKCS7Decrypt encrypts using CBCPKCS7Encrypt and decrypts using CBCPKCS7Decrypt.
Expand Down
2 changes: 1 addition & 1 deletion core/crypto/bccsp/sw/aeskey.go → bccsp/sw/aeskey.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"crypto/sha256"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/bccsp"
)

type aesPrivateKey struct {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/crypto/bccsp/sw/dummyks.go → bccsp/sw/dummyks.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package sw
import (
"errors"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/bccsp"
)

// DummyKeyStore is a read-only KeyStore that neither loads nor stores keys.
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/crypto/bccsp/sw/ecdsakey.go → bccsp/sw/ecdsakey.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"crypto/elliptic"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/bccsp"
)

type ecdsaPrivateKey struct {
Expand Down
4 changes: 2 additions & 2 deletions core/crypto/bccsp/sw/fileks.go → bccsp/sw/fileks.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"fmt"
"path/filepath"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/utils"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/utils"
)

// FileBasedKeyStore is a folder-based KeyStore.
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions core/crypto/bccsp/sw/impl.go → bccsp/sw/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ import (
"crypto/sha256"
"crypto/sha512"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/utils"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/utils"
"github.com/op/go-logging"
"golang.org/x/crypto/sha3"
)
Expand Down
6 changes: 3 additions & 3 deletions core/crypto/bccsp/sw/impl_test.go → bccsp/sw/impl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ import (
"crypto/sha512"
"hash"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/signer"
"github.com/hyperledger/fabric/core/crypto/bccsp/utils"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/signer"
"github.com/hyperledger/fabric/bccsp/utils"
"golang.org/x/crypto/sha3"
)

Expand Down
2 changes: 1 addition & 1 deletion core/crypto/bccsp/sw/rsakey.go → bccsp/sw/rsakey.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"encoding/asn1"
"math/big"

"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/bccsp"
)

// rsaPublicKey reflects the ASN.1 structure of a PKCS#1 public key.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions msp/identities.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
"errors"

"github.com/golang/protobuf/proto"
"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/signer"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/signer"
)

type identity struct {
Expand Down
6 changes: 3 additions & 3 deletions msp/mspimpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
"encoding/json"

"github.com/golang/protobuf/proto"
"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/signer"
"github.com/hyperledger/fabric/core/crypto/bccsp/sw"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/signer"
"github.com/hyperledger/fabric/bccsp/sw"
m "github.com/hyperledger/fabric/protos/msp"
)

Expand Down
4 changes: 2 additions & 2 deletions protos/utils/txutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"bytes"

"github.com/golang/protobuf/proto"
"github.com/hyperledger/fabric/core/crypto/bccsp"
"github.com/hyperledger/fabric/core/crypto/bccsp/factory"
"github.com/hyperledger/fabric/bccsp"
"github.com/hyperledger/fabric/bccsp/factory"
"github.com/hyperledger/fabric/msp"
"github.com/hyperledger/fabric/protos/common"
"github.com/hyperledger/fabric/protos/peer"
Expand Down

0 comments on commit b9ed727

Please sign in to comment.