Thanks Bernd, but due to the fact that the array x as well as a, b and t are defined as 8bit unsigned integers the compiler does the mod 256 automatically.
The problem was that I missed the skipping of rows in the official test vectors.
the command
dd if=/dev/zero bs=1 count=256 | ./rc4_stdio_pb ...
Search found 17 matches
- Fri Mar 03, 2017 4:18 pm
- Forum: Coding Questions
- Topic: RC4 implementation produce wrong test vectors
- Replies: 2
- Views: 1574
- Tue Feb 28, 2017 11:22 pm
- Forum: Coding Questions
- Topic: RC4 implementation produce wrong test vectors
- Replies: 2
- Views: 1574
RC4 implementation produce wrong test vectors
Hi,
I need some help on the following RC4 implementation.
Whenever I call the program like
dd if=/dev/zero bs=1 count=128 | ./rc4_stdio_pb 0102030405 | xxd -g 1
I get b2 39 63 05 f0 3d c0 27 cc c3 52 4a 0a 11 18 a8
69 82 94 4f 18 fc 82 d5 89 c4 03 a4 7a 0d 09 19
b6 8f 78 c2 8d 15 d8 22 23 4c 6c ...
I need some help on the following RC4 implementation.
Whenever I call the program like
dd if=/dev/zero bs=1 count=128 | ./rc4_stdio_pb 0102030405 | xxd -g 1
I get b2 39 63 05 f0 3d c0 27 cc c3 52 4a 0a 11 18 a8
69 82 94 4f 18 fc 82 d5 89 c4 03 a4 7a 0d 09 19
b6 8f 78 c2 8d 15 d8 22 23 4c 6c ...
- Thu Dec 10, 2015 12:22 am
- Forum: Feature Requests and Wishlists
- Topic: Support for ARM-Linux
- Replies: 121
- Views: 59954
Re: Support for ARM-Linux
I'm simply amazed how many ARM/Cortex boards and solutions existing meanwhile. This is by far the smallest ready to use mini-computer I came across so far CuBox-i
And they offer a bunch of Linux distros ready to install Ignition Installer
I suppose PureBasic for ARM/Cortex would offer a great ...
And they offer a bunch of Linux distros ready to install Ignition Installer
I suppose PureBasic for ARM/Cortex would offer a great ...
- Wed Dec 09, 2015 1:46 am
- Forum: Coding Questions
- Topic: Faster MD5 File Hashes.
- Replies: 8
- Views: 2381
Re: Faster MD5 File Hashes.
A bit of a streamlining of the inner loop by eliminating unnecessary calculations of the reamining byte, etc., which will give some fraction of a second more speed depending on the file size.
If (ReadFile(0, FileName))
If (*Buffer) And (StartFingerprint(0, #PB_Cipher_MD5))
readByte = ReadData(0 ...
If (ReadFile(0, FileName))
If (*Buffer) And (StartFingerprint(0, #PB_Cipher_MD5))
readByte = ReadData(0 ...
- Tue Dec 08, 2015 9:42 pm
- Forum: Coding Questions
- Topic: RunProgram does not produce a result on MacOSX
- Replies: 2
- Views: 876
Re: RunProgram does not produce a result on MacOSX
Hi Bernd,
thanks for you quick reply. Generally spoken your code give me a result, but I experience some malloc error
./ls-Ramiscut
ls -Ramiscut: ac363a95f1b69b5609763d7aa68fcfd1
ls-Ramiscut(60676,0x7fff701eacc0) malloc: *** error for object 0x10083b808: incorrect checksum for freed object ...
thanks for you quick reply. Generally spoken your code give me a result, but I experience some malloc error
./ls-Ramiscut
ls -Ramiscut: ac363a95f1b69b5609763d7aa68fcfd1
ls-Ramiscut(60676,0x7fff701eacc0) malloc: *** error for object 0x10083b808: incorrect checksum for freed object ...
- Tue Dec 08, 2015 8:14 pm
- Forum: Coding Questions
- Topic: RunProgram does not produce a result on MacOSX
- Replies: 2
- Views: 876
RunProgram does not produce a result on MacOSX
I'm struggling with getting the result using the following code. In fact it seems to run forever and does not deliver any result at all.
pid = RunProgram("ls", "-Ramiscut", "/Users/me/Library/Caches/", #PB_Program_Open | #PB_Program_Wait | #PB_Program_Read)
If (pid)
Define.l BufferSize ...
pid = RunProgram("ls", "-Ramiscut", "/Users/me/Library/Caches/", #PB_Program_Open | #PB_Program_Wait | #PB_Program_Read)
If (pid)
Define.l BufferSize ...
- Tue Dec 08, 2015 6:54 pm
- Forum: Coding Questions
- Topic: Faster MD5 File Hashes.
- Replies: 8
- Views: 2381
Re: Faster MD5 File Hashes.
Just changed the code below and now it take only 0,4600000083 seconds for the 100MB file and 3,3949999809 seconds seconds for the 680MB file, which is faster than the md5 program of the OS. Is that possible?
;-----------------------------------------------------------
;
; Calculate the MD5 digest ...
;-----------------------------------------------------------
;
; Calculate the MD5 digest ...
- Tue Dec 08, 2015 2:51 pm
- Forum: Feature Requests and Wishlists
- Topic: Support for ARM-Linux
- Replies: 121
- Views: 59954
Re: Support for ARM-Linux
And surprisingly there are already some Super-Mini-PC available
with preinstalled full Windows 8.1 Bing Version
http://www.orbsmart.com/products/orbsmart-aw-02/ That looks like a rebadged MeegoPad to me. Holly cow, the Meegopad has more RAM and Audio-Out and is far cheeper Meegopad T02 Ubuntu ...
with preinstalled full Windows 8.1 Bing Version
http://www.orbsmart.com/products/orbsmart-aw-02/ That looks like a rebadged MeegoPad to me. Holly cow, the Meegopad has more RAM and Audio-Out and is far cheeper Meegopad T02 Ubuntu ...
- Tue Dec 08, 2015 2:36 pm
- Forum: Feature Requests and Wishlists
- Topic: Support for ARM-Linux
- Replies: 121
- Views: 59954
Re: Support for ARM-Linux
But yes, these products give me hope, that x68 compatible boards which can compete with the raspberry are only a few years away. Depending on the kind of project to realise there is just one Compute-Stick that comes with Linux preinstalled
Intel Compute Stick STCK1A8LFCR (Linux)
And as you are ...
Intel Compute Stick STCK1A8LFCR (Linux)
And as you are ...
- Tue Dec 08, 2015 12:59 pm
- Forum: Feature Requests and Wishlists
- Topic: Support for ARM-Linux
- Replies: 121
- Views: 59954
Re: Support for ARM-Linux
And surprisingly there are already some Super-Mini-PC available
with preinstalled full Windows 8.1 Bing Version
http://www.orbsmart.com/products/orbsmart-aw-02/
and as a little black box with preinstalled full Windows 8.1 (Windows 10 updateable)
http://www.orbsmart.com/products/orbsmart-aw-05 ...
with preinstalled full Windows 8.1 Bing Version
http://www.orbsmart.com/products/orbsmart-aw-02/
and as a little black box with preinstalled full Windows 8.1 (Windows 10 updateable)
http://www.orbsmart.com/products/orbsmart-aw-05 ...
- Tue Dec 08, 2015 12:25 pm
- Forum: Feature Requests and Wishlists
- Topic: Support for ARM-Linux
- Replies: 121
- Views: 59954
Re: Support for ARM-Linux
There is one upcoming very interesting device for PureBasic on Win/Linux perhaps
LattePanda - A £45 Win10 Computer For Everything
https://www.kickstarter.com/projects/13 ... escription
Cheers,
Karl-Uwe
LattePanda - A £45 Win10 Computer For Everything
https://www.kickstarter.com/projects/13 ... escription
Cheers,
Karl-Uwe
- Sun Dec 06, 2015 6:53 pm
- Forum: Feature Requests and Wishlists
- Topic: Support for ARM-Linux
- Replies: 121
- Views: 59954
Re: Support for ARM-Linux
No news so far.
It seems that the team is busy enough to maintain Purebasic and Spiderbasic for the 3 Intel-Platforms. Yes, SpiderBasic is somewhat a different way of programming JavaScript, somehow a bit like their competitor Xojo offers. It needs to be run in a browser, and perhaps you need a web ...
It seems that the team is busy enough to maintain Purebasic and Spiderbasic for the 3 Intel-Platforms. Yes, SpiderBasic is somewhat a different way of programming JavaScript, somehow a bit like their competitor Xojo offers. It needs to be run in a browser, and perhaps you need a web ...
- Fri Dec 04, 2015 5:40 pm
- Forum: Feature Requests and Wishlists
- Topic: Support for ARM-Linux
- Replies: 121
- Views: 59954
Re: Support for ARM-Linux
Any news so far when/if PureBasic might be available for ARM?
Would be nice to have one programming language for building software for the "Internet of Things" on ARM CPUs and connect them with an App on a Windows/Linux/Mac OS X Desktop/Notebook/Server and perhaps to a SmartPhone/Tablet.
Cheers ...
Would be nice to have one programming language for building software for the "Internet of Things" on ARM CPUs and connect them with an App on a Windows/Linux/Mac OS X Desktop/Notebook/Server and perhaps to a SmartPhone/Tablet.
Cheers ...
- Sun Jan 12, 2014 10:21 pm
- Forum: Off Topic
- Topic: Howto un-subscribe this forum?
- Replies: 1
- Views: 1255
Howto un-subscribe this forum?
I like to un-subscribe this forum, but unfortunately can't find such an option in my profile.
Cloud someone be so kind and help me on this issue?
With kind regards,
Karl-Uwe
Cloud someone be so kind and help me on this issue?
With kind regards,
Karl-Uwe
- Sat Sep 03, 2011 2:45 pm
- Forum: General Discussion
- Topic: Wrong MD5 Checksum in PB 4.51 (MacOS X x86)
- Replies: 8
- Views: 3057
Re: Wrong MD5 Checksum in PB 4.51 (MacOS X x86)
@nco2k
Ahh, thanks a lot.
Cheers,
Karl-Uwe
Ahh, thanks a lot.
Cheers,
Karl-Uwe