Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.DSI.IFC

Classes, interfaces and records

classtIFKey

inherits from TInterfacedObject

implements iIFKey

destructor Destroy; override; property Scheme: tIFScheme read GetScheme write SetScheme; property N: iDSInteger read GetN write SetN; property E: iDSInteger read GetE write SetE;

classtIFPublicKey

iSignKey is listed beside iSignKeyIF (here and in tIFPrivateKey) because Supports and as find only the interfaces a class lists, never their ancestors: a key listing iSignKeyIF alone does not answer iSignKey.

constructor CreateFromKey(aSource: iIFPublicKey); destructor Destroy; override; function Validate(const aPriv: iIFPrivateKey): Boolean;
Delegates to aPriv.Validate, forwarding Self, and returns its result.

classeBitAlignment

inherits from Exception

(no public members)

classeKeyGeneration

inherits from Exception

(no public members)

classeDSIIFC

inherits from eDSIException

Integer-factorisation (RSA) branch of the DSI exception hierarchy - see eDSIError in StreamSec.DSI.ArithTypes.

(no public members)

classeDSIIFCUnsupportedHash

inherits from eDSIIFC

The requested tHashAlgorithm has no implementation linked into the application (FindHashClass returned nil), or is too weak / not permitted for the encoding method that asked for it.

(no public members)

classeDSIIFCExternalKey

inherits from eDSIIFC

An external (HSM / PKCS#11 / CryptoAPI) key failed the private-key operation. There is no software fallback: the private exponent is not in this process.

(no public members)

classeDSIIFCEncoding

inherits from eDSIIFC

An IEEE P1363 / PKCS#1 encoding or decoding method failed a size or consistency check.

(no public members)

classtIFPrivateKey

constructor CreateFromKey(aSource: iIFPrivateKey); procedure Clear; procedure IFRSAKeys(aBitSize : UInt32; aReprType : Byte; aKind : tIFKeyGenerationKind; var aPubl : iIFPublicKey; aTerminate : tGetTerminate = nil); procedure IFRSAPublicKey(var aPubl : iIFPublicKey; aCompatibility: Boolean); procedure IFRWKeys(aBitSize : Cardinal; aReprType : Byte; aStrongPrimes: Boolean; var aPubl : iIFPublicKey); function Validate(const aPubl: iIFPublicKey): Boolean; overload; function Validate(const aPublicKey: iUnknown): Boolean; overload; property ReprType: Byte read GetReprType write SetReprType; property D: iDSInteger read GetD write SetD; property P: iDSInteger read GetP write SetP; property Q: iDSInteger read GetQ write SetQ; property D1: iDSInteger read GetD1 write SetD1; property D2: iDSInteger read GetD2 write SetD2; property C: iDSInteger read GetC write SetC; property ExternalKey: tExternalIFPrivateKey read GetExtKey write SetExtKey;

classtDSIIF

inherits from TInterfacedObject

implements iDSIIF, iTrailerField, iIFDecryptionRFC8017

constructor Create; function NewPrivateKey: iIFPrivateKey;
Delegates to tIFPrivateKey.Create and returns its result.
function NewPrivateKeyFrom(const aSource: iIFPrivateKey): iIFPrivateKey;
Delegates to tIFPrivateKey.CreateFromKey, forwarding aSource, and returns its result.
function NewPublicKey: iIFPublicKey;
Delegates to tIFPublicKey.Create and returns its result.
function NewPublicKeyFrom(const aSource: iIFPublicKey): iIFPublicKey;
Delegates to tIFPublicKey.CreateFromKey, forwarding aSource, and returns its result.
function GetEncodingRangeEME1(aKeyBits : Cardinal; aHashAlgorithm: tHashAlgorithm; var aMaxBytes : Integer) : Boolean; function GetEncodingRangeEME_PKCS1_v1_5(aKeyBits : Cardinal; var aMaxBytes: Integer) : Boolean; procedure RSAKeys(aBitSize : UInt32; aReprType : Byte; aKind : tIFKeyGenerationKind; var aPriv : iIFPrivateKey; var aPubl : iIFPublicKey; aTerminate: tGetTerminate = nil); procedure RSAPublicKey(const aPriv : iIFPrivateKey; var aPubl : iIFPublicKey; aCompatibility: Boolean = False); procedure RWKeys(aBitSize : UInt32; aReprType : Byte; aStrongPrimes: Boolean; var aPriv : iIFPrivateKey; var aPubl : iIFPublicKey); function ValidatePrivateKey(const aPriv: iIFPrivateKey; const aPubl: iIFPublicKey) : Boolean;
Delegates to aPriv.Validate, forwarding aPubl, and returns its result.
function SSASignatureGeneration(const aKey : iIFPrivateKey; const aDigest : tBytes; aOffset, aCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; aNullMsg : Boolean; var aSign : tBytes) : Integer; overload;
Usage: AKey.Scheme = ifRSA1, Encoding = seEMSA3: RSA-PKCS-v1.5 AKey.Scheme = ifRSA1, Encoding = seEMSA4: RSA-PSS
function SSASignatureGeneration(const aKey : iIFPrivateKey; aDigest : pByteArray; aCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; aNullMsg : Boolean; var aSign : tBytes) : Integer; overload;
Delegates to SSASignatureGeneration, passing 9 argument(s), and returns its result.
function SSASignatureGeneration(const aKey : iIFPrivateKey; const aDigest : tBytes; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; aNullMsg : Boolean; var aSign : tBytes) : Integer; overload;
Delegates to SSASignatureGeneration, passing 9 argument(s), and returns its result.
function SSASignatureGeneration(const aKey : iIFPrivateKey; const aMsg : tBytes; aOffset, aCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; var aSign : tBytes) : Integer; overload;
Delegates to SSASignatureGeneration, passing 9 argument(s), and returns its result.
function SSASignatureGeneration(const aKey : iIFPrivateKey; const aMsg : tBytes; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; var aSign : tBytes) : Integer; overload;
Delegates to SSASignatureGeneration, passing 9 argument(s), and returns its result.
function SSASignatureVerification(const aKey : iIFPublicKey; const aDigest : tBytes; aDOffset, aDCount : Integer; const aSign : tBytes; aSOffset, aSCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding;
Delegates to SSASignatureVerification, passing 11 argument(s), and returns its result.
function SSASignatureVerification(const aKey : iIFPublicKey; const aDigest : tBytes; const aSign : tBytes; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding; aNullMsg : Boolean) : Boolean; overload;
Delegates to SSASignatureVerification, passing 11 argument(s), and returns its result.
function SSASignatureVerification(const aKey : iIFPublicKey; const aMsg : tBytes; aMOffset, aMCount : Integer; const aSign : tBytes; aSOffset, aSCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding)
Delegates to SSASignatureVerification, passing 11 argument(s), and returns its result.
function SSASignatureVerification(const aKey : iIFPublicKey; const aMsg : tBytes; const aSign : tBytes; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aSaltLen : Cardinal; aEncoding : tSignEncoding) : Boolean; overload;
Delegates to SSASignatureVerification, passing 11 argument(s), and returns its result.
procedure Encryption(const aKey : iIFPublicKey; const aMsg : tBytes; aMOffset, aMCount : Integer; const aP : tBytes; aPOffset, aPCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aEncryptEncoding : tEncryptEncoding; var aEMsg : tBytes); overload;
EncryptEncoding = eeEME1 : OAEP EncryptEncoding = eeEME_PKCS1_v1_5: PKCS#1 v1.5
procedure Encryption(const aKey : iIFPublicKey; const aMsg : tBytes; aOffset, aCount : Integer; aHashAlgorithm : tHashAlgorithm; aEncryptEncoding: tEncryptEncoding; var aEMsg : tBytes); overload; function Decryption(const aKey : iIFPrivateKey; const aEMsg : tBytes; aEOffset, aECount : Integer; const aP : tBytes; aPOffset, aPCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aEncryptEncoding : tEncryptEncoding; var aMsg : tBytes)
Delegates to Decryption, passing 11 argument(s), and returns its result.
function Decryption(const aKey : iIFPrivateKey; const aEMsg : tBytes; aOffset, aCount : Integer; aHashAlgorithm : tHashAlgorithm; aEncryptEncoding: tEncryptEncoding; var aMsg : tBytes) : Boolean; overload;
Delegates to Decryption, passing 11 argument(s), and returns its result.
function Decryption(const aKey : iIFPrivateKey; const aEMsg : tBytes; aOffset, aCount : Integer; aHashAlgorithm : tHashAlgorithm; aEncryptEncoding: tEncryptEncoding; var aMsg : iSecretKey) : Boolean; overload;
Delegates to Decryption, passing 11 argument(s), and returns its result.
function DecryptionRFC8017(const aKey : iIFPrivateKey; const aEMsg : tBytes; aEOffset, aECount : Integer; const aP : tBytes; aPOffset, aPCount : Integer; aHashAlgorithm : tHashAlgorithm; aMGFHashAlgorithm: tHashAlgorithm; aEncryptEncoding : tEncryptEncoding; var aMsg : tBytes) function SignatureAlgEMSA3(aHA: tHashAlgorithm): ObjectIdentifier; function ExtractHashAlgEMSA3(const aOID: ObjectIdentifier; var aHA : tHashAlgorithm) : Boolean;