Skip to content

Commit 48d19be

Browse files
author
Volodymyr Paprotski
committed
BCCSP config back to SHA2
Make defaults consistent to those in bccsp/factory/opts.go Change-Id: Ic0fc8444d0160263b180480d9e5551ff8052cbe0 Signed-off-by: Volodymyr Paprotski <[email protected]>
1 parent 9a09ac0 commit 48d19be

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

common/configtx/tool/configtx.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ Organizations:
6767
BCCSP:
6868
Default: SW
6969
SW:
70-
Hash: SHA3
70+
# TODO: The default Hash and Security level needs refactoring to be
71+
# fully configurable. Changing these defaults requires coordination
72+
# SHA2 is hardcoded in several places, not only BCCSP
73+
Hash: SHA2
7174
Security: 256
7275
# Location of key store. If this is unset, a location will
7376
# be chosen using: 'MSPDir'/keystore

core/endorser/endorser_test.yaml

+4-10
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ server:
1717
# TLS certificate and key file paths
1818
tls:
1919

20-
security:
21-
# Can be 256 or 384
22-
# Must be the same as in core.yaml
23-
level: 256
24-
25-
# Can be SHA2 or SHA3
26-
# Must be the same as in core.yaml
27-
hashAlgorithm: SHA3
28-
2920
# Enabling/disabling different logging levels of the CA.
3021
#
3122
logging:
@@ -329,7 +320,10 @@ peer:
329320
BCCSP:
330321
Default: SW
331322
SW:
332-
Hash: SHA3
323+
# TODO: The default Hash and Security level needs refactoring to be
324+
# fully configurable. Changing these defaults requires coordination
325+
# SHA2 is hardcoded in several places, not only BCCSP
326+
Hash: SHA2
333327
Security: 256
334328
FileKeyStore:
335329
KeyStore:

orderer/orderer.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ General:
6969
BCCSP:
7070
Default: SW
7171
SW:
72-
Hash: SHA3
72+
# TODO: The default Hash and Security level needs refactoring to be
73+
# fully configurable. Changing these defaults requires coordination
74+
# SHA2 is hardcoded in several places, not only BCCSP
75+
Hash: SHA2
7376
Security: 256
7477
# Location of key store. If this is unset, a location will be
7578
# chosen using: 'LocalMSPDir'/keystore

peer/core.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,10 @@ peer:
205205
BCCSP:
206206
Default: SW
207207
SW:
208-
Hash: SHA3
208+
# TODO: The default Hash and Security level needs refactoring to be
209+
# fully configurable. Changing these defaults requires coordination
210+
# SHA2 is hardcoded in several places, not only BCCSP
211+
Hash: SHA2
209212
Security: 256
210213
# Location of Key Store, can be subdirectory of SbftLocal.DataDir
211214
FileKeyStore:

0 commit comments

Comments
 (0)