3,981 reputation
1830
bio website
location Wellington, New Zealand
age
visits member for 3 years
seen 12 secs ago

I am an undergraduate computer science and mathematics student in New Zealand. My fields of interest are computer graphics, in particular the physics of light transport, and to some extent cryptography, as well as programming and software development in general.


Jul
11
comment In RSA, why does $p$ have to be bigger than $q$ where $n=p \times q$?
You do realize that since $p \ne q$, one must be greater than the other, right?
Jul
3
comment Exactly two of the four roots must be greater than N/2
@habillqabill If this answers your question, would you consider accepting it by clicking on the check mark on the left?
Jul
3
comment Math to replace s-boxes - Good or bad idea?
I think you will find S-boxes are generally just not arbitrary permutations but often need to fulfill security properties such as resistance against linear/differential cryptanalysis (in the context of the ciphers they are used with) and not all S-boxes can be (reasonably) reached by your first algorithm, which means you also cannot efficiently "invert" the procedure to find $(p, q)$ from an arbitrary S-box, not even for 8-bit ones (perhaps it can be done if you add more degrees of freedom to your formula, but then you run the risk of being too expensive/vulnerable to side channel attacks).
Jul
2
awarded  Curious
Jul
2
reviewed Approve How do I choose the best 3*3 s-boxes?
Jul
1
comment Exactly two of the four roots must be greater than N/2
@tylo This is basically what my answer says...
Jul
1
comment Exactly two of the four roots must be greater than N/2
@habillqabill Suppose $n$ is odd. Let $r$ be any integer between $1$ and $n$. Now suppose $r$ is less than $n/2$, then we are done. If $r$ is in fact greater than $n/2$, then $n - r < n/2$ and we are done. Basically, no matter $r$, either $r$ or $n - r$ will be less than $n/2$ (since both will fall on opposite sides of $n/2$). It's a symmetry argument.
Jul
1
revised Exactly two of the four roots must be greater than N/2
deleted 3 characters in body
Jul
1
answered Exactly two of the four roots must be greater than N/2
Jun
26
comment RSA example-calculation: Public Key = Private Key (e = d)
Note that $e$ cannot be its own inverse unless $e > \sqrt{\varphi(n)}$ (or $\lambda(n)$), or $e = 1$ of course, so in real usage with a normal public exponent $e$ this cannot happen.
Jun
22
comment Modulo settings for successful encryption?
You can emulate mod on a calculator like so: to compute a mod b, compute a/b, round it down, multiply b by the result and subtract a from it. E.g. for 77 mod 8, 77 / 8 = 9.62, so we have 77 mod 8 = 77 - 8 * 9 = 5. Or you can just multiply the fractional part by b, but you tend to run into precision issues quicker doing it that way.
Jun
14
comment Strategy for random CTR initial counter values
@RichieFrame "No message is more than $2^{32}−2$ blocks long"
Jun
11
comment Given $n$ bits, how many “truly random” sequences/numbers can be constructed?
@paul The basic idea of these test suites is to first assume you have access to a uniform bit generator (or a suitably large sample generated by said generator), run statistical tests on it, see how much the results deviate from the expected results, and then conclude after you have reached a statistically significant outcome. They don't measure the "randomness" of the data sample, they simply give confidence towards the hypothesis that "this generator produces uniformly distributed bits". Is this what you mean?
Jun
1
comment How Does Progressive Hashing Work?
It would be difficult to do otherwise, conceptually..
May
31
comment Correct way to read a given permutation cipher?
The first permutation just shifts each letter to the right cyclically. Look at the permutation: (1, 2, 3) => (3, 1, 2). So (1=V, 2=E, 3=N) is mapped to (3=N, 1=V, 2=E), that is, NVE.
May
31
answered RSA: Fermat's Little Theorem and the multiplicative inverse relationship between mod n and mod phi(n)
May
31
revised RSA: Fermat's Little Theorem and the multiplicative inverse relationship between mod n and mod phi(n)
cleaned latex a bit
May
30
comment Security of the iterated Hill Cipher
Note: the first two papers are behind a paywall.
May
27
comment Want to use ECC but am clueless
This is off-topic as it as about security software recommendation rather than actual cryptography. But I think you should really rethink your problem - generally end users should not concern themselves with which algorithms are being used to secure their data, just that it is, so a general purpose tool will probably serve you better (and it may or may not use elliptic curve technology), otherwise you are probably only going to find hobby, proof-of-concept tools that are probably flawed and insecure...
May
21
awarded  Enlightened