SmartFTP FTP Library
IOpenSSLKey Interface

Key with OpenSSL implementation.

IKey
    IOpenSSLKey
IDL
interface IOpenSSLKey : IKey;

C++

#import "libid:7A3A786C-EB8C-43b3-BC10-8D09ACF5D195"
#include <atlcom.h>
CComPtr<sfFTPLib::IOpenSSLKey> pRSA;
if(SUCCEEDED(pRSA.CoCreateInstance(__uuidof(sfFTPLib::OpenSSLKey))))
{
  pRSA->Initialize(sfFTPLib::ftpKeyAlgoRSA);
  DWORD t0 = ::GetTickCount();
  int bits = 2048;
  TRACE(_T("Generating %d bits RSA Key\n"), nBits);
  pRSA->Generate(bits);
  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. 
This is Initialize, a member of class IOpenSSLKey. 
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.