SmartFTP FTP Library
IDSAKey Interface
IKey
    IDSAKey
IDL
interface IDSAKey : IKey;

C++

#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195" version("1.5")
sfFTPLib::IDSAKeyPtr pDSA;
if(SUCCEEDED(pDSA.CreateInstance(__uuidof(sfFTPLib::DSAKey))))
{
  DWORD t0 = ::GetTickCount();
  int nBits = 1024;
  TRACE(_T("Generating %d bits DSA Key\n"), nBits);
  DRSA->Generate(nBits);
  TRACE(_T("Key generation took %d ms\n"), ::GetTickCount() - t0);
}
IKey Methods 
Description 
This is ExportKey, a member of class IKey. 
Generates key. 
This is ImportBlob, a member of class IKey. 
Indicates if key is a private key. 
Indicates if key has a public key. 
This is SetProperty, a member of class IKey. 
Sign 
This is Sign, a member of class IKey. 
This is Verify, a member of class IKey. 
IKey Properties 
Description 
Algo 
This is Algo, a member of class IKey. 
Bits 
Contains the number of bits. 
This is Certificate, a member of class IKey. 
Type 
Contains the key type. 
What do you think about this topic? Send feedback!
Copyright (c) by SmartSoft Ltd. All rights reserved.