instruction
stringlengths
32
27.2k
While reading Katz & Lindell's textbook (2nd edition) if found three main security definitions: ING-EAV-Security, ING-CPA-Security and ING-CCA-Security. (From this forum I know there are more, but these are the most basic ones). I also read, that ING-CPA-Security implies ING-EAV-Security and that ING-EAV-Security is we...
The partition oracle attacks exploits the non-committing AEAD schemes. Informally, a committing encryption scheme is one for which it is computationally intractable to find a pair of keys and a ciphertext that decrypts under both keys. AES-GCM and ChaCha20-1305 fail on this so they are non-committing. As a countermeasu...
While reading https://crypto.stackexchange.com/a/88732/87450 I noticed that it suggests encrypt-then-HMAC as a defense for partition attacks. However as far as I know unlike poly1305, HMAC does not make use of nonces and in the poly1305 paper DJB says: There are several reasons that Poly1305-AES uses nonces. First, co...
Is encrypting $h(k)$ (or even just $k$) and verifying it before checking the MAC enough to defeat partition oracle attacks and thus make the whole scheme robust/committing (without depending on properties of the cipher, unlike 0-padding)? update 1: basically $E_k(h(k)\mathbin\|m)$ or $E_k(k\mathbin\|m)$ where $E$ is an...
I'm trying to find a Python library that implements Elgamal Encryption on the Elliptic curve i.e X25519 or P-256. My purpose is to use the additive homomorphic property of Elgamal. I'm using https://github.com/data61/python-paillier Python library for Paillier to have additive homomorphism. However, since I'm only encr...
I encountered this while solving a crypto puzzle. This is the puzzle. You have a hash which gives a 11-bit output. How many minimum messages do we have to hash to have a 50% probability of getting a collision. Normally we see kind of problem being solved by using an approximation $2^{n/2}$ or $\sqrt {2^n}$ So for a 11-...
I was asked about the following variant of $ElGamal$ Encryption Scheme (Preparing for exam): Instead of encrypting $(g^r,h^r*m)$, encrypt $(g^r,h^r+m)$. And the question is whether the new variant CPA secure? In addition, is it Homomorphic in relation to addition or multiplication? Regarding the question of whether is ...
While reading Katz & Lindell's textbook (2nd edition) I found a proof for the CPA-Security of CTR-Mode. It can be found at the end of chapter 3.6.2 (page 93 and 94). I don't quite understand, why the proof is that complex, so I got two basic questions about it: Why is the extra Scheme (cryptosystem) based on a true ra...
I'm trying to implement a simple command-line tool to calculate the (Key Check Value) KCV of some encryption keys. The algorithm for the KCV is simply to encrypt a block of 8 zeros with DES and get the first three bytes of it (this is called VISA KCV, and there are a bunch of other KCV algorithms). So, I wrote this cod...
Dan Boneh's Crypto 1 Course includes a lesson on stream ciphers with the following slide: He asks the question: And the answer he gives is $m \oplus p$, which is why this is insecure. But I don't see why this is correct. If: $m = 0011$ $k = 1100$ $p = 1010$ then $$m \oplus k = 1111$$ and $$(m \oplus k) \oplus p = 0...
I'm writing a function that will allow me to analyze the randomness of some input data and return some stats about the probability of this data to be random. Obviously it should be based on two things: How often each byte value is found / not found (randomness / distribution) And how much data we have (certainty) S...
Suppose an encrypter separately produces three ElGamal ciphertexts $c_1 = E(m_1)$, $c_2 = E(m_2)$ and $c_3 = E(m_3)$, which encrypt the messages $m_1$, $m_2$ and $m_3$, respectively. Is it possible for the encrypter to prove with a zero-knowledge proof that $m_1$ = $m_2 \mathbin\| m_3 = m_2 \times 2^{32} + m_3$, i.e., ...
How many NVidia 3090 would you need to brute force a 1024 key in one day?
I currently have the following information and I assume the first line separated by the: represents the prime number and generator. Is there any way I can find the secret key shared for the Diffie-Hellman key exchange with only this information? 43223423423:34234234242443423423 Alice's Public:OTEONZJTYZTOCTMETYDMQNMNC...
I am working with the RFC for Leighton-Micali Hash-Based Signatures: RFC-8554. The question is if I understood it correctly and my calculations of the key sizes are correct. Basically, LMS uses several Winternitz-One-Time-Signature keys. Winternitz-OTS In chapter 4.1 of the RFC the parameter sets of the OTS keys are m...
The question is pretty self-explanatory but basically I just want to ask if, when choosing the p and q primes that, when multiplied, become the modulus for an RSA public key, is there a risk that attackers can exploit if p and q are equal to each other? The only requirement that I've seen up until now is that both p an...
https://www.microsoft.com/en-us/research/blog/password-monitor-safeguarding-passwords-in-microsoft-edge/ In this they mention The server then evaluates a matching function on the encrypted credential, obtaining a result (True or False) encrypted under the same client key. The matching function operation looks like thi...
I've been told that oracles are always servers and that oracle attacks are always online, but I'm not convinced that's true. However, I have limited understanding of this topic since I'm still learning and the book I just read didn't discuss it at all. The definitions I've seen of the term don't specify whether oracle ...
I'm currently trying to create a lua script that can handle encrypting and decrypting using RSA, but when decrypting, the program takes an extremely long time, whilst when encrypting, the program is done within a matter of milliseconds. Currently, I'm wondering: How many bits should p and q be? How big should pq be? H...
From what I understand, CTR works by taking a counter, concatenating it with a nonce, and encrypting the result, which gets XORed to the ciphertext. For a 128-bit block cipher (ie. AES), my understanding is that the first 8 bytes of the CTR block is the nonce, and the second half (bytes 8-16) is the counter. CTR is a s...
Consider an alphabet with 26 letters. Then a substitution cipher has $26!$ possible ciphertexts (with every letter substituted). What about repetive substitutions on a 5 letter word for example? How many different ciphertexts will result? Like $\sigma(a)=b, \sigma(b)=c, \sigma(c)=a$, then $abc \rightarrow bca \rightarr...
Thank you for the answers, I have edited my questions. It is a known fact that encrypting the files increases the file entropy. You can see the average entropy values of encrypted and non-encrypted versions of the different files in this paper (see figure 2). After I read this paper I check out my encryption algorithm ...
As Deepfake and other technologies make video anti-counterfeiting very difficult, I want to design a scheme based on cryptography to verify that a video is actually captured by the camera. At the same time, I hope this video supports truncation. For example, I have a video that takes one hour long, and if I intercept o...
Let's say I have ciphertext c = Enc(pk,m), produced by a public-key encryption scheme but I don't know the public key of the sender. Can the sender easily produce another key pair and then claim that the ciphertext actually corresponds to c = Enc(pk',m') or is this computationally impossible?
I am trying to find polynomial , but don't know how to get matrix matrix must look something like this:https://www.oreilly.com/library/view/computer-security-and/9780471947837/sec8.8.html For example if output is 11010110 and length of register was 4, how to get such matrix: 1 1 0 1 0 1 0 1 0 1 0 1 ...
I know from the bottom of my heart how bad the idea of custom-crypto is. I absolutely concur with the recommendation that it should only be done by professionals who specialize in implementing crypto safely. However, exactly because it's a Bad Idea ™ it's really hard to find good information on this topic. Say one of t...
So, in real life we have a handful of ways to leave a physical mark on a packet to know if it has been opened without authorization (eg. you can use 'opened' security tapes, or you can put a signature or stamp right through the envelop opening). One thing i see these tells share, is that they are some sort of signature...
I'm struggling with understanding this part of the literature: It can be assumed that the entire ciphertext AND plaintext is known. Considering the encryption method is $C_i = enc_k ( P_i \oplus C_{i-1})$ with a key k, and the decryption method is $P_i = dec_k(C_i) \oplus C_{i-1}$. Why does it say in equation (2) sa...
I want to design a zero-knowledge proof (ideally a NIZK, but could be a sigma protocol) so that Alice can prove that a certain encryption contains a value that has been signed by a certain key. More specifically: Let ek be an encryption key (e.g., ElGamal) and dk the corresponding decryption key. Let sk be a signing ke...
May be this is absolutely off-topic, but here is. The cryptosystem description follows. Any hints of what to do with it, or flaws found are welcomed. This description is here as well. We will use a substitution 16x16 table, this is one of them: 7 9 13 10 15 2 0 6 3 12 8 4 1 5 14 11 1 15 6 3 9 4 11 13 10...
As far as I know, quantum computers are able to solve only some of the NP-Problems in polynomial time, using the Grovers algorithm. I read that if one manages to create a reduction of Grovers algorithm on one of the NP-Complete algorithms, for example 3SAT, then it will be a huge milestone, since we could solve all oth...
I understand black-box obfuscation at some intuitive level as- "an adversary can learn nothing more from an obfuscated program/circuit/function than he or she can from a black-box access to the same program/circuit/function." But I am failing at grasping it formally. I got the following description from this site: Bla...
I saw that in lattice-based cryptography schemes, for example Dilithium, coefficients in $Z_q$ are allowed to be negative. For example, in Dilithium the secret key is $s_1 \in R_q^{k \times l}$, where $R_q = Z_q[X]/(X^n+1)$. In the reference implementation and also in the paper, all coefficients for $s$ are in the rang...
I use GPG symmetric, to encrypt text file. Is it possible to use GPG symmetric, to encrypt a text file, and at the same time, add additional setting to the encrypted file, to give us 2 conditions: correct password will decrypt it. incorrect password will give fake decryption result, instead of indicator "decryption f...
ECDSA signatures are malleable. Given a valid signature (r, s), one can create a second valid signature by negating the s value. I have searched workaround for this issue, and https://yondon.blog/2019/01/01/how-not-to-use-ecdsa says: One solution to defend against signature malleability based attacks is to enforce a s...
In SEAL homomorphic encryption library, it implements the BFV and CKKS. We know the error $e\in R_q$ which is a Guassian distribution. When sampling an error term $e = \sum_{i=0}^{n-1} e_ix^i$, it just samples $e_i$ from some discrete Guassain distribution over the integers. However, it seems that the discrete Guassian...
Looking specifically at RSA and EC algorithms which imply doing operations on integers >= 256 bits (>> 64 bits), I have noticed (from my limited experience) that 99% of the software for crunching big numbers is designed for CPU. For example, there appears to be no actively maintained CUDA package for big-number operati...
Are KDFs such as PKDF2 and HKDF vulnerable to side-channel attacks such as static and dynamic power analysis including the hash type used internally?
I am trying to understand the Kannan embedding technique. But I am confused about the formation of the B' and the finding of the short vector inside that basis. How does this basis matrix in the algorithm produce a lattice? Or more specifically why a uSVP instance consist of a vector(e^T) and an integer(M)? Thanks.
Differential privacy can be used to show that the "privacy loss" of a certain computation is "bounded" in a meaningful way. In cryptography, often "indistinguishability" is considered, i.e. we want $\Delta(D_0, D_1)$ to be small. Can these two concepts be related? I know vaguely that standard notions of differential pr...
In mid 2020 Jeffrey Burdges and Luca De Feo published a paper proposing a trapdoor-less time-lock puzzle called Delay Encryption. Has a prototype of this ever been made?
I've been thinking about PICNIC, the tier 2 NIST post-quantum signature scheme. Leaving aside the innovative multi-party computation zero-knowledge proof structure, the private key is an $n$-bit key for an $n$-bit block cipher and the public key is a single matched plain and cipher pair corresponding to the key. There'...
In the PICNIC post-quantum signature scheme, a zero-knowledge proof of the secret key for a symmetric encryption is produced by implementing the encryption as a Yao garbled circuit of a three-party computation. The proof is to divide the key into three shares notionally split between three parties and produce transcrip...
Assume there are three parties say A, B, C. A commits to a message $m$ say $c(m)$ and sends tuple $(m,c(m))$ to B. B has to prove to C that he possesses commitment $c(m)$. There is no interaction between A and C. But B should not cheat by sending commitment to some other message $m^\prime$. I guess for this we need A...
Working with Curve25519 I've faced with suggested form of computation square root candidate as: $uv^3(uv^7)^{\frac{p-5}{8}}$ instead of $\left(\frac{u}{v}\right)^{\frac{p+3}{8}}$. Why it is so? Or why is it less expensive? Edwards-Curve Digital Signature Algorithm (EdDSA) https://www.rfc-editor.org/rfc/rfc8032#section...
im doing a small programming project, where I have to implement shamirs secret sharing scheme. I want to share the secret S = 21426848149916227113669602 I want a k of three, meanng that three shares can recontruct my secret, so I need a second degree polynomium. First I create my function of the form: f(x) = ax^2 + bx ...
I have recently read a paper about pairings, which only implemented asymmetric bilinear pairings and it mentiond that $\eta_{T}$ pairing is the most efficient algorithm for symmetric pairings. I wonder is there any software implementation on elliptic curves could achieve both asymmetric and symmetrci pairings e.g. $e(g...
For example the following suite: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 From what I understand the SHA384 at the end is used to authenticate the message, which is exactly what MAC does, and the mode GCM already creates a MAC, then why is the cipher suite followed by SHA384?
I was wondering how to measure the security strength of a generated secret key for the below protocol: "A 128 bit random number is generated by TRNG and the random number will be used as a private key for Diffie-Hellman key exchange protocol. Two entities generate the shared secret key and that will be used as a sessio...
From this site: https://tls13.ulfheim.net/ and from https://www.rfc-editor.org/rfc/rfc8446#section-2 I can't find the part in which the exchange of keys is signed, isn't one of the parties "key_share" supposed to be signed using the server certificate's keys? For example this: https://i.stack.imgur.com/nsGeV.png In the...
The code of the first image was provided by Squeamish Ossifrage in this answer. In wich language/program was plot? In JavaScript or GeoGebra? Also, I found in YouTube the image below with the point at infinity (north pole) plot in a projective plane using stereographic projection. The YouTube channel is Trustica. I co...
I am watching Lecture 3 (Stream cipher, random numbers and one time pad) by Christof Paar and perhaps its something that will be explained in another lecture but: When he explains how XOR works, in the example he gives, plaintext X3.X2.X1 is encrypted with key S3.S2.S1 and becomes ciphertext Y3.Y2.Y1. So if the plainte...
I've been delving into cryptography for fun and trying to implement a visualization for AES using image encryption. So far, represented each pixel's RGB values as hexadecimal numbers, then split it into an array of 16 character strings. I know that AES is a block cipher, so I have to split them into 16 character string...
For End-to-End Encryption in chats using Diffie-Hellman Algo the concept of Extended Triple Diffie-Hellman (X3DH) is used to prevent Man-in-the-middle attack (MITM) (courtesy: https://www.qed42.com/blog/developing-real-time-secure-chat-application-like-whatsapp-or-signal-with-end-end-encryption#endtoendencryption) My q...
The said randomized hasing is actually a sort of padding, and it goes like this: Parameters: 1. hash function H() 2. length N in bytes of the output of the hash function. Input: 1. M the message to hash. Generate: 1. Generate r := N/2 random bytes. 2. Compute lo := H(r|M) 3. Compute hi := r xor lo 4. _Return (hi|lo) ...
Currently I was working with FHE scheme and used HElib to do homomorphic logical operation like the formal question described Homomorphic encryption methods that could support logical XOR, AND?. But now I'm facing a new problem. When I do multi times calculation (the situation is a circuit calculation that has to be us...
Consider the finite set Z_257 of non-negative integers less than 257. The number 257 is a prime, so Z_257 forms a field with addition and multiplication mod 257. How can I use the Extended Euclidean Algorithm to find the multiplicative inverse of the element 254 in this field.
I have $n,e$ and $c$, $p$ and $q$ are prime, but $q$ is the inverse multiplication of $e$ and $p$ so $$q = e^{-1} \bmod p$$ How can $i$ get $p$ and $q$ back?
I am not sure how to prove that the given two scheme is perfectly indistinguishable for all PPT adversaries!
I've been puzzling over the following proof for the past couple of days. Since a block cipher in CBC mode can be used to build both an IND-CPA secure encryption scheme and a EUF-CMA secure block, a common mistake made in “roll-your-own” cryptosystems is to try to use the last ciphertext block to compute a MAC on the p...
Trying to study ZKPs, I have seen that proofs qualify players (a part from -of course- simulator and extractor): so honest prover, honest verifier. Is it needed because usually examples deal with interactive schemas which require players to act in specific ways (so it's not needed when Fiat-Shamir heuristic is used on ...
Imagine Alice wants to sell a file with important information to Bob for money. The file must be encrypted, so nobody can eavesdrop. It must also be signed upfront, so Bob knows it has not been fiddled around with. Trust is not established between them. Hence, a trusted third-party mediator is required. Ideally, the th...
At the risk of oversimplification, how do I explain indistinguishability obfuscation (iO) to my grandmother?
In the original paper, Marsaglia defines the xorwow() function and gives some example values for the initial state of $x$, $y$, $z$, $v$, $w$ and $d$. But it is not clear to me, how these values have been chosen, or how they can be "randomized" from a seed. The paper doesn't go into detail here. Wikipedia has a slightl...
Given two AES (128bit, ECB mode) with almost equal keys $k_1,k_2$: 127 of the 128 key bits are equal. Is there any correlation in between the ciphers they build? $$AES_1(m_i) = c_i$$ $$AES_2(m_i) = d_i$$ Would it be different to two keys differ by 64bit? by 128bit? Or the same key but shifted by $n$ bit? E.g. An advers...
I'm playing around with implementing Shamir's secret sharing scheme in Kotlin. Here is implementation so far: fun main(args: Array<String>) { val a = 10.0.toBigDecimal() val b = 10.0.toBigDecimal() val c = 7.0.toBigDecimal() // secret val field = 20.0.toBigDecimal() fun polynomial() : (BigDecimal) -> BigDecimal = ...
I am able to understand how G(x) id generated. But then what is the use of variable z. Also if the probability is >1/2 + e then the distinguisher wins! Then how is this still a OWF
As I like to make my tin-foil hat using only the finest quality metal, I was overjoyed to see that Firefox/NSS (I'm using Arch Linux) has recently added support for the P-521 ECDH group in compatibility with TLS 1.3 (albeit not part of suite B). It has supported ECDSA public keys using the secp521r1 named curve for a l...
I came up with this question while I was reading this paper: Pilaram, Hossein, and Taraneh Eghlidos. "An efficient lattice based multi-stage secret sharing scheme." IEEE Transactions on Dependable and Secure Computing 14.1 (2015): 2-8. The theorem 1 in section 4, the author says this: Therefore, on input $Ex$, the algo...
For (EC)DHE cipher suites, server authenticates itself by proving the possession of the private key matching its certificate by signing ServerKeyExchange message (link): struct { select (KeyExchangeAlgorithm) { case dh_anon: ServerDHParams params; case dhe_dss: case d...
I was new to cryptography. And I know that in the world of cryptography there are two types of Symmetric Algorithms: Stream Cipher (RC4, Salsa & Chacha) Block Cipher (DES, AES) And when doing some research on their implementation, I only looked at file encryption & decryption software products that use the AES algori...
I read some documents about digital signatures and one way hash functions, etc., but everything was too complicated and I don't have much experience in cryptography. Can anyone explain to me in a simpler way why this is possible? By digital confirmations of receipt, whenever Bob has received a message, he sends it back...
Lets consider a challenge and response protocol with the following setup. Two entities $A$ and $B$. $A$ is generating the challenge and $B$ is generating the response using a digital signature scheme. Lets suppose, that $A$ already has the certificate of $B$. So the procedure is as follows: $B$ wants to access some se...
NOTE: This question cannot be posted to Bitcoin SE because it will not render there due to the mathematical notation. Since the mathematical notation is part of the question, this is the more appropriate forum to post on, with tag 'cryptocurrency'. I wonder how secure it is to split up a printed Bitcoin private key int...
I was wondering how I could crack a Playfair cipher with only the alphabet and the ciphered message. Ive tried looking for tools online, but still no luck.
EdDSA for more curves describes two options of signature verification Verification, which checks $2^c\,S\,B\,=\,2^c\,R+2^c\,H(\underline R,\underline A,M)\,A$ Cofactorless verification, which checks $S\,B\,=\,R+H(\underline R,\underline A,M)\,A$ Cofactorless verification is more stringent: "any alleged signature that...
Given some RSA modulus $n$, can you factor $n$ if you are given $k \cdot \phi(n)$ where $k$ is also a large prime? (Of course, you could factor $n$ if you were given $\phi(n)$ as discussed here, but that approach does not work when you cannot factor $k \cdot \phi(n)$, right? )
I have $n$ persons, each holding a secret integer $x_i$ ($i$ from $1$ to $n$) and I'm looking for a way for them to jointly compute the sum of these secrets without revealing to each other their individual secrets. Verification of the sum isn't important in this problem, as an error will cause an abort at a later point...
I've wrote a simple random number generater in C++. Simply, I thought, the random things in software. I wrote it based on below: When an object is created on the stack, its address is random. The address of the static variable created in the template is fixed but unpredictable, aka, random. The physical memory address...
I'm familiar with "blockchain" and the theory and technology behind cryptocurrencies, tokens, and the economics behind why such things are capable of having monetary value, however I've never been able to wrap my head around "non-fungible tokens" (NFTs). As I understand it, NFTs and, say, Bitcoin are in principle one a...
I was going through this question and intuition came that same message can be used to break security but I an not able formalize it well...can someone help how to create chosen ciphertext attack formally so that adversary wins with significant probability.
Consider a matrix $A \in \mathbb{Z}_q^{m \times n}$ and its respective lattice $$\Lambda_q(A) = \{x \in \mathbb{Z}^m : \exists z \in \mathbb{Z}_q^n, x = Az \mod q\}$$ The basis for such a lattice is different from $A$ as shown in this answer. I am looking for a software package/library that construct such a basis, so I...
The mac-forge security game for mac schemes looks like this: $k \leftarrow \operatorname{Gen}(1^n)$; $(m,t) \leftarrow A^{\operatorname{MAC}_k(⋅)}(1^n)$; Let $Q$ denote the set of all queries that $A$ asked to its oracle; The output of the experiment is defined to be $1$ if and only if $\operatorname{Verif}_k(m,t)=1$ ...
I've wondered how hashing can be such a fast operation. It's so fast that nobody talks about it in terms of performance and complexity. I know that in terms of big O notation, you can drop all the constants and just speak in terms of the variables. I know that in hash lookup, if you know the key, it is O(1). This makes...
I'm optimizing a Reed Solomon decoding library for several polynomials in $\operatorname{GF}(2^k)$, $k\in\{8,10,12\}$. Reading about the Montgomery Multiplication from Çetin K. Koç & Tolga Acar's Montgomery Multiplication in $\operatorname{GF}(2^k)$ (in Designs, Codes and Cryptography, 1998), I'm wondering if and how t...
In our project we have grpc server and clients which should satisfy mutual tls. So, there is CA and clients generate csr to sent to CA to signing it. Now I need to send csr manually to CA to sign it and also manually back to clients. If there are many clients, it becomes inconvenient. Of course, I can add an additional...
I've been reading up on MAC schemes. But I cannot seem to find out whether the tag's that are output by running MAC(m) is of a fixed size? I can find a lot of stuff talking about the tag space being a specific size, which would indicate that the tag must have a specific length, but I could not find whether there are an...
A fan-in $2$ and fan-out $1$ Boolean circuit is a circuit consisting of $\operatorname{AND}$, $\operatorname{OR}$ and $\operatorname{NOT}$ gates where number of inputs to $\operatorname{AND}$ and $\operatorname{NOT}$ are constrained to be $2$ and number of output gates any of the gates can be connected to is $1$. I am...
As AES progresses through multiple rounds, approximately how does it security increase round by round up to its maximum? I'm curious about the shape of the curve. Is it linear, some kind of exponential, a power law curve, etc.?
What are the benefits and drawbacks of each?
I was going through this question of nested encryption: Given $\Pi$ = $({Gen}, {Enc}, {Dec})$ is authentication encryption we have designed new scheme $\Pi^{'}$ = $({Gen^{'}}, {Enc{'}}, {Dec{'}})$ and which follows: $\mathrm{Gen^{'}}(1^{n})$ gives uniformly random keys $(k_{1},k_{2}) = \{0,1\}^{n} \times \{0,1\}^{n}$...
I'm still getting my head around public/private key cryptography, and I can't quite work out how to ask the right question to get an answer for this problem, but here goes! Alice, Bob, Carol, and Dave are all in a secret society which writes exquisite corpse stories. First Alice writes a line into a file; then she sen...
I am trying to understand the analysis of the complexity of Differential Cryptanalysis versus the complexity of linear cryptanalysis. In differential cryptanalysis the number of required texts is $\mathcal{O} {\left( \frac{1}{p} \right)}$ where $p := Pr(\alpha \to \beta)$ for some differences $\alpha$ and $\beta$ In ...
I have read the proof of AES's resistance against differential cryptanalysis. In the proof the authors show that there is no single differential trail with prop ratio higher than $2^{-300}$ over 8 rounds. I understand that part but it does not prove that there is no differential with prop ratio higher than $2^{1-n} = 2...
This question is in reference to this tweet. It seems people are using the url of third party websites to record the reference to the content for NFTs. Why can't people just hash the jpg files for their artwork and store it in the smart contract? If someone else tries to duplicate it and create another smart contract w...
For this question I'm referring to the ed25519 algorithm In blockchain one project (Monero) shot itself in the foot a while back by having senders derive public keys from an ed25519 pair, by performing scalar multiplication of the random value against the '8' co-factor subgroup. The issue here was that they were usin...
Let $\mathbb{G}$ be a cyclic group of order $p$ with generator $g$, and let $m\in\mathbb{G}$. Problem: Given $c=m.g^{k.a}$ and $v=g^a$, where $k,a \in \mathbb{Z}^*_p$, output $k$. Is this an instance of a Diffie-Hellman problem? Because the only way I see to solve this is to try $v^i, i\in \mathbb{Z}^*_p$ until we stum...
Im trying to understand the proof in "The Discrete Logarithm Modulo a Composite Hides O(n) Bits" by Håstad et al, where he shows that the order of a random element in RSA group is big. I got the most part but there is one transition that I just cannot see (in Proof of Lemma 1.2): Any suggestions on how I could approac...
Intro I am somewhat new to cryptography. Repeating the basics of RSA from How are the primes used to generate RSA keys?: Textbooks say the one-way function is merely two primes (with some critical constraints) ... may be a good base of this question, as well as What prime lengths are used for RSA?. Also, Big data and...
Although this question has been answered in this link (After How Much Data Encryption (AES-256) we should change key?), I am not satisfied with the answers because the Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM)and GMAC has a different view on this. It says Now 2^32 block ciphers, mea...