Skip to content

Commit

Permalink
BCCSP config back to SHA2
Browse files Browse the repository at this point in the history
Make defaults consistent to those in bccsp/factory/opts.go

Change-Id: Ic0fc8444d0160263b180480d9e5551ff8052cbe0
Signed-off-by: Volodymyr Paprotski <vpaprots@ca.ibm.com>
  • Loading branch information
Volodymyr Paprotski committed Feb 27, 2017
1 parent 9a09ac0 commit 48d19be
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
5 changes: 4 additions & 1 deletion common/configtx/tool/configtx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ Organizations:
BCCSP:
Default: SW
SW:
Hash: SHA3
# TODO: The default Hash and Security level needs refactoring to be
# fully configurable. Changing these defaults requires coordination
# SHA2 is hardcoded in several places, not only BCCSP
Hash: SHA2
Security: 256
# Location of key store. If this is unset, a location will
# be chosen using: 'MSPDir'/keystore
Expand Down
14 changes: 4 additions & 10 deletions core/endorser/endorser_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ server:
# TLS certificate and key file paths
tls:

security:
# Can be 256 or 384
# Must be the same as in core.yaml
level: 256

# Can be SHA2 or SHA3
# Must be the same as in core.yaml
hashAlgorithm: SHA3

# Enabling/disabling different logging levels of the CA.
#
logging:
Expand Down Expand Up @@ -329,7 +320,10 @@ peer:
BCCSP:
Default: SW
SW:
Hash: SHA3
# TODO: The default Hash and Security level needs refactoring to be
# fully configurable. Changing these defaults requires coordination
# SHA2 is hardcoded in several places, not only BCCSP
Hash: SHA2
Security: 256
FileKeyStore:
KeyStore:
Expand Down
5 changes: 4 additions & 1 deletion orderer/orderer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ General:
BCCSP:
Default: SW
SW:
Hash: SHA3
# TODO: The default Hash and Security level needs refactoring to be
# fully configurable. Changing these defaults requires coordination
# SHA2 is hardcoded in several places, not only BCCSP
Hash: SHA2
Security: 256
# Location of key store. If this is unset, a location will be
# chosen using: 'LocalMSPDir'/keystore
Expand Down
5 changes: 4 additions & 1 deletion peer/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ peer:
BCCSP:
Default: SW
SW:
Hash: SHA3
# TODO: The default Hash and Security level needs refactoring to be
# fully configurable. Changing these defaults requires coordination
# SHA2 is hardcoded in several places, not only BCCSP
Hash: SHA2
Security: 256
# Location of Key Store, can be subdirectory of SbftLocal.DataDir
FileKeyStore:
Expand Down

0 comments on commit 48d19be

Please sign in to comment.