# Functions
B64Decode base64 decodes a string.
B64Encode base64 encodes bytes.
BCCSPKeyRequestGenerate generates keys through BCCSP somewhat mirroring to cfssl/req.KeyRequest.Generate().
No description provided by the author
FileExists checks to see if a file exists.
GenECDSAToken signs the http body and cert with ECDSA using EC private key.
GetEnrollmentIDFromPEM returns the EnrollmentID from a PEM buffer.
GetEnrollmentIDFromX509Certificate returns the EnrollmentID from the X509 certificate.
GetMaskedURL returns masked URL.
GetSerialAsHex returns the serial number from certificate as hex format.
GetSignerFromCert load private key represented by ski and return bccsp signer that conforms to crypto.Signer.
GetSignerFromCertFile load skiFile and load private key represented by ski and return bccsp signer that conforms to crypto.Signer.
GetX509CertificateFromPEM get an X509 certificate from bytes in PEM format.
HTTPRequestToString returns a string for an HTTP request for debuggging.
HTTPResponseToString returns a string for an HTTP response for debuggging.
ImportBCCSPKeyFromPEM attempts to create a private BCCSP key from a pem file keyFile.
ImportBCCSPKeyFromPEMBytes attempts to create a private BCCSP key from a pem byte slice.
LoadX509KeyPair reads and parses a public/private key pair from a pair of files.
MakeFileAbs makes 'file' absolute relative to 'dir' if not already absolute.
Marshal to bytes.
ReadFile reads a file.
StructToString converts a struct to a string.
WriteFile writes a file.
# Constants
SecretTag to tag a field as secret as in password, token.
# Variables
ErrNotImplemented used to return errors for functions not implemented.
RevocationReasonCodes is a map between string reason codes to integers as defined in RFC 5280.
URLRegex is the regular expression to check if a value is an URL.
# Structs
ECDSASignature forms the structure for R and S value for ECDSA.