github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/bccsp/hashopts.go (about) 1 /* 2 Copyright IBM Corp. 2016 All Rights Reserved. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package bccsp 18 19 // SHA256Opts contains options relating to SHA-256. 20 type SHA256Opts struct { 21 } 22 23 // Algorithm returns the hash algorithm identifier (to be used). 24 func (opts *SHA256Opts) Algorithm() string { 25 return SHA256 26 } 27 28 // SHA384Opts contains options relating to SHA-384. 29 type SHA384Opts struct { 30 } 31 32 // Algorithm returns the hash algorithm identifier (to be used). 33 func (opts *SHA384Opts) Algorithm() string { 34 return SHA384 35 } 36 37 // SHA3_256Opts contains options relating to SHA3-256. 38 type SHA3_256Opts struct { 39 } 40 41 // Algorithm returns the hash algorithm identifier (to be used). 42 func (opts *SHA3_256Opts) Algorithm() string { 43 return SHA3_256 44 } 45 46 // SHA3_384Opts contains options relating to SHA3-384. 47 type SHA3_384Opts struct { 48 } 49 50 // Algorithm returns the hash algorithm identifier (to be used). 51 func (opts *SHA3_384Opts) Algorithm() string { 52 return SHA3_384 53 }