In cryptography, XTEA (eXtended TEA) is a block cipher designed to correct weaknesses in TEA. The cipher's designers were David Wheeler and Roger Needham of the Cambridge Computer Laboratory, and the algorithm was presented in an unpublished technical report in 1997 (Needham and Wheeler, 1997). It is not subject to any patents.
Like TEA, XTEA is a 64-bit block Feistel cipher with a 128-bit key and a suggested 64 rounds. Several differences from TEA are apparent, including a somewhat more complex key-schedule and a rearrangement of the shifts, XORs, and additions.
This standard C source code, adapted from the reference code released into the public domain by David Wheeler and Roger Needham, encrypts and decrypts using XTEA:
The changes from the reference source code are minor:
unsigned long
type rather than the 64-bit clean uint32_t
.const
types.v1 +=
Push up
Haha, I never knew that a kid like me
Could take his mic around the world
(World)
Flash the big S.D.
And rock the masses
From Madrid to Calabasas
Tijuana, Mexico
Bootleg demos in Tokyo
Say they know me though
'Cause I'll be puttin' in work
Commit my life to rebirth
Well respected, 'cause that's my word
And I'm sure you heard
(Heard)
'Bout a new sound goin' 'round
She might have left my hood
But she was born in my town
You didn't know, thought we was new on the scene
(Well it's alright, it's alright)
I know you know, I see you smilin' at me
(Well it's alright, it's alright)
Boom!
Here comes the
Boom!
Ready or not?
Here comes the boys from the South
Boom!
Here comes the
Boom!
Ready or not?
How you like me now?, I say
We rep the South
So what you talkin' 'bout?
I'm not runnin' off my mouth
I know this without a doubt
'Cause if you know these streets
Then these streets know you
An' when it's time to handle business
Then you know what to do
(What to do)
Me and my crew
We stay true, old skool or new
Many were called
But the chosen are few
(We are few)
We rise to the top
What you want, just in case you forgot
Rush the stage, grab my mic
Show me what you got?
You didn't know, thought we was new on the scene
(Well it's alright, it's alright)
I know you know, I see you smiling at me
(Well it's alright, it's alright)
Boom!
Here comes the
Boom!
Ready or not?
Here comes the boys from the South
Boom!
Here comes the
Boom!
Ready or not ?
How you like me now?, I say
Boom!
Here comes the
Boom!
Ready or not?
Here comes the boys from the South
Boom!
Here comes the
Boom!
Ready or not?
How you like me now?
Is that all you got?, haha
I'll take your best shot
Is that all you got?, ha ha
I'll take your best shot
Is that all you got?, I'll take your best shot
Is that all you got?, I'll take your best shot
Is that all you got?, I'll take your best shot
I'll take your best shot, I'll take your best shot
Is that all you got?
(Well it's alright, it's alright)
I'll take your best shot
Is that all you got?
(Well it's alright, it's alright)
I'll take your best shot
Is that all you got?, I'll take your best shot
(Well it's alright, it's alright)
Take your best shot, take your best shot
Is that all you got?, I'll take your best shot
(Well it's alright, it's alright)
Take your best shot, take your best shot
Boom!
Here comes the
Boom!
Ready or not?
Here comes the boys from the South
Boom!
Here comes the
Boom!
Ready or not?
Haha, how you like me now?, I say
Boom!
Here comes the
Boom!
Ready or not?
Here comes the boys from the South
Boom!
Here comes the
Boom!
Ready or not?