Go to the documentation of this file.
2 #define _OME_CRYPTO_H "$Id: OMEcrypto.h 446 2020-07-23 20:08:31Z geoff $"
int OILsetClassMetaObject(OMEthread *thread, OMEtype &result, const OMEtype &classData, const OMEtype &metaObj)
Definition: OMEcreate.cpp:190
OMEassoc * OMEmakeACL(const OMEstring &entity, uint_fast32_t defaultPermission, const OMEassoc &methodList)
Definition: OMEobjACL.cpp:164
OMEstring * OMEreadLicenseFile(OMEstring *retFileName, const OMEstring &fileSuffix, const char *searchPath)
Definition: OMElicense.cpp:395
@ OME_NLM
Definition: OMEmanifests.h:90
@ OME_ERROR_CRYPTO_INTEGRITY2
Definition: OMEcrypto.h:85
int OMEinitNewCipher(const OMEstring &initVector)
Definition: aesCover.cpp:29
@ OME_ERROR_CRYPTO_WRONG_USER
Definition: OMEcrypto.h:84
void initializeAsType(const enum OMEtypes_t t)
The fundamental tagged data type used through the FARGOS/VISTA infrastructure.
Definition: OMEtype.cpp:95
int _noteShutdownThread(OMEthread *thread, OMEtype &result)
Definition: OMEcreate.cpp:126
@ OME_ERROR_CRYPTO_DECODE_FAILED
Definition: OMEcrypto.h:79
OMEstring * OMEmakeSHA1hash(const OMEstring &message)
Compute Secure Hash Algorithm 1 over an OMEstring.
Definition: pkRoutines.cpp:83
OMEoid * OMEcreateObject(const OMEstring &className, const OMEassoc &defaultACL, const uint32_t argc, const OMEarray &argv, const OMEtype *fromObject=nullptr, const OMEthread *fromThread=nullptr, const OMEoid *notify=nullptr, const uint32_t verID=0, const OMEstring *nmSpace=nullptr, OMEtype *errInfo=nullptr)
Definition: OMEcreate.cpp:15
@ OME_ERROR_CRYPTO_BAD_VERSION
Definition: OMEcrypto.h:76
#define ARG_IS_INT(x)
Definition: OMEcreate.cpp:9
@ OME_SHA1_HASH_LEN_IN_BITS
Definition: OMEcrypto.h:15
Implements associative array of OMEtype elements.
Definition: OMEassoc.h:112
int OILcreateObject(OMEthread *thread, OMEtype &result, const OMEtype &classData, const OMEtype &acl, const OMEtype &args, const OMEtype &from, const OMEtype ¬ifyObj)
Definition: OMEcreate.cpp:28
const OMEoid & getThisOID() const OME_ALWAYS_INLINE
Definition: OMEthread.h:154
@ OME_ERROR_CRYPTO_INTEGRITY1
Definition: OMEcrypto.h:78
Implements text and binary string storage.
Definition: OMEstring.h:305
int OMEfreeEncryptionKey(int useKey)
Definition: aesCover.cpp:111
void setMetaObject(const OMEoid &obj)
Definition: OMEclass.h:69
bool indexExists(const uint32_t i) const
Definition: OMEarray.h:202
@ OME_ERROR_CRYPTO_INIT_FAILED
Definition: OMEcrypto.h:82
int OILimportObject(OMEthread *thread, OMEtype &result, const OMEtype &objData, const OMEtype &duplicateFlag)
Definition: OMEcreate.cpp:239
@ OME_SHA1_HASH_LEN_IN_BYTES
Definition: OMEcrypto.h:16
int OMEencryptString(int useCipher, int useKey, const OMEstring &input, OMEstring &result)
Definition: aesCover.cpp:124
Fundamental ANY type for FARGOS/VISTA Object Management Environment.
Definition: OMEbaseType.h:250
Base class and abstract interface for an object within a FARGOS/VISTA Object Management Environment.
Definition: OMEobject.h:22
OMEstring * OMEmakePublicKey(const OMEstring &privateKey)
Definition: pkRoutines.cpp:192
OMEstring * OMEmakeMD5hash(const OMEstring &message)
Compute Message Digest 5 over an OMEstring.
Definition: pkRoutines.cpp:100
class OMEoid * oid
Definition: OMEbaseType.h:297
OMEstring * OMEmakeSessionKeyFromPublicKey(const OMEstring &publicKey, OMEstring &randomDataInSessionKeyOut)
Definition: pkRoutines.cpp:255
@ OME_ERROR_CRYPTO_WRONG_HOST
Definition: OMEcrypto.h:83
class OMEstring * s
Definition: OMEbaseType.h:299
int OMEdecryptString(int useCipher, int useKey, const OMEstring &input, OMEstring &result)
Definition: aesCover.cpp:179
OMEtype * OMEgetLicenseAttribute(const OMEstring &attrName, OMEstring *retFileName=0)
Definition: OMElicense.cpp:521
int _noteObjectCreator(OMEthread *thread, OMEtype &result, const OMEtype &obj)
Definition: OMEcreate.cpp:105
class OMEarray * array
Definition: OMEbaseType.h:294
OMEthread * releaseThread()
Definition: OMEthread.cpp:1126
FARGOS/VISTA Object Management Environment class description.
Definition: OMEclass.h:24
void suspendThread()
Definition: OMEthread.cpp:1086
OMEclass * OMEfindClassDescription(const OMEstring &className, const uint32_t verID, const OMEstring *nmSpace)
Definition: OMEnamespace.cpp:165
@ OME_ERROR_CRYPTO_DECODE_ARRAY
Definition: OMEcrypto.h:80
OMEstring * OMEmakeSHA256hash(const OMEstring &message)
Compute Secure Hash Algorithm 256 over an OMEstring.
Definition: sha256.cpp:169
const char srcID[]
Definition: catSym.c:17
@ OME_STRING
Definition: OMEmanifests.h:85
int makeOIDwithACL(OMEthread *thread, OMEtype &result, const OMEtype &acl)
Definition: OMEcreate.cpp:175
@ OME_INT
Definition: OMEmanifests.h:80
OMEstring * OMEdecryptSessionKeyWithPrivateKey(const OMEstring &privateKey, const OMEstring &data)
Definition: pkRoutines.cpp:296
OMEstring * OMEmakePrivateKey(const OMEstring &secretPhrase)
Definition: pkRoutines.cpp:156
int OMEdefineNewEncryptKey(const OMEstring &key)
Definition: aesCover.cpp:95
int OMEdefineNewDecryptKey(const OMEstring &key)
Definition: aesCover.cpp:103
@ OME_NIL
Definition: OMEmanifests.h:78
@ OME_OID
Definition: OMEmanifests.h:84
int OMEfreeDecryptionKey(int useKey)
Definition: aesCover.cpp:119
static OME_FAST_CALL OMEoid * importObject(const OMEstring &data, bool duplicate, OMEtype *errInfo=nullptr)
Import an object from its encoded image.
Definition: OMEobject.cpp:1010
@ OME_INIT_VEC_LEN_IN_HEX_BYTES
Definition: OMEcrypto.h:14
OME fundamental type implementation.
uint32_t ui
Definition: OMEbaseType.h:286
int makeExclusionACL(OMEthread *thread, OMEtype &result, const OMEtype &methods)
Definition: OMEcreate.cpp:146
const char srcID[] OME_USED
Definition: tick_time.cpp:24
uint_fast32_t elementCount() const OME_ALWAYS_INLINE
Definition: OMEarray.h:247
int OMEfreeCipher(int useCipher)
Definition: aesCover.cpp:56
static OME_FAST_CALL OMEoid * createObjectOfClass(const uint32_t argc, const OMEarray &argv, const OMEassoc &acl, const OMEstring &name, const OMEtype *fromObject=nullptr, const OMEthread *fromThread=nullptr, const OMEoid *notify=nullptr, const uint32_t verID=0, const OMEstring *nmSpace=nullptr, OMEtype *errInfo=nullptr)
Create an object, potentially searching through the OMEnameSpaceGroup list for most current version o...
Definition: OMEobject.cpp:1250
OMEtype * OMEgetSigningFile(const OMEstring &secret, const OMEstring &logicalDomain, bool isPublic=false)
Definition: OMElicense.cpp:648
@ OME_ERROR_CRYPTO_BAD_DATA
Definition: OMEcrypto.h:81
Implements sparse array of OMEtype elements.
Definition: OMEarray.h:75
Public interface to an OME thread.
Definition: OMEthread.h:60
#define LOG_ENDLINE
Closing clause for text line output using << operators.
Definition: logging_api.hpp:2956
Public interface to an OME Object Identifier.
Definition: OMEoid.h:196
OMEstring * OMEmakeRandomKey(int32_t bits=1024)
Generate a random sequence of bits.
Definition: pkRoutines.cpp:46
uint32_t type
Definition: OMEbaseType.h:304
OMEtype & OMEgetObjectCreatorOID(const OMEtype &userInfo)
Definition: OMEcreate.cpp:117
@ OME_ARRAY
Definition: OMEmanifests.h:86
OMEarrayStorage::ARRAY_SUBSCRIPT_t ARRAY_SUBSCRIPT_t
Definition: OMEarray.h:90
class OMEassoc * assoc
Definition: OMEbaseType.h:296
OMEtype threadErrorCode
Definition: OMEthread.h:81
const class OMEobject * getInstanceInMemory() const
Return object information record.
Definition: OMEoid.h:280
@ OME_ASSOC
Definition: OMEmanifests.h:87
int OMEsendShutdown()
Definition: OMEcreate.cpp:136
@ OME_INIT_VEC_LEN_IN_BITS
Definition: OMEcrypto.h:13
#define LOG_CERR(lvl)
Convenience macro that uses LOG_INTO() to conditionally log a message to standard error.
Definition: logging_api.hpp:3014
@ OME_ERROR_CRYPTO_BAD_MAGIC
Definition: OMEcrypto.h:77