instruction
stringlengths
32
27.2k
Most hash functions are designed to be fast in conventional processors, but there are contexts where machine integers either don't exist, or aren't the most efficient option. For example, zk-snark circuits don't have these, and brainfuck has only increment and decrement. If you needed fast hash functions on these envir...
I am studying on cryptanalysis of WhatsApp software. I know this is secure software but I want to present a documentary on this topic as a seminar at the university for applied mathematics students. As you know, WhatsApp is based on the Signal protocol, and for this reason, I first focused on the structure of this prot...
I posted a question recently about whether a celestial body could be used in cryptography. I got many fantastic responses explaining how the celestial object could be used to generate a common reference string. My follow up question is then: if it were possible and feasible to use a celestial object to allow two partie...
In NSA's FAQ on Quantum Computing and Post-Quantum Cryptography, it is mentioned as Q: Should I use a QKD system to protect my NSS from a quantum computer? A: No. The technology involved is of significant scientific interest, but it only addresses some security threats and it requires significant engineering modificat...
So, the question is, a commitment scheme on elliptic curve is given. Initialisation phase: There is an elliptic curve EC, generator point $G$ over $GF(p)$, which creates a group, and random prime number $e$. Choose an $x$. Calculate $M = x \cdot G$. Calculate $M' = e \cdot M$. Extract $xM$, where $xM$ is an $x$ coordi...
This says $f_n$ is memory hard if, for any space $S$ and time $T$, $S\cdot T \in \Omega(n^2)$. My questions: What is $S$? Space? E.g. bytes of available memory? What is $n$? Bytes of requested memory by the memory hard function? What is $T$? Number of rounds? How good is this definition? E.g. how tight is it? E....
I'm using Python to build a system in which users (accounts on a blockchain: defined by a public key and a secret key) need to communicate with each other securely and I think asymmetric encryption is the way to do it. For example, if User A wants to send a message to User B, they encrypt the message with User B's publ...
I'd like to allow the user to supply a password as input to some PBKDF, which I will use to construct a key for file encryption (currently using aes-256-ctr. It may change as I learn more). I am considering using scrypt. Do I need to do any escaping, sanitization, or other checks on the user input I will pass to scrypt...
Elliptic curve cryptography (ECC) has been gaining a lot of popularity recently because of its security. I tend to find the process of encoding plaintext using ECC particularly interesting so I was wondering, has it been proven/disproven that you can find other curves based on which you can create cryptosystems? If it ...
What is the difference between Functional Encryption from Indistinguishable Obfuscation? Is one of them having more stronger security than the other?
I understand how the Index Calculus algorithm works - I know & understand the steps. I understand how the steps are derived. However, I am not able to figure out why it works. I can understand why Pohlig-Hellman works - PH reduces the computation of the discrete log in $G$ to the computation of the discrete log in prim...
If we have a message space M {0,1,2,3,4,5,6} and likewise keyspace is K = {0,1,2,3,4,5,6} (generator choosen uniform keys k) We define our encryption to be the XOR of their bitwise rep on K and M using 4 bits {0000, 0001, 0010, 0011, 0100, 0101, 0110} This is one time pad right? Because we are XORing and using the a ke...
Do you think the format preserving encryption(FPE) schemes have any limitation with respect to other conventional block ciphers? Do FPE have a wide range of applications to be a future research area?
I am trying to study the CSIDH algorithm. I have some beginner background in elliptic curves and I have been following Andrew Sutherland's lectures (https://math.mit.edu/classes/18.783/2019/lectures.html) to understand the endomorphism rings and the class group action and how we can apply the theory over complex curves...
In ECC, there is a parameter known as CM discriminants. Suppose that the trace of the curve is $t$ in $Z_p$. The amount of $s^2$ is the largest square dividing $t^2-4p$ then $\frac{t^2-4p}{s^2}$ is a square-free negative integer. The CM discriminant is $\frac{t^2-4p}{s^2}$ if $\frac{t^2-4p}{s^2} \mod 4 = 1$, otherwise ...
In https://eprint.iacr.org/2014/130.pdf , has been suggested to select the positive trace. What is the reason for this? What happened if we select the negative trace? Is there any security problem for negative traces? How for Edward curves?
I am curious (not technically informed) if the number-to-number cipher is common/useful in cryptography. Imagine, we want to cipher integer y to integer x. Using a formula like x = 2 * y - 1 one can easily decipher by having a few examples of matching x-y. The first problem is that the sequence of y integers is identi...
Are there any pseudo random number generator based on Galois fields? The source of the AES randomness lies in the GF, so GF should be capable of generating random bits. Why are there no such generators?
Given a ciphertext, after performing a frequency analysis on it, how would you identify it as a hill cipher? What should i expect to see in the statistics?
The ECDSA standard mandates that during verification we check that an intermediate calculation does not lead to the point-at-infinity (see Step 5. in this summary on Wikipedia ). But why do we check for this? That is, how do you as an attacker actually trigger this event without knowledge of the private key? In the abo...
While reading through the sections about decryption in PKCS#1 v2.2, I noticed that the decryption algorithms are required to output the failure symbol: decryption error when the RSA maths subroutine reports ciphertext representative out of range. While notes on security consideration says padding removal should be a "p...
For example, for a randomly generated password of 28 lowercase letters, which is about 128 bits of entropy, how would adding a space after every four characters affect it? ijaxjnddkcswzovcrpbnqqiwaqyb ijax jndd kcsw zovc rpbn qqiw aqyb
In his design of Salsa20, Bernstein writes to ensure non-linearity he chose 32-bit addition (breaking linearity over $Z/2$), 32-bit xor (breaking linearity over $Z/2^32), and constant-distance 32-bit rotation (diffusing changes from high bits to low bits). Can you help me understand this? A linear function is one suc...
Poly1305 uses $r, r^2, r^3$ and $r^4$. I understand this if $r$ is a generator of the finite field. But since $r$ can be any random non-zero number, won't its exponents be non-uniform distributed? That is, even if $r$ is chosen with uniform random over the field, $r^4$ is not uniform over the field. Why isn't this a...
I have been looking at the Cryptography: Theory and Practice book by Stinson and Paterson and when I came to the Schnorr identification scheme, I read the sentence that goes something like this: Observe that $v$ can be computed as $(\alpha ^a)^{-1} \bmod p$, or (more efficiently) as $\alpha ^{q-a}\bmod p$. In this cont...
I have been recently studying the Schnorr identification scheme. The book Cryptography: Theory and Practice by Stinson and Paterson states the following about the domain parameters in the Schnorr identification scheme: The scheme requires a trusted authority, or TA, who chooses some common system parameters (domain par...
In lattice cryptography, people often work with q-ary lattices so that we can use the hardness of short integer solution (SIS) and learning with errors (LWE). I saw in some notes that sometimes we want $q$ to be prime or a prime power. However there wasn't any explanation to why that is the case. So I have a couple of ...
I have so far seen the proof by reduction technique to prove the security guarantee of cryptosystem where we consider breaking the cryptosystem as hard as solving a difficult mathematical problem. What are the other proof techniques used to prove the security of the Cryptosystem? It would be beneficial if the technique...
The Ajtai one way function is defined by $$f_A(x)= Ax \; mod\; q $$ where the x $\in \{0,1\}^m$ and A $\in \mathbb{Z_q}^{n \times m}$. $f_A(x)$ is one way function ( Ajtai 96) While the Regev One way function(Regev 05) is defined over x $\in \mathbb{Z_q}^k$ and $e \in \mathscr{E}^m$ and A $\in \mathbb{Z_q}^{m \times ...
I started with the question: Brainpool curves exist in a variant ending in ..r1 and ..t1. What does it mean? But there are also "secp.." and "sect.." just like NIST's "..r1" and "k1". What do all of those mean?
For $A\in \mathbb{Z_q}^{n\times m}$, where $m \geq n$, consider the given two q-ary lattices \begin{align} \Lambda_q^{\bot}{(A)} & = \{\mathbf{x} \in \mathbb{Z}^m: A\mathbf{x} = \mathbf{0}\text{ mod }q\} \\ \Lambda_q{(A)} & = \{\mathbf{x} \in \mathbb{Z}^m: \mathbf{x} = A^T\mathbf{s} \text{ mod }q \text{ for some } \...
I have been studying the subject of theoretical cryptography and there has always been discussion regarding the sampling and distribution(while learning any schemes) in the class. The questions are like What is the distribution from which the input will be sampled from? Also, I get confused in the question like how wi...
Let $t$ be a threshold in the Shamir secret sharing (SSS) scheme. Assume we know $t'<t$ shares. Assume we are given some random values picked uniformly from the same field as the one used in SSS. Question: can we distinguish the random values from the shares with a non-negligible probability?
I have two ciphertexts (I do not know which encryption algorithm was used to create them) which both starts with the same 3-characters long word. This led me to believe that the same key was used for both of them and that I could exploit that to decipher it. I thought that one-time pad was used there, so I tried to XOR...
Suppose we have some Merkle–Damgård hash function. Assuming compression function supports it and is equally secure with more rounds. Would changing number of rounds (for example doubling them) for last block cipher compression prevent length extension attack?
What are the drawbacks of an encryption scheme being a deniable encryption scheme? Is there a generalized approach to convert an encryption scheme $\pi$ to $\pi'$ which will be a deniable encryption scheme?
I guess this is more of a math problem in a cryptography context so I apologize beforehand if it is not the right place to ask. Basically I have to check whether a certain implementation of RSA key-pair generation adheres to FIPS 186-4. More specifically, Appendix B-3-1. FIPS 186-4 necessitates that $d$ (the private ex...
I am reading about the logjam attack. I was asked if the attack could be prevented by checking the integrity of the Server Hello message. My answer would be no because the man-in-the-middle can still not send the original Server Hello message and send its own. From my research, it seems like the client only gets hold o...
Public certificate authorities seem to always include the basic constraints extension. Why is this a best practice? What is the risk for a PKI to issuing end-entity certificates that don't have ‘certificate signing’ in the key usage list but lack the basic constraints extension? I have read parts of https://www.ietf.or...
Can I use a certificate authority with Elgamal encryption? Is this type of keys in CA?
I know I'm not supposed to roll my own crypto, but everyone starts somewhere! I'm implementing the PSI-CA protocol defined in Fast and Private Computation of Cardinality of Set Intersection and Union (Figure 1, Page 5), and I have it (more-or-less) working. My biggest issue is that I only have it working for int64_t ty...
I am working on system which can calculate average salary for different positions in large companies I want to use Paillier schema to do such calculation. I have 3 fields which I want to encrypt: companyName, jobTitle, seniority and salary Let’s say I have 3 different companies which want to calculate average salary on...
hi guys, is there a pseudonym in the certificate ? , I read papers that use the certificate authority, and between the components of the certificate, there is a pseudonym.
Suppose I have a program $P$. I would like to obtain an encryption function $e$, a decryption function $d$, and a program $Q$ such that $P(x) = d(Q(e(x)))$ for all inputs $x$. Ideally, the encryption would be asymmetric ($d$ cannot be obtained from $e$). This would allow making a decentralized computing platform simila...
In general, proofs of security for secure Multiparty Computation are based on Ideal Functionalities. For instance, see Definition 4.1 of this Simulator tutorial. However, in a regular program in an object-oriented programming language, one deals not only with functions but with objects. Objects have functions, but also...
I'm looking at a research paper about the insecurity of a specific (wrong) usage of Pedersen commitments. First, I'll go through the steps of Pedersen commitments, so that it can be shown if I have a basic misunderstanding. My understanding of Pedersen commitments Firstly we say Bob wants Alice to commit to a message, ...
Some block cipher keys are weak when used with GCM; see this question. This happens when the multiplier $H$ decided by the key ends up in a small-order subgroup of $\mathbb{F}_{2^{128}}$. Poly1305 has a very similar structure to GHASH. It's the same idea: add in a block, then multiply by a key-determined constant, wi...
Is there such a encryption and decryption mechanism: Given an encryption C = E(K1, M), where K1 is the encryption key and M is plain text, it have to apply decryption with two keys K2 and K3 sequentially to recover M, that is D(K3, D(K2, C)) = M. Given a K1, it is ideal to generate unlimited number of pairs K2 and K3 t...
Consider the function $f(x)=x^{2k+1}$ in $\operatorname{GF}(2^{n})$ for $n$ odd and $\gcd(k,n)=1$, which is differentially 2-uniform function. For $n=3$, $k=1$, I want to find the Algebraic Normal Form of the function. Is there a way?
Is it possible to encrypt with the RSA private key and decrypt with the RSA public key(not for signature) The task is that I have to encrypt the data with a private key. Transfer this data to another person and he decrypted it with a public key, added the data and encrypted it with the same public key and sent it to me...
On github there's this code part of Microsoft's SEAL: SEAL_ITERATE(iter(operand1, operand2, result), coeff_count, [&](auto I) { // Reduces z using base 2^64 Barrett reduction unsigned long long z[2], tmp1, tmp2[2], tmp3, carry; multiply_uint64(get<0>(I), get<1>(I), z); // Multiply input and const_ratio...
The Libsodium docs list the AEAD forgery limits for ChaCha20Poly1305 and AES-GCM which seems like a < 128-bit security level but says that it's not a practical concern. I've seen other people say Poly1305 has a 128-bit security level but haven't found much about the security level of either. There's also mixed informat...
Deriving the addition equation for a Weierstrass curve is simple and straightforward (I started with this video that covers the simple case. If you know the basic derivative rules you can find the second case -- adding a point to itself -- easily). How does one go about deriving the addition equation for an Untwisted E...
In DSA signature where signing is done via $$s = k^{-1}(H(m) + xr) \mod{q} $$ I understand why if two messages singed by the same private key $x$ use the same $k$ value you can recover the private key But I've read various comments and answers that say if two messages signed by the same private key have the same $r$ va...
I got to know that Root CA's are cross signed so that at the time of certificate expiry, there are no outages. However, I am unable to find any good docs explaining how cross signing works and how it prevents outages when a root CA certificate is going to expire in the near future? While researching, I found the below ...
I want to show that $F(x) = x^{-1}$ in $\operatorname{GF}(2^{n})$ is differentially 4-uniform for even $n$, and is differentially 2-uniform for odd $n$, without looking at the Differential Distribution Table. My attempt: Let $\alpha, \beta \in \operatorname{GF}(2^{n})$ and $\alpha \neq 0$ $$(x+\alpha)^{-1} - x^{-1} = ...
The discrete logarithm problem over prime cyclic groups consist of finding $x$ satisfying $g^x\equiv h\bmod p$ where $g$ is generator of multiplicative group $\mathbb Z/p\mathbb Z$ at a large prime $p$. There is no known algorithm to find $g$ in polynomial time. So how does practical Discrete Logarithm systems get ...
In a lecture, by Chris Peikert (link 40:20), he showed more efficient cryptosystems that have the secret be drawn from the Gaussian error distribution $\chi$. In the lecture he said "some applications which really really need secrets to come from the error distribution and they don't really work so well if they come fr...
To the extent of my knowledge, hash functions are based on computational complexity (and not on physical laws of quantum mechanics). So they can not provide unconditional security. But, are there hash functions which provide unconditional security? Are there quantum hash function which provide unconditional security?
The "standard" book (Dwork & Roth, 2014) defines Privacy loss as follows (p. 18) The quantity $$ \mathcal{L}^{(\xi)}_{\mathcal{M}(x) || \mathcal{M}(y)} = \ln \left( \frac{\Pr[\mathcal{M}(x) = \xi]}{\Pr[\mathcal{M}(y) = \xi]} \right) $$ is important to us; we refer to it as the privacy loss incurred by observing $\xi...
Let $G$ be a cyclic group with the generator $g$ and of prime order $p$ such that the discrete-logarithm problem is hard in $G$. A hash function is homomorphic if $H(a\ast b)=H(a)\cdot H(b)$ (where the operations $\ast$ and $\cdot$ depend on the groups). Here we do not expect the hash function to be compressing, but co...
I am new to cryptography and I am trying to understand something. I searched it on the internet, though the question is a simple one, couldn't find an answer. So, please don't judge me by that. Here is my question: When a string like "Hello World" is encrypted, do the algorithms convert this string into binary or ASCII...
I am new to cryptography and I am trying to understand something. I searched it on the internet, though the question is probably a simple one, couldn't find an answer. So, please don't judge me by that. Here is my question: Without considering the efficiency, speed, or optimization: Can everything that can be encoded b...
I have an elliptic curve y2 = x3 -x + 3 over a finite field of 127. I am trying to compress a point using the X9.62 standard. I know for the key compression you are supposed to check if the y value is even or odd to determine which side of the curve it is on. For most points on the curve the upper point is even and the...
If I feed the output of H back into H will it cover the entire output space of H before repeating? Consider the following scenario: A=1; While(){ A=H(A); print(A) } Will there be short cycles? E.g. Are there values of A that H(A) = A (a cycle of 1) Values of A where H(A) = B and H(B) = A (cycle of 2) Is there ...
What would happen if one would set the AES Sboxes to always output 0? Could one retrieve the key by doing so? Or what would happen if there were no Sboxes?
Context: an encryption game from overthewire (the link to it: https://overthewire.org/wargames/krypton/krypton6.html, also good for more info) where given the ciphertext, one must obtain the plaintext. On this level, we have access to a binary that encrypts any file by stream cipher, using a key from a file we do not h...
Consider a probability distribution $D$ over $n$ bit strings. Denote $U$ to be the uniform distribution over $n$ bit strings and $U_{n}$ to be the uniform distribution over integers $\{1, 2, \ldots, n\}$. Consider the following two equivalent statements (they are equivalent by Yao's theorem): There is no uniform polyn...
Lets assume we know the last-round key of AES. For AES-128, the whole key can be reconstructed using the last-round key since every WORD in the key schedule is based on the previous 128-bit entry. For AES-256, it cannot be reconstructed, as we only know 128-bits. However, the reconstruction of the 4 WORDS would take us...
I am quite new to cryptography low-level mathematic details, though had worked in the crypto area for 2.5 years before. So if I am wrong about any of below part, please correct me without a facepalm gesture ;) There are already some discussion about this along with questions about what is a valid private key per say, b...
Having some trouble cracking this cipher (this is part of a homework assignment for a cryptology class) I've looked at letter frequencies but I'm not sure what else there is to help me. Given the encrypted string, TNFOS FOZSW PZLOC GQAOZ WAGQR PJZPN ABCZP QDOGR AMTHA RAXTB AGZJO GMTHA RAVAP ZW, the word LIBERTY is encr...
The $n$-strong Diffie Hellman assumption state that given the subset $\{g, g^s,\cdots,g^{s^n}\} \subseteq \mathbb{G}$ in a cyclic group $\mathbb{G}$ of prime order $p$, a PPT algorithm cannot output $g^{\frac{1}{s+\alpha}}$ for any $\alpha \in \mathbb{F}_p$ except with negligible probability. Does it somehow imply tha...
I would like to know if there are any effective methods to choose a cryptographic algorithm from a pool of algorithms depending on a certain situation. Let's say we know the performances of these algorithms when encrypting or signing messages of different sizes for example (there are too many metrics other than msg siz...
I was reading a question about symmetric keys here and found the answer quite interesting. It mentions: Be sure to pass in the raw bytes, and not, e.g., a hex-encoded string Can someone elaborate on why this is bad? and also in the context of password hashing, is converting a salt to hex before sending it though the ...
I've been trying to search for toy examples of the round 3 digital signatures Rainbow, Falcon and Dilithium. Not a lot of actual implementation examples are out there. What I'm searching for are actual examples with numbers that explain how the two algorithms (Falcon and Dilithium) work (key generation, signign and ver...
I am curious about Padding the seeds of Random Number Generator. (I am sure that terminology, padding the seeds, is not correct. If someone knows the proper word, please let me know :) ) What is padding the seeds that I mentioned? You know that Pseudo-Random Number generator need seed to do its job properly. For exampl...
We know that a short message encrypted with RSA can easily be brute forced. Lets say Bob encrypts a message containing just "Hi" and encrypts it with Alice's public key. Anyone can try encrypting all possible combinations of very short messages using Alice's public key until they get a match. What i am wondering is can...
I am looking at an answer to a previous question and I would like more detail about how the answer was arrived at but I am not allowed to comment as I am a new user with low points. I am therefore asking a new question based on an answer to a previous question. An answer was given but the details were not shown as to h...
Here: https://en.wikipedia.org/wiki/Linear-feedback_shift_register they wrote: The linear feedback shift register has a strong relationship to linear congruential generators What this relationship is all about? Are they mathematically equivalent in some way? In two cases, we can reach the maximum period. Maybe there ...
I'm investigating hardware cryptocurrency wallets and am trying to understand how recovery works from a technical point of view. These wallets typically provide a 24-word "recovery seed" from which the wallet can be recovered. What I'd like to understand is how the private keys for various cryptocurrencies can be recov...
We have a primary-order EC group. Need to perform a (sort-of) DH protocol, whereas the key is permanent, not a nonce (single-usage ephemeral key). So we receive an arbitrary group element (EC point) from an untrusted party, and reveal it multiplied by the secret key. Is it always safe to do that? I mean, can the attack...
A standard theorem is that boolean circuit satisfiability is NP-complete (shown in CLRS, for example). I am interested in what these statements formally mean. From CLRS, I can cite that $$\text{CIRCUIT-SAT} = \{C \mid \text{$C$ is a satisfiable boolean combinational circuit}\}$$ In Bitansky et al., boolean circuit sati...
This is clear to me that message authentication is provided by a signature scheme. Can we use an Identity-based signature for identity authentication?
Why consider a random $r$ in building a hardcore predicate in Goldreich Levin theorem? Why not consider just the XOR of all bits of the input?
I was looking inside the basics of ecc and found the examples from Internet either uses continuous domain curve or use a very small prime number p like 17 in a discrete domain to show the points. I am really curious that if I can find a point with a really big p in practice. For example, secp256k1 is using a really big...
As a start, I'm by any means no expert or anything near that in cryptography. I know the very basic about this, enough to more or less choose a method to implement and then read about it so I knew what I was implementing. So please excuse any supposedly dumb questions haha. Having that in mind, I've created a AES-256/C...
I'm looking at https://link.springer.com/content/pdf/10.1007%2F11496137_31.pdf and it seems like in the protocol they propose if Alice can guess Bob's number, she can pretty easily verify that guess. (Section 3: Our Protocols) Bob isn't performing any private operation besides generating the random encryptions to fill ...
I have been playing around with Hastad's broadcast attack on RSA with linear padding. Using the implementation and the test function from here: https://github.com/0n5/CTF-Crypto/blob/master/RSA/hastads.sage The test function and the attack work perfectly well with e=3,5,7. However, with e>=11 the attack does not find a...
In my application I want to use Rabin crypto system with short keys (like 128 bits) and MD5 for hashing. I found that schema like PKCS1-V1_5 or PPS does not allow you to have such small keys and result signature is like 64 bytes for 512 bit key. I need to sign small amount of data like 30-50 bytes and having 64 bytes s...
I'm trying to write a function in dart that can can decrypt a file inside a zip that is encrypted using the WinZip AES-256 standard. Documentation I have found here: https://www.winzip.com/en/support/aes-encryption/. Using 7-Zip I was able to create an example file according to the standard. I'm able to extract the enc...
homomorphicencryption standards already provide recommended parameters and their corresponding security levels. However, I would like to calculate a security level for nonstandard parameter selection. Is there an simple way to calculate the security level?
What's the functional and security model for SEAL? From this I get that it allows additions and multiplications to be performed on encrypted integers or real. But what are the limitation, like range, precision, on inputs and outputs? What operations can be performed? Is there some limitation beyond range/precision? W...
I am going through Lenstra's Elliptic Curve Factorisation from Silverman's Mathematical Cryptography book. I have understood the algorithm itself, but unable to understand a specific point the book makes. We are trying to factor 187. We use $E: Y^2 = X^3 + 3X + 7 \bmod 187$ with $P = (38, 112)$ When we try to calculate...
This paper says the CDH problem in a group of square matrices can be solved by a generalized Chinese remainder theorem. I wonder how this problem might be solved? DH protocol in the cyclic group of matrices $\langle M \rangle$, and the matrix $M$ is considered as public information. It is assumed that Alice generates ...
As the question states, in variants of paillier cryptosystem, such as CS01 and DT-PKC, when they want an element $g$ of order $\lambda$, they choose a random number $a$ from group $Z^*_{n^2}$ and calculate $-a^{2n}$ as $g$. First, what's this multiplication of $-1$ for? Second, why $a^{2n}$ not just $a^{n}$? I think $-...
I couldn't think of a better question to ask, but I will explain more here. I want to be able to send a Word document to a server that will work with the document data. Are there any good ways to do that without the owner of the server to be able to read the content of the document him/herself? I only want a pre-made p...
Is it possible to generate a private key from a public address and an extended private key? For context: I am using C# and NBitcoin. The public address is generated from the outside via an extended public key and I have access to the mnemonic, extended private key, seed, etc.
Long story short, trying to understand how I would write the vigenere cipher mathematically when using Gen, Enc, Dec and I can't figure it out. This is what I've come up with so far. $$\mathrm{Gen}: k ={0…25}^t$$ $$\mathrm{Enc}: c_i = (p_i + k_i) \pmod {26}$$ $$\mathrm{Dec}: p_i = (c_i – k_i) \pmod {26}$$ It doesn't re...
I'm trying to learn about ECC. I understand that the points of the finite field are determined by taking the continuous elliptic curve and finding its points that have integer coordinates. Since ECC uses modular arithmetic, the points of the finite field are on an integer grid that extends from 0 to the modulus-1 in ...
I have just seen that there are 3 feistel based FPE schemes which were proposed FF1,FF2 and FF3( There might be many more). Although there have been different attacks on FF1 and FF3 standard that show that it does not preserve 128 bit security they are still used in practice with recommended changes. What reason made ...