Re: (long) An AES implementation for 32-bit platforms
From: Mok-Kong Shen (mok-kong.shen_at_t-online.de)
Date: 06/12/03
- Next message: André Pönitz: "Re: Avoiding C++ Templates In Cipher Implementation"
- Previous message: ink: "Re: Stream Cipher Like SEAL Wanted ...."
- In reply to: Richard Heathfield: "Re: (long) An AES implementation for 32-bit platforms"
- Next in thread: Richard Heathfield: "Re: (long) An AES implementation for 32-bit platforms"
- Reply: Richard Heathfield: "Re: (long) An AES implementation for 32-bit platforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 12 Jun 2003 09:39:19 +0200
Richard Heathfield wrote:
>
> Mok-Kong Shen wrote:
[snip]
> > That means // would have
> > been a immediately clear sign for you that the program
> > isn't C
>
> Of course. But it was also immediately clear to me that the program /was/ C,
> because the author implied that it was, in referring to the C standard.
> Contradiction, you see?
Let me first note that you in one post referred to
// as two division operators and not simply as the
C++ comment symbol and that's something not normal
in discussions about C and C++ and is in my view very
confusing. (It actually prompted me in a post that
was not sent to ask you where exactly I had employed
any such arithemetic divisions, but after having typed
in that question I realized that you must have meant
the comment symbol.) But see below.
> > But
> > in this case, i.e. assuming that I used a C compiler
> > that doesn't accept //, I could certainly never have
> > compiled it, right? That is, the only futher case on
> > this deduction line that remains would then be the
> > pure cheating case, right? This is why I continue to
> > wonder about your deduction procedure.
>
> Well, my choices were to believe your code (which was neither legal C nor
> legal C++) or to believe your implication (where you mentioned conformance
> to the ISO C standard).
>
> Your code took no significant and knowing advantage of the C++ language.
> Show any programmer (that knows both languages) five consecutive lines
> taken from it at random, and ask them whether it is C or C++, and they are
> likely to answer "C".
O.k. Would it be C for a programmer that uses a C compiler
that doesn't accept // as the comment symbol (as in
your case with the 'conforming' mode)? (1) He may never
have seen that use of //, which occurs not only in one
single place in my code (which could be a programming
error) but in many places, and hence become suspicious
of his assumption. (2) If he knows that C++ employs //
as comment symbol and his compiler is for C (assuming
that he doesn't know that the new standard allows it),
then he wouldn't try it with his compiler and consider
the code to be C++. (3) If he knows that // is in C++
and also in the new C standard but knows that his
compiler is of the old C standard (hence doesn't
accept //), then he would attempt (in case he couldn't
find a pure C compiler that is of the new standard) to
see whether a C++ compiler (e.g. in your case with the
'conforming' off), which also accepts //, could compile
my (assumed C) code, in order to see at least whether
the main logic of the code is right (that's more
important, isn't it?).
I have meanwhile discovered other gaps in your deduction
logic. If you could sufficiently counter-argue the
above, I'll bring them up.
Thanks.
M. K. Shen
- Next message: André Pönitz: "Re: Avoiding C++ Templates In Cipher Implementation"
- Previous message: ink: "Re: Stream Cipher Like SEAL Wanted ...."
- In reply to: Richard Heathfield: "Re: (long) An AES implementation for 32-bit platforms"
- Next in thread: Richard Heathfield: "Re: (long) An AES implementation for 32-bit platforms"
- Reply: Richard Heathfield: "Re: (long) An AES implementation for 32-bit platforms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|