Talk:The ISAAC cipher

From Rosetta Code

Pseudo-code?

You might want to add pseudo-code and a description of the algorithm as well as a pointer to the C-code. More work, but would lead to a better task. --Paddy3118 (talk) 08:16, 22 July 2014 (UTC)

Thanks for the suggestions. This is my first Rosetta task, so I was naturally a little unsure as to what is allowable. I decided to err on the side of brevity, but I'll be happy to pad it out a little with more detail, if that's permitted. Bob Jenkins' original C reference code has been included here under C, my Pascal port of same under Pascal. The Pascal should (or will have to) serve as 'pseudocode' for the rather convoluted algorithm. After all, Pascal was originally developed to be a "teaching language" and you often find pseudocode that resembles Pascal very closely :) This task really falls into two halves: the translation of ISAAC, and the solution of my encryption task. Obviously far more leeway is permissible in the latter.
There was something I needed to ask: How to include an auto-updating table of contents of the sort seen on other task pages? I'm afraid my wiki skills are rudimentary. --BlaiseP (talk) 10:57, 22 July 2014 (UTC)
Hi BlaiseP, how about:
  1. Finishing off the C example by adding a main() routine that accomplishes the task.
  2. Mentioning Pascal as well as C as being a reference implementation?
On the contents section, it will automagically appear when there are 4+ solutions with {{herader|...}} sections.
Hopefully that will be enough to get others started. (P.S: Welcome to RC :-)
--Paddy3118 (talk) 11:23, 22 July 2014 (UTC)
Thanks Paddy :) Actually I've completed a few task solutions over the past year or so, but this is the first one I've actually attempted to inaugurate. My C skills are on the rusty side, I'm afraid. I can read C ok, insofar as what I read can be translated to my 'native' language and first love, Pascal. I usually get confused over which darn variables should be pointers (or not). I'll give completing it a go if there is no input from seriously competent C hackers over the next week or so. As to _reference_ implementations of ISAAC, there is really only one: the C. Everything else has been a port of that. I only mentioned 'reference' in connection with Pascal because it is the reference solution of this _task_, and hopefully will help others complete the initialization and encryption part. --BlaiseP (talk) 11:58, 22 July 2014 (UTC)
As suggested, I have coded a fully working solution in C and brought Pascal into line with this. The two programs' XOR encryption outputs are identical. --BlaiseP (talk) 10:14, 23 July 2014 (UTC)

Pascal Compiler error(s)

Curious as I am sometimes, I installed free Pascal and got this compiler error(s) https://www.dropbox.com/l/a6rIEG5zByiM4UDKhwGMpr? (The IDE does not allow copy / paste :-( Any advice?? --Walterpachl (talk) 10:35, 23 July 2014 (UTC)