http://bugs.winehq.org/show_bug.cgi?id=28673
Bug #: 28673 Summary: Litemanager Viewer bugs Product: Wine Version: 1.3.29 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: advapi32 AssignedTo: wine-bugs@winehq.org ReportedBy: den.aria@gmail.com Classification: Unclassified
Hello! I developer program Litemanager - remote control software. http://litemanager.com/soft/litemanagerfree_4.2.1_en.zip,
I have several bugs i describe it's in your forum http://forum.winehq.org/viewtopic.php?p=67879#67879
I use Ubuntu 10.10, and i have update Wine to 1.3.29. Use Delphi 2010.
1. Bug with in registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ "InstallDate" I fix it in my program modify my programm
2. Bud with XML file, where i save the settings of my program, I debug Viewer and found, that the settings is don't saving on the disk in the file, The root to the file in Ubuntu "C:\users\Public\Application Data\connections_3.4.xml" - file is Ok, but i can't found it in system folders of Ubuntu, but program is work correctly with him. I think it's virtual wine file system. I testing pogram and found error
TXMLDocument.SaveToFile(AFile); // ERROR - Some time functions saved a clear empty file without data I dont know is it bug of Wine or my program, but on the windows i don't have this bug. I change program to save XML as StringList TXMLDocument.SaveToXML(string1); TStringList.Add(string1); TStringList.SaveToFile(AFile, TEncoding.Unicode);
It's working. I fix it.
3. Some littel bug with interface drawing, with TListView. It's not important to me.
4. My main bug!!!
I have a problem with functions in Authorization process
CryptEncrypt CryptDecrypt http://msdn.microsoft.com/en-us/library/aa379924(v=VS.85).aspx
i use secret key dwProvType := PROV_RSA_AES; dwAlgID := CALG_AES_256; dwSessionKeySize := 256;
Very intresting that when encryptions data with size < 16 i don't have error, but if data size is >16 i will get error! If i use both of these functions in Windows or in Wine Ubuntu it's working without error. But if I Encrypt in Ubuntu and try Decrypt in Windows, CryptDecrypt get result error NTE_BAD_DATA.
Can you test it ? Can you help me? I try to fix it but unfortunaly...
http://bugs.winehq.org/show_bug.cgi?id=28673
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|advapi32 |-unknown
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru 2011-10-12 10:52:56 CDT --- One problem per bug report please.
http://bugs.winehq.org/show_bug.cgi?id=28673
--- Comment #2 from den123 den.aria@gmail.com 2011-10-12 11:28:05 CDT --- ok, i intresting 4 problem.
P.S. can i write on the russian language?
http://bugs.winehq.org/show_bug.cgi?id=28673
fracting fracting@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fracting@gmail.com
--- Comment #3 from fracting fracting@gmail.com 2011-10-12 12:02:10 CDT --- (In reply to comment #2)
can i write on the russian language?
English please :)
http://bugs.winehq.org/show_bug.cgi?id=28673
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download CC| |xerox_xerox2000@yahoo.co.uk Component|-unknown |crypt32
--- Comment #4 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2011-10-12 17:00:47 CDT --- added downloadlink + setting component
btw 1st problem is already fixed in git
http://bugs.winehq.org/show_bug.cgi?id=28673
--- Comment #5 from den123 den.aria@gmail.com 2011-10-13 08:07:46 CDT --- Sorry I must add download link? and what the setting component need?
ok I testing program and find very intresting moment
When encrypted data with lenth 8 < 16 it's encrypted to 16byte and decrype good Encrype string: 12345678 Decrype string: 12345678
When encrypted data with lenth 18 > 16 it's encrypted to 32byte end decrype with error Encrype string: 123456789123456789 Decrype string: 1234567891234567•EВесmz~]ХххpЁE First 16 byte it's ok but grates than is corrupted
Exampe Encrype string: 123456789123456789123456789123456789 Decrype string: 1234567891234567АуЄлuґ€Дk®ІXѓ<єD№юЅjjдOTёшaQP
It's may be trouble in my secretkey?
http://bugs.winehq.org/show_bug.cgi?id=28673
--- Comment #6 from den123 den.aria@gmail.com 2011-10-13 09:28:40 CDT --- Well I use RSA 2048 bit and AES 256 bit RSA key it's ok, but trouble with AES key!
need testing more....
http://bugs.winehq.org/show_bug.cgi?id=28673
--- Comment #7 from den123 den.aria@gmail.com 2011-10-17 10:00:40 CDT --- ok guys can you help me How can i determine that, is my program start by Wine?
I fix last bug, need use cycle of encryption and use 16 count of byte. The standart using of function give error, the function CryptEncrypt and CryptDecrypt in Wine can't work correctly with SALT padding, but when i testing program i found that the Windows XP some time work with this functions with errors :) (bug in Final flag in the functions)
Now i need fix my programm and i don't know how i can determine is my program working under wine or under Windows?
http://bugs.winehq.org/show_bug.cgi?id=28673
--- Comment #8 from den123 den.aria@gmail.com 2011-10-20 06:07:13 CDT --- sorry i am wrong
Bugs in End Padding (not SALT padding, i dont use SALT in encryption) In block cipher block is 16 byte end byte is stuff
For example in dependen of length of end stuff 01 02 02 03 03 03 04 04 04 04 .... 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16
End when i use function CryptEncrypt CryptDecrypt I have param - Final flag, The function can't determinate correctly the end of byte and using Final flag wrong, It's bug in Wine and some time in Windows too, it's not good.
https://bugs.winehq.org/show_bug.cgi?id=28673
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://litemanager.com/soft | |/litemanagerfree_4.2.1_en.z | |ip CC| |focht@gmx.net Summary|Litemanager Viewer bugs |Litemanager Viewer 4.2.x | |fails authentication
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello folks,
is the problem still present with recent Wine?
You're talking about implementation details which makes no sense at all. Please describe exactly your problem and how to reproduce from black box = user point of view (e.g. "error message is shown", "crashes").
Also make sure you're using the crypt API properly.
Regards
http://bugs.winehq.org/show_bug.cgi?id=28673
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE
--- Comment #10 from Bruno Jesus 00cpxxx@gmail.com --- Same ECB <=> CBC problem, resolving duplicate because the other bug has a simpler description.
*** This bug has been marked as a duplicate of bug 36765 ***
http://bugs.winehq.org/show_bug.cgi?id=28673
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Austin English austinenglish@gmail.com --- Closing.