# Functions

AEStoEncryptedPEM encapsulates an AES key in the encrypted PEM format.
AEStoPEM encapsulates an AES key in the PEM format.
CBCDecrypt decrypts using CBC mode.
CBCEncrypt encrypts using CBC mode.
CBCPKCS7Decrypt combines CBC decryption and PKCS7 unpadding.
CBCPKCS7Encrypt combines CBC encryption and PKCS7 padding.
No description provided by the author
No description provided by the author
No description provided by the author
Clone clones the passed slice.
DecodeBase64 decodes from Base64.
DERCertToPEM converts der to pem.
DERToPrivateKey unmarshals a der to private key.
DERToX509Certificate converts der to x509.
DirEmpty checks if a directory is empty.
DirExists checks if a directory exists.
DirMissingOrEmpty checks is a directory is missin or empty.
ECDSASign signs.
ECDSASignDirect signs.
ECDSAVerify verifies.
EncodeBase64 encodes to Base64.
No description provided by the author
FileMissing checks if a file is missing.
FilePathMissing returns true if the path is missing, false otherwise.
GenAESKey returns a random AES key of length AESKeyLength.
GetCriticalExtension returns a requested critical extension.
GetRandomBytes returns len random looking bytes.
Hash hashes the msh using the predefined hash function.
HMAC hmacs x using key key.
HMACTruncated hmacs x using key key and truncate to truncation.
IntArrayEquals checks if the arrays of ints are the same.
IsTCPPortOpen checks the tcp port is open.
NewECDSAKey generates a new ECDSA Key.
NewHash returns a new hash function.
NewSelfSignedCert create a self signed certificate.
PEMtoAES extracts from the PEM an AES key.
PEMtoCertificate converts pem to x509.
PEMtoCertificateAndDER converts pem to x509 and der.
PEMtoDER converts pem to der.
PEMtoPrivateKey unmarshals a pem to private key.
PKCS7Padding pads as prescribed by the PKCS7 standard.
PKCS7UnPadding unpads as prescribed by the PKCS7 standard.
PrivateKeyToDER marshals a private key to der.
PrivateKeyToEncryptedPEM converts a private key to an encrypted PEM.
PrivateKeyToPEM converts a private key to PEM.
PublicKeyToPEM marshals a public key to the pem forma.
VerifySignCapability tests signing capabilities.

# Constants

AESKeyLength is the default AES key length.
NonceSize is the default NonceSize.

# Variables

No description provided by the author
ErrAlreadyInitialized Already initialized.
ErrAlreadyRegistered Already registered.
ErrDecrypt Decryption failed.
ErrDirrentChaincodeID ChaincodeIDs are different.
ErrEncrypt Encryption failed.
ErrInvalidConfidentialityLevel Invalid confidentiality level.
ErrInvalidReference Invalid reference.
ErrInvalidSignature Invalid Signature.
ErrInvalidTransactionSignature Invalid Transaction Signature.
ErrKeyStoreAlreadyInitialized Keystore already Initilized.
ErrInvalidReference Invalid reference.
ErrNotImplemented Not implemented.
ErrNotInitialized Initialization required.
ErrRegistrationRequired Registration to the Membership Service required.
ErrTransactionCertificate Missing Transaction Certificate.
ErrTransactionMissingCert Transaction missing certificate or signature.
ErrTransactionSignature Missing Transaction Signature.
TCertEncTCertIndex oid for TCertIndex.

# Structs

ECDSASignature represents an ECDSA signature.
NodeConfiguration used for testing.