Code Monkey home page Code Monkey logo

Comments (5)

bricke avatar bricke commented on August 18, 2024

Any error log?

from qt-aes.

L0wperformer avatar L0wperformer commented on August 18, 2024

for me it ran with MinGW32 but only when built using cmake

from qt-aes.

ImbellicusAnimo avatar ImbellicusAnimo commented on August 18, 2024

Any error log?

I've tried to build and run the tests using the supplied pro file. Log output from running the tests:


********* Start testing of AesTest *********
Config: Using QtTest library 5.12.3, Qt 5.12.3 (i386-little_endian-ilp32 shared (dynamic) debug build; by GCC 7.3.0)
QDEBUG : AesTest::initTestCase() AESNI Enabled
PASS : AesTest::initTestCase()
A crash occurred in E:_workspaces\Qt-AES-master\debug\QAESEncryption.exe.
Function time: 0ms Total time: 4ms

Exception address: 0x004017e1
Exception code : 0xc0000005

Stack:
1: ZN5QTest15toPrettyUnicodeEPKti() - 0x640026d6
2: UnhandledExceptionFilter() - 0x777a8e90
3: RtlGetFullPathName_UEx() - 0x77c58b30
4: RtlGetFullPathName_UEx() - 0x77c58b30

When i run in debug mode, it breaks in function "QByteArray QAESEncryption::expandKey(const QByteArray &key)" on the call "AES_128_Key_Expansion(uchar_key, ret);" in line 185.

File "qaesencryption.cpp":
grafik

File "aesni-key-exp.h":
grafik

When building and running through cmake all works fine.

from qt-aes.

ImbellicusAnimo avatar ImbellicusAnimo commented on August 18, 2024

for me it ran with MinGW32 but only when built using cmake

Turns out, if built with cmake it's without aes_ni enabled.

from qt-aes.

bugaenko-cyber avatar bugaenko-cyber commented on August 18, 2024

Hello! The problem is on Qt 5.15.2 mingw32 and it doesn’t matter cmake or qmake, in Qt 5.15.2 x64, Qt 6.5.3 x64 everything works.
In all cases the error is here tmp = _mm_xor_si128 (tmp,((__m128i*)key)[0]);

image

********* Start testing of AesTest *********
Config: Using QtTest library 5.15.2, Qt 5.15.2 (i386-little_endian-ilp32 shared (dynamic) release build; by GCC 8.1.0), windows 10
QDEBUG : AesTest::initTestCase() AESNI Enabled
PASS : AesTest::initTestCase()
A crash occurred in C:\test\build-qaesencryption-Desktop_Qt_5_15_2_MinGW_32_bit-Debug\debug\QAESEncryption.exe.
Function time: 0ms Total time: 3ms

Exception address: 0x0040292b
Exception code : 0xc0000005

Stack:
1: ZN24QAbstractItemModelTester11qt_metacallEN11QMetaObject4CallEiPPv() - 0x6efe3f30
2: UnhandledExceptionFilter() - 0x755426b0
3: RtlCaptureStackContext() - 0x77318e30
4: RtlGetAppContainerNamedObjectPath() - 0x772f7b50

from qt-aes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.