SmartFTP FTP Library
IRSAKey Interface

Key based on the RSA key algorithm.

IKey
    IRSAKey
IDL
interface IRSAKey : IKey;

C++

#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195" version("1.5")
sfFTPLib::IRSAKeyPtr pRSA;
if(SUCCEEDED(pRSA.CreateInstance(__uuidof(sfFTPLib::RSAKey))))
{
  DWORD t0 = ::GetTickCount();
  int nBits = 1024;
  TRACE(_T("Generating %d bits RSA Key\n"), nBits);
  pRSA->Generate(nBits);
  TRACE(_T("Key generation took %d ms\n"), ::GetTickCount() - t0);
}
IKey Methods 
Description 
Compares key with another key. 
This is ExportKey, a member of class IKey. 
Generates key. 
Returns human readable format of key. 
This is ImportBlob, a member of class IKey. 
Indicates if key is a private key. 
Indicates if key has a public key. 
Compares public key with another 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.