FARGOS/VISTA Object Management Environment Core
..
|
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) |
anonymous enum |
anonymous enum |
OMEstring* OMEdecryptSessionKeyWithPrivateKey | ( | const OMEstring & | privateKey, |
const OMEstring & | data | ||
) |
Referenced by decryptSessionKey().
References MAX_CIPHERS.
Referenced by decryptMessage(), and OMEconnection::receiveMessage().
int OMEdefineNewDecryptKey | ( | const OMEstring & | key | ) |
Referenced by initializeCipher().
int OMEdefineNewEncryptKey | ( | const OMEstring & | key | ) |
Referenced by initializeCipher().
References BYTES_PER_BLOCK, and MAX_CIPHERS.
Referenced by encryptMessage(), and OMEconnection::sendMessage().
int OMEfreeCipher | ( | int | useCipher | ) |
References MAX_CIPHERS.
Referenced by freeCipher(), and OMEconnection::freeEncryptionResources().
int OMEfreeDecryptionKey | ( | int | useKey | ) |
References OMEfreeEncryptionKey().
Referenced by OMEconnection::freeEncryptionResources().
int OMEfreeEncryptionKey | ( | int | useKey | ) |
References MAX_KEYS.
Referenced by freeCipher(), OMEconnection::freeEncryptionResources(), and OMEfreeDecryptionKey().
References OMEgetLicenseAttribute().
References OMEthisProcessInfo::hostName, OMEbase64ToBinary(), OMEcurrentProcessInfo, OMEgetUserName(), and OMEreadLicenseFile().
Referenced by getLocalizedData(), OMEaddDestinationRoute(), and OMEgetLicenseAttribute().
OMEtype* OMEgetSigningFile | ( | const OMEstring & | secret, |
const OMEstring & | logicalDomain, | ||
bool | isPublic = false |
||
) |
References OMEthisProcessInfo::hostName, OMEstring::length(), OMEcurrentProcessInfo, OMEhash(), OMEmakePrivateKey(), and OMEreadLicenseFile().
Referenced by getHostKey(), getRemoteHostKey(), and OMEconnection::negotiateKey().
int OMEinitNewCipher | ( | const OMEstring & | initVector | ) |
References MAX_CIPHERS.
Referenced by initializeCipher().
Compute Message Digest 5 over an OMEstring.
References OMEstring::length().
Referenced by MD5hash().
References OMEstring::length(), and OMEmakeSHA1hash().
Referenced by makePublicKeyPair(), OMEconnection::negotiateKey(), and OMEgetSigningFile().
Referenced by makePublicKeyPair(), and OMEconnection::negotiateKey().
OMEstring* OMEmakeRandomKey | ( | int32_t | bits = 1024 | ) |
Generate a random sequence of bits.
References fd.
Referenced by becomePseudoUser(), getRandomInteger(), and makeRandomKey().
OMEstring* OMEmakeSessionKeyFromPublicKey | ( | const OMEstring & | publicKey, |
OMEstring & | randomDataInSessionKeyOut | ||
) |
Referenced by makeSessionKey().
Compute Secure Hash Algorithm 1 over an OMEstring.
References htonl, and OMEstring::length().
Referenced by OMEmakePrivateKey(), and SHA1hash().
Compute Secure Hash Algorithm 256 over an OMEstring.
References htonl, OMEstring::length(), and sha_memory().
Referenced by SHA256hash().
![]() | Generated: Tue Jul 28 2020 16:03:26
Support Information |