Raised This Month: $32 Target: $400
 8% 

[INC] Tiny Encryption Algorithm


Post New Thread Reply   
 
Thread Tools Display Modes
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 09-15-2011 , 16:53   Re: [INC] Tiny Encryption Algorithm
Reply With Quote #11

For this line 57:
Code:
z -= (y << 4 ^ y >>> 5) + y ^ sum + key[sum >>> 11 & 3];

Are there supposed to be 3 arrows( > ) or is that a typo? If so, what is the meaning of that?

It's used in other places as well, so I'm assuming it has some meaning.

I found this and noticed it only uses two arrows in the place where that line is, so I'm in doubt currently.

Any and all answers appreciated.
__________________
Hi.
Kreation is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-15-2011 , 16:57   Re: [INC] Tiny Encryption Algorithm
Reply With Quote #12

e1 >>> e2

Results in the logical shift to the right of e1 by e2 bits.
The shift operation is unsigned: the vacant bits of the result are filled with zeros.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 09-15-2011 , 17:15   Re: [INC] Tiny Encryption Algorithm
Reply With Quote #13

Quote:
Originally Posted by Emp` View Post
e1 >>> e2

Results in the logical shift to the right of e1 by e2 bits.
The shift operation is unsigned: the vacant bits of the result are filled with zeros.
I understand that, but I always thought it was just with two arrows and not three. I should've been more clear, sorry about that.
__________________
Hi.
Kreation is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode