Re: (long) An AES implementation for 32-bit platforms

From: Mok-Kong Shen (mok-kong.shen_at_t-online.de)
Date: 06/11/03


Date: Wed, 11 Jun 2003 21:03:19 +0200


I wish herewith to express my gratitude to a number of
posters in this thread who have very quickly helped to
locate some coding errors of mine that had splipped
through the scrutination of the VC++ compiler that I
used, even though the results it produced were correct.
The following is my current list of corrections to be
applied to the code that I originally posted:

In Part 1:

Change 'void main()' to 'int main()'.
Change in the body of main 'return;' to 'return 0;'.

In Part 2:

Change in the function display 'int i,k=0;' to 'int i;'.
Change 'void main()' to 'int main()'.
Change in the body of main 'return;' to 'return 0;'.
Change in copyright notice under (4) 'consitute'
to 'constitute'.

I have now also successfully run the code under the C++
compiler of DJGPP with the option -Wall in compilation.

This is also the first time that I really 'experience'
in person the almost magic power of the internet. For,
within hours after making my code known, I was already
able to obtain that much valuable needed feedback, a
situation that would have been utterly unconceivable
in the pre-internet era.

Finally I like to repeat my solicitation to all readers
that you would kindly supply me informations concerning
the quality of my code (efficiency, readability,
portability, etc.) and other relevant issues
(interoperability, etc.), so that eventually a next
release of the code could incorporate certain code
improvements or enhancements of features. You could
either post to the group or e-mail me directly.

Thanks in advance.

M. K. Shen



Relevant Pages

  • Re: fields for methods?
    ... but only by a compiler that is allowed to ... struct A {void foo();}; ... int static_instance i = 0; ... Is not possible because foo is the only member of A... ...
    (comp.programming)
  • Re: fields for methods?
    ... void A::foo{ ... but only by a compiler that is allowed to ... int static_instance i = 0; ... it totally breaks the idea of encapsulation, which is the reason a lot ...
    (comp.programming)
  • Re: Virtual Machine implementation problem, Please help me to spot the bug
    ... This is non-standard (Conceivably your compiler allows it ... tmp1 might not be correctly aligned for u32. ... void change_endian{ ... typedef unsigned int u32; ...
    (comp.lang.c)
  • Re: C Questions
    ... No prototype is given for this function, so the compiler cannot ... To prototype a function with no parameters, use void: ... %d takes an int argument, ...
    (comp.lang.c)
  • Re: The_Sage & void main()
    ... shall have a return type of type int but otherwise in all other respects ... > main may have the return type void then main may indeed have the ... If the compiler accepts void main, then you may use void main ... about whether void mainis conforming or not. ...
    (comp.lang.cpp)