Re: the POTP and speed testing
- From: Maaartin <grajcar1@xxxxxxxxx>
- Date: Fri, 27 Mar 2009 23:25:33 -0700 (PDT)
i starts at 0 and iterates with every loop.
You mean, then construction
repeat ... until i = 14
does the iteration just like
for (i=0; i<=14; ++i) {...}
in C, right?
Every time I have put something that is code specific such as "for i = 0 to
14" as it is in VB i've been told to learn notation.
This for-loop is VB or pascal... and I'm sure, any C or Java or
whatever programmer understands it.
Using "repeat... until"
is language ambiguous which is the whole point because different languages
have different syntax.
Using repeat-until instead of for is plain obfuscation!
http://en.wikipedia.org/wiki/Obfuscated_code#Rewrite_for_as_while._Use_special_values.
However, "repeat...until" is a language construct just like "for". You
may call it "just notation".
3. WTF is PFB? It gets called but is nowhere defined.
PFB is plaintext feedback, it's the same thing as CFB mode except with
plaintext instead of cyphertext.
That's fine explanation. But why don't you write there
"PlaintextFeedback" instead of "PFB" so everybody would know?
It doesn't need to be defined because it's ...
It does. You need at least to say what it should do. Or at the very
least, what the three letters mean. Pseudofolliculitis? Pennsylvania
Farm Bureau? Payload Forward Bus? pentafluorobenzyl?
4. You wrote "Function Rot ... reverse the byte order of p". It's just
as good as "function add... multiplies the operands". You know what I
mean, don't you?
No I don't.
I'll put it a different way which you may understand better.
So do I:
What may the reason be for calling something "Rot" what doesn't do any
rotation? Why don't you call it "ReverseByteOrder" or "ByteSwap" or
"BSwap". Calling it Rot is surely misleading.
In either case, the Rot no longer functions this way or in this location. It
had to be modified to get the extra 30% throughput and attempt to strengthen
against related key attacks.
BSwap is an instruction of current Intel/Amd processors which performs
in a single cycle. Optimizing an interpreted basic or whatever is
waste of time; if you need decent speed and portability use C, for
maximum speed use asm (but don't do it before the final version).
.
- Follow-Ups:
- Re: the POTP and speed testing
- From: Antony Clements
- Re: the POTP and speed testing
- References:
- the POTP and speed testing
- From: Antony Clements
- Re: the POTP and speed testing
- From: SG
- Re: the POTP and speed testing
- From: Antony Clements
- Re: the POTP and speed testing
- From: Maaartin
- Re: the POTP and speed testing
- From: Antony Clements
- the POTP and speed testing
- Prev by Date: Re: the POTP and speed testing
- Next by Date: Re: the POTP and speed testing
- Previous by thread: Re: the POTP and speed testing
- Next by thread: Re: the POTP and speed testing
- Index(es):
Relevant Pages
|