-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow per-chain variations of BCCSP/CryptoSuite
FAB-2148 Instances of BCCSP implementations, aka CryptoSuite, must be allowed to be created within the context of a single application instance to support different configurations: - HSM or software-managed (should only be a per-app instance setting) - key length (can be a per-chain setting) - digital signature algorithm (can be a per-chain setting) Change-Id: I55cfa1b437c4272c21a7ea1d78163905959ec670 Signed-off-by: Jim Zhang <jzhang@us.ibm.com>
- Loading branch information
1 parent
d32cdd2
commit 024f6f0
Showing
6 changed files
with
123 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
{ | ||
"request-timeout" : 3000, | ||
"tcert-batch-size" : 10, | ||
"crypto-asymmetric-key-algo": "ECDSA", | ||
"crypto-hash-algo": "SHA2", | ||
"crypto-keysize": 256, | ||
"crypto-suite": "./impl/CryptoSuite_ECDSA_AES.js" | ||
"crypto-hsm": false, | ||
"crypto-suite-software": { | ||
"EC": "./impl/CryptoSuite_ECDSA_AES.js" | ||
}, | ||
"crypto-suite-hsm": { | ||
"EC": "./impl/bccsp_pkcs11.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{ | ||
"request-timeout" : 3000, | ||
"tcert-batch-size" : 10, | ||
"crypto-asymmetric-key-algo": "ECDSA", | ||
"crypto-hash-algo": "SHA2", | ||
"crypto-keysize": 256, | ||
"crypto-suite": "./impl/CryptoSuite_ECDSA_AES.js", | ||
"crypto-hsm": false, | ||
"crypto-suite-software": { | ||
"EC": "./impl/CryptoSuite_ECDSA_AES.js" | ||
}, | ||
"crypto-suite-hsm": { | ||
"EC": "./impl/bccsp_pkcs11.js" | ||
}, | ||
"key-value-store": "./impl/FileKeyValueStore.js", | ||
"nonce-size" : 24, | ||
"dockerfile-contents" : "from hyperledger/fabric-ccenv\nCOPY . $GOPATH/src/build-chaincode/\nWORKDIR $GOPATH\n\nRUN go install build-chaincode && mv $GOPATH/bin/build-chaincode $GOPATH/bin/%s" | ||
"nonce-size" : 24 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"crypto-hsm": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters