Hi Helle,
confirmed.
I was testing it on Win 7 64bit but with the PB 32bit compiler.
The wrong calculations occurs then only if the PB-Debugger = On... i just figured out.
Running the code without the PB-Debugger, then all = OK.
So it seems that this (PB Bug?) will happens only on a 64bit ...
Search found 6 matches
- Sat Mar 22, 2014 10:46 am
- Forum: Tricks 'n' Tips
- Topic: SHA-2/HMAC for 32-Bit-Windows
- Replies: 6
- Views: 4186
- Sat Mar 22, 2014 4:17 am
- Forum: Tricks 'n' Tips
- Topic: SHA-2/HMAC for 32-Bit-Windows
- Replies: 6
- Views: 4186
Re: SHA-2/HMAC for 32-Bit-Windows
Hi Helle, it's me again :)
on large *Sources it seems some HMAC calculations goes wrong.
For example, the SHA256 HMAC hex-digest of 1MB NULL-Bytes filled data, with a 32 byte NULL-Byte filed *key should be:
F7B04DA1D2F0C3F59F20FE10115CB839C7DB041333B78ADCE37E7FBC83222B2B
But HMAC_Calculate_32 ...
on large *Sources it seems some HMAC calculations goes wrong.
For example, the SHA256 HMAC hex-digest of 1MB NULL-Bytes filled data, with a 32 byte NULL-Byte filed *key should be:
F7B04DA1D2F0C3F59F20FE10115CB839C7DB041333B78ADCE37E7FBC83222B2B
But HMAC_Calculate_32 ...
- Fri Mar 21, 2014 4:53 pm
- Forum: Tricks 'n' Tips
- Topic: SHA-2/HMAC for 32-Bit-Windows
- Replies: 6
- Views: 4186
Re: SHA-2/HMAC for 32-Bit-Windows
Helle... works great now also on OSX 32bit.
Thank you very much.
Just one question (because i'm not able to "decrypt" the ASM code
)
Is SSE2 required or does the code also run on non-SSE2 CPU's?
Thank you again for fxing the "@@" issue...
Greetings
Melow

Thank you very much.
Just one question (because i'm not able to "decrypt" the ASM code

Is SSE2 required or does the code also run on non-SSE2 CPU's?
Thank you again for fxing the "@@" issue...
Greetings
Melow

- Fri Mar 21, 2014 6:55 am
- Forum: Tricks 'n' Tips
- Topic: SHA-2/HMAC for 32-Bit-Windows
- Replies: 6
- Views: 4186
Re: SHA-2/HMAC for 32-Bit-Windows
Hi
Thank you, works great on Win 7, 32 bit.
I try to compile it under OSX (32bit) but i got compile errors that "@@ is already defined".
Any Ideas?
Greetings
Melow

Thank you, works great on Win 7, 32 bit.
I try to compile it under OSX (32bit) but i got compile errors that "@@ is already defined".
Any Ideas?
Greetings
Melow

- Fri Aug 30, 2013 3:12 am
- Forum: Announcement
- Topic: PurePDF Version 2.0
- Replies: 473
- Views: 281947
Re: PurePDF Version 2.0
Hi Klaus
i loaded PurePDF as lib. Is it possible to implement something like pdf_ASCII85_free(*pointer) ?
Greetings Melow
i loaded PurePDF as lib. Is it possible to implement something like pdf_ASCII85_free(*pointer) ?
Greetings Melow

- Thu Aug 29, 2013 12:43 pm
- Forum: Announcement
- Topic: PurePDF Version 2.0
- Replies: 473
- Views: 281947
Re: PurePDF Version 2.0
Hi Klaus
If ReadFile(0,"C:\somefile.txt")
ASCII85.MEM_DataStructure
ASCII85\pData=AllocateMemory(Lof(0))
ASCII85\lCurSize=Lof(0)
ASCII85\lMaxSize=Lof(0)
ReadData(0,ASCII85\pData,Lof(0))
CloseFile(0)
Characters_per_line=60
If pdf_ASCII85_Encode(@ASCII85,Characters_per_line)
Message$=Chr ...
If ReadFile(0,"C:\somefile.txt")
ASCII85.MEM_DataStructure
ASCII85\pData=AllocateMemory(Lof(0))
ASCII85\lCurSize=Lof(0)
ASCII85\lMaxSize=Lof(0)
ReadData(0,ASCII85\pData,Lof(0))
CloseFile(0)
Characters_per_line=60
If pdf_ASCII85_Encode(@ASCII85,Characters_per_line)
Message$=Chr ...