33 #include "dcmtk/config/osconfig.h"
34 #include "dcmtk/dcmsign/sitypes.h"
38 #include "dcmtk/ofstd/ofstring.h"
43 typedef struct evp_pkey_st EVP_PKEY;
OFString privateKeyPasswd
contains the password for the private key if set on command line
virtual ~SiPrivateKey()
destructor
OFBool usePrivateKeyPassword
true if the privateKeyPasswd contains the password, false otherwise.
SiAlgorithm * createAlgorithmForPrivateKey()
creates an SiAlgorithm object for the private key contained in this certificate.
SiPrivateKey()
default constructor
a class representing X.509 public key certificates.
EVP_PKEY * pkey
the private key managed by this object, may be NULL if not loaded yet
OFCondition loadPrivateKey(const char *filename, int filetype)
loads a private key from file.
a class representing a private key.
pure virtual base class of the public key crypto systems used for signature creation and verification...
void setPrivateKeyPasswdFromConsole()
sets the password string to be used when loading an encrypted private key file to be read from the co...
OFBool matchesCertificate(SiCertificate &cert)
checks if the private key and the certificate set using setPrivateKeyFile() and setCertificateFile() ...
SiPrivateKey & operator=(SiPrivateKey &arg)
private undefined copy assignment operator
a simple string class that implements a subset of std::string.
void setPrivateKeyPasswd(const char *thePasswd)
sets the password string to be used when loading an encrypted private key file in PEM format (ASN...
E_KeyType getKeyType() const
returns the type of public key stored in this certificate
General purpose class for condition codes.