fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/crypto Index | Files

package crypto

import "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/common/crypto"


Package Files



const (
    // NonceSize is the default NonceSize
    NonceSize = 24

func GetRandomBytes Uses

func GetRandomBytes(len int) ([]byte, error)

GetRandomBytes returns len random looking bytes

func GetRandomNonce Uses

func GetRandomNonce() ([]byte, error)

GetRandomNonce returns a random byte array of length NonceSize

Package crypto imports 2 packages (graph) and is imported by 4 packages. Updated 2019-04-18. Refresh now. Tools for package owners.