FARGOS/VISTA Object Management Environment Core
..
|
#include <OMEtype.h>
Go to the source code of this file.
Enumerations | |
enum | { OME_INIT_VEC_LEN_IN_BITS =128, OME_INIT_VEC_LEN_IN_HEX_BYTES =(128 / 4), OME_SHA1_HASH_LEN_IN_BITS =160, OME_SHA1_HASH_LEN_IN_BYTES =(160 / 8) } |
enum | { OME_ERROR_CRYPTO_BAD_VERSION =1, OME_ERROR_CRYPTO_BAD_MAGIC =2, OME_ERROR_CRYPTO_INTEGRITY1 =3, OME_ERROR_CRYPTO_DECODE_FAILED =4, OME_ERROR_CRYPTO_DECODE_ARRAY =5, OME_ERROR_CRYPTO_BAD_DATA =6, OME_ERROR_CRYPTO_INIT_FAILED =7, OME_ERROR_CRYPTO_WRONG_HOST =8, OME_ERROR_CRYPTO_WRONG_USER =9, OME_ERROR_CRYPTO_INTEGRITY2 =10 } |
Functions | |
OMEstring * | OMEmakeRandomKey (int32_t bits=1024) |
Generate a random sequence of bits. More... | |
OMEstring * | OMEmakeSHA1hash (const OMEstring &message) |
Compute Secure Hash Algorithm 1 over an OMEstring. More... | |
OMEstring * | OMEmakeSHA256hash (const OMEstring &message) |
Compute Secure Hash Algorithm 256 over an OMEstring. More... | |
OMEstring * | OMEmakeMD5hash (const OMEstring &message) |
Compute Message Digest 5 over an OMEstring. More... | |
OMEstring * | OMEmakePrivateKey (const OMEstring &secretPhrase) |
OMEstring * | OMEmakePublicKey (const OMEstring &privateKey) |
OMEstring * | OMEmakeSessionKeyFromPublicKey (const OMEstring &publicKey, OMEstring &randomDataInSessionKeyOut) |
OMEstring * | OMEdecryptSessionKeyWithPrivateKey (const OMEstring &privateKey, const OMEstring &data) |
int | OMEinitNewCipher (const OMEstring &initVector) |
int | OMEfreeCipher (int useCipher) |
int | OMEdefineNewEncryptKey (const OMEstring &key) |
int | OMEdefineNewDecryptKey (const OMEstring &key) |
int | OMEfreeEncryptionKey (int useKey) |
int | OMEfreeDecryptionKey (int useKey) |
int | OMEencryptString (int useCipher, int useKey, const OMEstring &input, OMEstring &result) |
int | OMEdecryptString (int useCipher, int useKey, const OMEstring &input, OMEstring &result) |
OMEstring * | OMEreadLicenseFile (OMEstring *retFileName, const OMEstring &fileSuffix, const char *searchPath) |
OMEtype * | OMEgetLicenseAttribute (const OMEstring &attrName, OMEstring *retFileName=0) |
OMEtype * | OMEgetLicenseAttribute (const char *attrName, OMEstring *retFileName=0) |
OMEtype * | OMEgetSigningFile (const OMEstring &secret, const OMEstring &logicalDomain, bool isPublic=false) |
![]() | Generated: Tue Jul 28 2020 16:03:26
Support Information |