Sha256: 7d0e8d808fb76907143edbe6c846aafeee3dc88c22445f4fdf193c5bbba1b3ba

Contents?: true

Size: 894 Bytes

Versions: 32

Compression:

Stored size: 894 Bytes

Contents

#ifndef RHO_CRYPT_IMPL_36483A0BE5E44ef3B39915D41C54319B
#define RHO_CRYPT_IMPL_36483A0BE5E44ef3B39915D41C54319B

#include <jni.h>
#include "common/IRhoCrypt.h"
#include "logging/RhoLog.h"

namespace rho {
namespace common{

class CRhoCryptImpl : public IRhoCrypt
{
    DEFINE_LOGCLASS;
public:
    CRhoCryptImpl();
    ~CRhoCryptImpl();

    virtual int db_decrypt( const char* szPartition, int size, unsigned char* data );
    virtual int db_encrypt( const char* szPartition, int size, unsigned char* data, unsigned char* dataOut );
    virtual int set_db_CryptKey( const char* szPartition, const char* szKey, bool bPersistent );

private:
    jclass cls;
    jmethodID midConstructor;
    jmethodID midDBDecrypt;
    jmethodID midDBEncrypt;
    jmethodID midSetDBCryptKey;

    jobject m_obj;

    unsigned char* m_dataOut;
};

}
}

#endif // RHO_CRYPT_IMPL_36483A0BE5E44ef3B39915D41C54319B

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.2.beta.1 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1.beta.8 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1.beta.7 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1.beta.6 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1.beta.5 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1.beta.4 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1.beta.3 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.1.beta.2 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0.beta.7 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0.beta.6 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0.beta.5 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0.beta.4 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0.beta.3 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0.beta.2 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-3.0.0.beta.1 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-2.4.1 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h
rhodes-2.4.1.beta.1 platform/android/Rhodes/jni/include/rhodes/rhocryptimpl.h