Finding Mod-p Square Roots with the Tonelli-Shanks Algorithm

  Рет қаралды 6,575

JacksonInfoSec

JacksonInfoSec

Күн бұрын

Пікірлер: 11
@MrCoreyTexas
@MrCoreyTexas 7 ай бұрын
I had never heard that odd primes are congruent to either 1 or 3 mod 4, thanks for teaching me something new today! I'll have to think about that.
@MrCoreyTexas
@MrCoreyTexas 7 ай бұрын
Euler was an astounding mathematician, I didn't know about Euler's criterion until now
@anntakamaki1960
@anntakamaki1960 Жыл бұрын
Awesome video sir ❤
@Ubertech-v6t
@Ubertech-v6t Жыл бұрын
where is i can find code from video?please answer🙏🙏🙏
@pizdataya6604
@pizdataya6604 5 ай бұрын
thank you!
@MrCoreyTexas
@MrCoreyTexas 7 ай бұрын
Maybe you could give some insight as to why it's called a quadratic residue? I guess that sounds better than "has an integer square root mod p"? Would a cube root be called a cubic residue and so on?
@JacksonInfoSec
@JacksonInfoSec 5 ай бұрын
You should interpret "residue" as a synonym for "remainder" (with respect to some modulus). Also "quadratic" should be interpreted as "squaring". So, an integer r is a quadratic residue modulo n if there exists an integer x such that x^2=r( mod n). Namely, r is the remainder of a perfect square modulo n. For example with the modulus of 4, the congruence x^2=r (mod 4) is solvable only for r=0 or r=1, and not solvable for r=2 or r=3. So 0 and 1 are the quadratic residues modulo 4. So, we would say r is a cubic residue modulo n if the congruence x^3=r(mod n) is solvable.
@schrodingerbracat2927
@schrodingerbracat2927 3 жыл бұрын
nice! btw, on Python 3, one can use formatted strings in print statements.
@trollmole8637
@trollmole8637 3 жыл бұрын
For the loop where you dividing by two can’t you just do bit search … as in it is odd only if least significant bit is 1… ie you just searching for first occurrence of 1 .. and shift that number of bits.
@JacksonInfoSec
@JacksonInfoSec 3 жыл бұрын
Yes you could.
@MrCoreyTexas
@MrCoreyTexas 7 ай бұрын
Now I know one of the reasons Bitcoin picked SECP256K1, the prime it uses is congruent to 3 mod 4, so it's way easier to find your y's given an x, which is important when they compress public keys and only say whether y is even or odd
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Square roots mod p -- Number Theory 25
20:14
Michael Penn
Рет қаралды 13 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Math News: The Fish Bone Conjecture has been deboned!!
23:06
Dr. Trefor Bazett
Рет қаралды 188 М.
The Rijndael S-Box
59:30
JacksonInfoSec
Рет қаралды 6 М.
Square Roots Modulo P - Number Theory 25
20:14
MathMajor
Рет қаралды 2,6 М.
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 1 МЛН
Elliptic Curve Cryptography - Part 3 - Multiples of a Base Point
23:30
Why There's 'No' Quintic Formula (proof without Galois theory)
45:04
not all wrong
Рет қаралды 550 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 346 М.
Breaking RSA - Computerphile
14:50
Computerphile
Рет қаралды 369 М.
setImmediate is Bad, Actually
48:32
Theory in Motion
Рет қаралды 20