inherits from TExternalIFPrivateKey
The purpose of the class TCAPIIFPrivateKey is to serve as a wrapper for RSA keys stored in hardware CSPs.
function GetIdentifier: string; override;
function GetKeySize: Integer; override;
function IFPrivateKeyOperation(aI: iDSInteger; var aJ: iDSInteger) : Boolean; override;
function SignMsg(const aMsg : tBytes; aOffset, aCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; var aSign : tBytes; var aSignCount : Integer) : Boolean; override;
function SignDigest(const aDigest : tBytes; aOffset, aCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; aNullMsg : Boolean; var aSign : tBytes; var aSignCount : Integer) : Boolean; override;
function IFESDecryption(const aEMsg : tBytes; aEOffset, aECount : Integer; const aP : tBytes; aPOffset, aPCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aEncryptEncoding : tEncryptEncoding; var aMsg : tBytes; var aSuccess : Boolean)
function Validate(APubl: iIFPublicKey): Boolean; override;
constructor Create(ARaiseError: Boolean = False); reintroduce;
destructor Destroy; override;
function AcquireContext(const Container, Provider: AnsiString; ProvType: LongInt; Flags: LongInt): Boolean; overload;
function AcquireContext(StoreHandle: DWORD): Boolean; overload;
function GetUserKey(KeySpec: LongInt): Boolean;
function ImportKey(const PKIdentifier; PKILen: Integer): Boolean; override;
function RetrPrivKey(var PrivKey: iIFPrivateKey): Boolean;
function RetrPublKey(var PublKey: iIFPublicKey): Boolean;
function StorPrivKey(const PrivKey: iIFPrivateKey): Boolean;
function StorPublKey(const PublKey: iIFPublicKey): Boolean;
property Identifier: string read GetIdentifier;