instruction
stringlengths
32
27.2k
I want to use parallel hash for a large file. I want final result equal to single hash from this file. What techniques would be best suitable to solving this problem?
I am a research student and I have been studying garbled circuits, specifically its optimization techniques. However, in every research paper i have encountered, the researchers have only shown how to garble an AND gate and XOR gates. The circuits do contain OR (or don't they?), my question is how an OR gate will be ga...
I am having trouble understanding the term "free" in V.Kolesnikov et al's paper. 1. Why NOT is free In page 4, section 3.1, they said that NOT gate is free by simply eliminating them and inverting the correspondence of the wires’ values and garbling I came up with the following example, which confused me Let's say ...
For prime p, is $\mathbb{Z}^{*}_{p}$ a group for which the Decision Diffie-Hellman problem is easy (because one can compute the Legendre symbol of ($g^{ab}$) while CDH is thought to be hard? Of course, computing the Legendre symbol won't always help differentiate right? But it'll work enough times to beat the DDH assum...
I'm currently using wireshark to analyse TLSv1 traffic. I generate the traffic to an Apache (OpenSSL) using the following java (jdk 6) code : URL url = new URL(strUrl); HttpURLConnection httpc = (HttpURLConnection) url.openConnection(); httpc.setRequestMethod("POST"); httpc.setDoOutput(t...
I have taken a course in applied Cryptography. I do not understand the hardness problem underlying AES (or DES). As in RSA is based on the RSA assumption. ElGamal is based on the hardness of descrete logarithm problem. Most of the lattice crypto is based on the LWE assumption which itself is based on the hardness of B...
What is the maximum key size for AES 128, Will using a key greater than maximum gives extra security or error? Is there a minimum key size? Suppose a key is 128 bit, does it means The key is of length 16characters Suggest me a good password to key function.
A paper published by Niels Furguson Collision attacks on OCB indicates that processing large amounts of data (somewhere on the order of $2^{32}$ 128-bit blocks) with a single encryption operation (same key and nonce) makes it probable that an attacker could create a modified ciphertext that would generate the same tag ...
Official CMS's of Government gazettes (in the third world), need to publish the checksum of each article and each cited external documentin (eg. full-text contracts) in a permanent support medium like paper, CD, DVD, etc. And, this is valid as legal proof for decades... But the checksum is not valid for decades, and th...
Toward the beginning of Neal Stephenson's Cryptonomicon, Avi gives Randy two strings of sixteen supposedly random hexadecimal numbers as encryption keys: AF 10 06 E9 99 BA 11 07 64 C1 89 E3 40 8C 72 55 67 81 A4 AE FF 40 25 9B 43 0E 29 8D 56 60 E3 2F If you change the hexadecimals to decim...
I'm currently trying to understand a proof of a protocol of the paper of Liqun Chen and Caroline Kudla entitled "Identity Based Authenticated Key Agreement Protocols from Pairings". You can find a copy here. In particular, it is a key agreement protocol which makes use of the bilinear maps. The protocol is the one desc...
Is it possible to use ECDH key pairs (Public and private keys) for encryption and decryption like RSA key pairs in encryption and decryption. Say for example, if i have RSA key pairs then i could do below things, // Encryption this.cipher.init(Cipher.ENCRYPT_MODE, this.publicKey); hexEncodedCipher = this.cipher.doFinal...
If there always existed a $k_3$ such that $\operatorname{DES}(k_2, \operatorname{DES}(k_1, M)) = \operatorname{DES}(k_3, M)$, how would that affect the security of the DES block cipher?
i want to test the entropy of my seed generator: in my case is /dev/urandom. I've read that this operation is non useful because it is the result of CSPRNG (normally not accessible). But what i obtain from urandom is the seed for my RBG algorithm and than it is the real seed for me. Do you think the test can be useful ...
The definition of differential privacy says that an algorithm $M$ is $(\epsilon,\delta)$-differentially private if $$P(M(x \in D) \in S)\leq e^\epsilon P(M(x \in D')\in S) + \delta$$ where $D,D'$ differ by one row and $\delta$ is $\text{negligible}$ in the number of database rows, so $\delta< \frac{1}{p(n)}$ with $n$...
I am new to elliptic curve cryptography as well as finite field theory. I am trying to understand point addition in affine coordinates. I understand, that for an elliptic curve $ y^{2}=x^{3}+ax+b $ over $\mathbb R$ the sum of two points $P=(x_{p},y_{p})$ and $Q=(x_{q},y_{q})$ is $R=(x_{r},y_{r})$: $$x_{r}=\lambda^{2}-x...
The LoRaWAN protocol has a specific way of encrypting data (page 20, chapter 4.3.3.1), and I'm trying to do it in C#. First, a sequence A with blocks with a size of 16 bytes each A1..An is created. Then they are encrypted to get a sequence S of blocks Si: Si = aes128_encrypt(K, Ai) for i = 1..n S = S1 | S2 | .. | Sn A...
1) a = b ⊕ s1 2) b = a ⊕ s1 3) b ⊕ s2 = c Is there a way to find s1 and s2 if we know many different values of a and c? 4) a1 = b1 ⊕ s1 5) a1 ⊕ s1 ⊕ s2 = c1 I think it is possible if we analysis the result, but I am not sure how. Or is it impossible? Edit: Sorry , a and c should be known but not b. Alice sends 'a' to B...
I've come accross the following expression in a paper: $$A_i=(C_2 * a_0)^{1/e_i} \bmod n$$ How to calculate $1/e_i$ in modular arithmetic? Or does it have some different meaning that I do not know? The paper is "A Practical and Provably Secure Coalition-Resistant Group Signature Scheme" by Giuseppe Ateniese, Jan Camen...
I'm Encrypting the data using AES-128 bit Encryption. I need to check whether the key is correct at the receiver side. How can I do that? Suppose At the receiver The user is asked to enter the KEY for decrypting. As far as I know giving a wrong key generates some gibberish data. How can I prevent that and report back t...
For example, if we grab 50 bytes from a high quality source and run them through a key stretching function like Argon2 and have it generate a 32 byte secret for AES. Is there any downside to this? Do we lose any entropy during this process since it comes from a high quality source already?
Let's say we have input data X and a hashing algorithm H that produces 256-bits of output (e.g. SHA256). Now, let's take a second hash function G that produces 128 or more bits of output (say RIPEMD128 or SHA1). If we define our final hash function L := sub128(H(q)) + sub128(G(q)), where sub128 takes first 128 bits of...
I have a case where to ensure the same encrypted string for the given input. Say for example If "Hello" is encrypted more than one time then same encrypted string should be i should get as an output (Like in hash algorithms). I have tried pure "ECIES" & "ElGamal" algorithms using bouncycastle but both returns different...
I was reading this paper which has a lot of references to the terms MEDP and MELP. Even though i think i got the general meaning, I could not verify that it is indeed correct. For the MEDP, I would say that it is the maximum bias that can be achieved over k rounds of encryption. For the MELP, respectively, I would say ...
I'm currently studying modern public key cryptography course, and I'm confused whether public key and asymmetric cryptography are the same.
Alice and Bob have a set $\mathcal{M}$ of $|\mathcal{M}|$ messages and a set $\mathcal{K}$ of $|\mathcal{K}|$ keys. Alice wants to send a message $m \in \mathcal{M}$ to Bob. She uniformly picks a key $k \in \mathcal{K}$ and encodes the message $m$ with it to create $x = e(m,k)$ (She uses different keys for different me...
I am really confused and need help on this problem related to TOTP as specified in RFC6238 here: https://www.rfc-editor.org/rfc/rfc6238#section-1.2. So I am now given a task to implement the RFC6238 to generate a 10-digit TOTP password, which will be used in a POST request later on. The sample input and output for the ...
i have understood the SSL handshake flow .The confusion are - What is the pre-shared key here ? Is it the pre-master key or it is the random number that is generated by server and client.? 2.I get it that the session key is used to maintain the session but how does it so that in TLS/SSL how master key is differ...
How can we say an elliptic curve is secure and can be used for cryptographic applications?
I was reading the book "Cryptographic engineering", one of the variation of linear congruential formula is as follow: $X_n = a_1X_{n-1} + a_2X_{n-2} \pmod {2^{31}-1}$ $a_1$ and $a_2$ are two prime numbers respectively Given 50 scaled consecutive number $[s_{1}, s_{2}, ... s{50}]$, is there an efficient way to work bac...
Sigma protocol to prove that the prover knows how open a commitment. Consider the unconditionally hiding commitment scheme based on discrete log, i.e., the public key $p_k = (p,g,y)$, where $\langle g \rangle = Z_p^*$ is a generator and $y \in Z_p^*$. To commit to a bit $b$, we proceed as follows: $c = \text{commit}...
I am implementing ORUTA and using JPBC library for it. In one of the algorithms, for hashing a message, it is specified that for message m: $m \in \mathbb Z_p$ , for some large prime $p$. I have a message text, so how can I make sure that the above equation holds true? (If possible someone please reply with example...
My question is regarding the coupling of the Thorp-Shuffle, as described in Morris/Rogaway/Stegers, Thorp-Shuffle Encryption. On pages 7 to 9, they describe and implement a coupling. It's all fairly elementary up until equation (5), where they show that the coupling time $T$ satisfies $P(T > 2n-1) \le p$, where $p = nl...
I have clear text, usually less than 10 bytes, which contains a few infrequently changing bytes. Reading: http://lollyrock.com/articles/nodejs-encryption/ I tried aes-256-ctr: The cipher text is as short as the clear text, which is good. The cipher text contains patterns, at the positions of the infrequently changing ...
Consider $n$ parties having their private inputs $s_1,\cdots,s_n$. How can they compute a public function $f(s_1,\cdots,s_n)= \pi$, where $\pi$ is a permutation of numbers between $1,\cdots,n$, using secret sharing scheme?
I have been reading a bit about homomorphic encryption, and have been intrigued by its properties. If I have some cryptosystem that is homomorphic and supports addition, from my understanding, I can do this: E(A) + E(B) = E(A+B) ...And then I can decrypt E(A+B) without knowing either A or B. However, if A and B were so...
I've a large number of self-signed certificates that are currently being used by multiple clients which were signed with the SHA1 ('SHA1WITHRSA' as it appears in the cert) algorithm at the time they were created. My boss has asked me to look into 're-signing' these with SHA2 (256) instead rather than re-generate a new...
I am reading about S-boxes. By looking for the reason why the S-boxes are not linear, I found the following: The mappings $B \mapsto S(B)$ are all non-linear, since it holds $S(000000) \neq 0000$ We notice that at each of the 8 S-boxes $S_1, S_2, \dots, S_8$ , the number at the upper left-hand corner is not equal to ...
I'm reading this excellent paper by Gentry as a smooth introduction to Fully Homomorphic Encryption. Most things are clear to me except from the way the homomorphic evaluation of the decryption circuit is described (which is after all the whole point). If I understand correctly, we assume (for simplicity) 1 message $m$...
I understand how private keys are generated from public keys in a setup like Bitcoin (using ECDSA). I understand that anyone can verify they have the 'correct' private key using a digital signature in this setup. In either KP-ABE or CP-ABE, how are either attributes or access policies 'encoded' into the secret keys/cip...
For $m, m'$, is it possible to find $r, s, t$ such that $r^s = m$ and $r^t = m'$ in modulo $G$, where $G$ is a large prime. Do you think is it relatively easy to find such $r$ from $m$ and $m'$? Consider that $m$ and $m'$ are arbitrary values.
The key idea in AES is the use of matrix multiplication and the corresponding inverse (as opposed to Feistel). But the algorithm does that using a GF instead of simple modular arithmetic. Is there any obvious reason to not use simple modular arithmetic?
I am looking into PAKEs (password-authenticated key exchanges), and it seems like SRP (Secure Remote Password) is essentially the de-facto standard. However, implementing SRP actually requires doing modular arithmetic, and is similar to, say, implementing Diffie-Hellman. That is, you'd have to have constant-time expone...
I'm stuck in a simple question about weak one way functions. Suppose $f(x)$ is strong one way, is $g(x)=f(x)_0$, i.e. taking the first bit of $f(x)$ a weak one way function? Intuitively, it is, because for any adversary $\mathcal{A}$ the probability of inverting $g$ is $\frac{1}{2} + \epsilon$. So it seems safe to say ...
I'm studying for CISSP certification & am using Shon Harris Exam Guide. It states that there are 4 modes that Triple-DES can be used in: DES-EEE3 DES-EDE3 DES-EEE2 DES-EDE2 I understand these modes. I also understand that EEE2 & EDE2 would be faster than EEE3 & EDE3. My questions: What is the use-case for EEE vs ED...
I have a doubt related to CryptExportKey and CryptImportKey. I will try my best to define my problem by explaining the scenario that I want to implement. I have two machines. On First machine, I create a Key-pair using CryptGenKey with ALGID=ALG_SID_RSA_PKCS then I exported the key using CryptExportKey with PUBLICKEYBL...
I'm recently reading Berry Schoenmakers's Lecture Notes Cryptographic Protocols (page. 53) and confused about this following question: Let $g$, $h$ denote generators of a group of large prime order $n$ such that $log_gh$ is unknown to anyone. Design Σ-protocols (and prove correctness) for the following relations: ...
In a lot of data management systems, a hash is used as a kind of data fingerprint, with the intent not to cryptographically defeat an opponent, but to quickly identify duplicate data by seeing if other data with the given hash already exists in the system. An example of this is data deduplication in the ZFS filing sys...
I was reading a paper related to post quantum cryptography. It says that RSA, ECC and ElGamal encryption schemes would be obsolete with the advent of quantum computers. But the hash functions can still be secure. I don't understand how one can unilaterally claim this security when hash functions themselves are not base...
I am currently trying to implement a cryptographic scheme. For this purpose I need a group of prime order in which the discrete logarithm problem is hard. For now, I have been using a subgroup of prime order q over the Integers mod p, where p=2q+1, p prime, q prime. (p about 2048-4096 bits) The parameters for the grou...
I'm assuming there can't be such schemes because CPA-security is equivalent to CPA-security for multiple encryptions, and an adversary can distinguish between $(\mathsf{Enc}_k(m_0),\mathsf{Enc}_k(m_0))$ and $(\mathsf{Enc}_k(m_0),\mathsf{Enc}_k(m_1))$ if Enc is deterministic, hence there is no deterministic symmetric en...
I am using a 64 bits symmetric ciphers (blowfish), to encrypt a plain block using ECB. The plaintext is always 64 bits long, but due to some limitations I have to use the same key (448 bits long) everytime. The plaintext is always different. I was looking to birthday attack but I find papers related to CBC mode only. I...
I co-authored and implemented SRVB, an asymmetric cryptosystem, only to eventually realize that it is strongly related to Merkel-Hellman cryptosystem, which has been broken. In order to help me investigate the efficacy of this development I took part of, what are the knapsack inspired attempts of asymmetric cryptosyste...
For any given one-key cipher $(M,C,K,E_k,D_k)$, we may modify it into $(M,C,K,D_k,E_k)$. In other words, we swap the encryption function with the decryption in the modified cipher. Are the two ciphers have the same level of security with respect to known- plaintext attacks?
In the context of an offline brute-force attack on encrypted data at rest (say, a password-protected AES encrypted file), is a password with 64 bits of entropy and 65536 rounds of key hardening just as strong as a password with 80 bits of "true" entropy (and no key hardening)? I guess what I really want to know is, ca...
I am working on selecting a S-box for my Cipher (Similar to AES). I found out there are 30 irreducible polynomials and over 16 primitive polynomials of degree 8. Is it necessary to choose a primitive polynomial for an S-Box? In other words, Is it necessary for the feild to be of full order(255) for a S-Box? What are t...
A function $f$ is a worst-case OWF if there is no adversary $\mathcal{A}$ such that $$\forall x,Pr[y=f(x): f(\mathcal{A}(y))=y]=1$$ A weak OWF is a function that the probability of inverting it is bounded by some $1-\frac{1}{q(n)}$ for some polynomial function $q(n)$. The question is suppose $f$ is a weak OWF, can we d...
So I have the m = p x q, p = 7 and q = 11 m = 77 S (which is the seed) = 4 Xi = 4^2 mod 77 from here I didn't know to continue the algorithm. Any help?
Is it necessary for the Rijnael polynomial to be irreducible? Can we have s-boxes constructed using reducible polynomials? If not what is the mathematical property that is obstructing to do so?
Is there a precise definition of what counts as a Linear Cipher? If so, what is it?
I want to program decryption algorithm for the LED cipher. The lightweight block cipher LED(Jian Guo, Thomas Peyrin, Axel Poschmann, Matt Robshaw:CHES 2011). All the things is routine except the MixColumn component which is like the MixColumn of AES but with a different matrix. In fact we have 64 bit of plain text in ...
I see how DES weak keys can be leveraged under chosen plaintext attack where an adversary feeds the ciphertext encrypted by a weak-key back to the DES encryption function and gets plaintext as a result. The probability that both keys from the semi-weak key pair are used seems to be very small ($6/2^{56} \times 1/2^{56}...
Recently, we had the question whether there's a PAKE that uses more standard, higher-level primitives than what SRP offers. Now this made me think and ask myself: TLS does have a PSK mode, can't we leverage that? This shall be the theme of this question. What I would imagine is the following exchange: Client -> Server...
Is there a downside to encrypting too much data? If so, what? I'm guessing things like too much data encrypted with the same key, possibly leaking information due to a collision encrypting non-essential data, wasting resources could be a problem, but that's just a hunch, and that's not how we do cryptography. On the...
Is there a concrete case where chaining cryptographic hash functions reduces security? I'm thinking of things like md5(md5(x)) or sha256(sha1(x)), as common in password hashing (even though neither function above is suitable for it).
I've been working on my course project lately and got stuck with the problem which I reduced to the following abstract protocol: Alice generates an ID key and gives it to Bob. Bob generates some random data, combines it with that ID key to produce a token and sends it back to Alice. It is essential that data is random...
Given a pseudorandom generator (PRG) with $G(x) = y_{1} || y_{2}$, where $y_{1}$ and $y_{2}$ are n-bit strings. $G'(x) := G(y_{1}) || G(y_{2})$. Is $G'(.)$ still a PRG? I am guessing it's a No because $G'(x) := G(y_{1}) || G(y_{2})$ always outputs the concatenation of $G(x)$ with previously generated outputs as inputs....
while digging into some secured communication protocol, I noticed a usage of AES-128 CBC that raised my attention. In it, the IV is tightly coupled to the Key, being a xor of its values with the byte index: for(i=0; i<16; i++) { IV[i] = Key[i] ^ i; } Could it be an issue if an attacker knows the first blocks of a ...
Why are researchers using text files to prove the successful collisions? In the case of the first MD5 collisions I believe it was PostScript-files. In the case of the recent SHA-1 collision it’s PDF files. A PDF file is basically a container file that comprehends a lot of meta-data attached to the actual viewable data...
I have to generated a secure key from some meta data and a password, and I'm free to choose among a dozen of key derivation functions (KDFs). The problem is, I'm not too happy with either one. Some are well known and proven to be secure but they are not expensive enough to really survive a massive brute force or dictio...
As I understand, the security of key-sharing depends on the cleartext actually being random. If I split a secret which contains things like ASCII or even fixed strings (think -----BEGIN PGP PRIVATE KEY-----) what kind of preprocessing is recommended? My current thinking is either one time Pad: $ \text{Shamir}_{(N,M)...
I've recently stumbled across this "moment" on Twitter, where there are three files, that show their own MD5 hashes. As an example, this GIF (screen-shotted in the following image), has the hash: f5ca4f935d44b85c431a8bf788c0eaca They obviously match. Also this looks like the sort of attack that would normally take $2^...
From Regev's paper in 2005, we know that for applying worst-case to average-case reduction to an lwe cryptosystem, one should use error distributions with standard deviation $s$ bigger than $2\sqrt{n}$. Why this condition is not regarded by Lindner & Peikert parameters (e.g. n=128 & s=6.77)?
Why is it it’s so much harder to execute a successful collision on certificates than it is on text data? I assume this has to do with the fact the certificate actually is a file that contains signed (and therefore encrypted) data. However, why does this complicate things? Of course an attacker doesn’t possess the priva...
If data (e.g. an e-mail, pdf file, xml content) is hashed using SHA-1 and then signed by a SHA-2 certificate, is this any bigger of a risk than using a SHA-2 hash with a SHA-2 certificate? I assume in this scenario although the actual file content COULD be collided (as being hashed using SHA-1), in practice the risk is...
I recently answered a question on Code Review: Resizing a discrete uniform CSRNG distribution and I was challenged to offer a proof for one of my suggestions, and I can't find one, possibly because I don't know how best to describe my suggestion. As background, there is an (assumed) CSRNG RNGCryptoServiceProvider avail...
IBM announced Q, a project for a 50-qubit universal quantum computer, according to the press realease. Here is more PR spin, and the research sub-page. What would be the applicability of that to cryptanalysis?
I'm studying for an upcoming test and I can't figure out the following sample question: Let $\Pi = (\operatorname{Gen}, \operatorname{Enc}, \operatorname{Dec})$ be an encryption scheme with key space $\mathcal K$, message space $\mathcal M$, and ciphertext space $\mathcal C$ where $\mathcal K =\mathcal M =\mathcal...
I wonder is there an example of proof of work scheme that uses a hash function and requires the hash function to be immune to length extension attack? I mean the scheme, that becomes easy to solve if we use vulnerable hash function, but has strong security properties as soon as the underlying hash function resists leng...
I am confused about the content of ClientKeyExchange in case if the key-exchange is static DH. The TLS 1.2 standard says under section 7.4.7 in https://www.rfc-editor.org/rfc/rfc5246#page-57: If the client is sending a certificate containing a static DH exponent (i.e., it is doing fixed_dh client authentication), then...
I am a beginner learning about encryption and I would like to ask a few questions, hoping this is the right place to ask, so please bear with me. We have Alice and multiple clones of Bob. Only Alice can send messages to Bobs. Only Bobs can exchange messages with Alice, but not between each other. Alice and Bobs have me...
The example of two round iterated cipher(each round is cubic function) here shows polynomial after two rounds with 9 terms. however if we find the polynomial for two rounds, it has 22 terms one clue i have is, the difference in number of terms may be because of underlying mathematics difference, (use of finite field ...
Say you have a 1,000,000 random bytes file and you split it into 1000 x (1000 bytes) pieces. You then pick two random pieces and swap them writing down the position of the pieces (eg. swapped piece 34 with piece 457). You repeat the process 1000 times at least. Is it possible for somebody else to recover the original ...
Given that the plain text(P) and the ciphertext is known, and there's a random string(8 bytes)(S) concatenated to the plain text(P || S), how to go about figuring out the random string. Querying of black box is unlimited.
The following description from http://shattered.it caught my eye: How do I detect this attack? You can use the online tool above to submit files and have them checked for a cryptanalytic collision attack on SHA-1. The code behind this was developed by Marc Stevens (CWI) and Dan Shumow (Microsoft) and is publicly avail...
Taken from the Cryptography mailing list. It is claimed that in ECDSA, without knowing the private key and any message signed with it, one can sign: "random garbage" (there is some complicated structure in it) $H=0$ $H=r$ $H=s$ The attached Sagemath code works for me. It uses the bitcoin SECP256k1 curve and public ke...
If someone would generate a SHA1 CSR and submit it to an CA to receive a SHA2 certificate, would the process as a whole be at risk because the CSR could be malicious? Assumption: In this case, the “data” (as used in Q2) is the public key of the end user certificate. In practice the CA could still generate a SHA2 certi...
Can I use charm crypto tool to run it over my datasets for CPABE scheme and plot graphs using its Benchmarking tool ? Or, how can I use Charm Crypto tool with CPABE toolkit ?
I have seen in various papers like in this one page 4, that the AES s-box equation is: $S=A \circ φ^{-1}(φ(x)^{254})$ where $φ$ is the isomorphism from $\mathbb{F}_2^{8}$ to $\mathbb{F}_{2^{8}}$ with its basis and the reduction polynomial and $A$ is the affine transformation defined in AES. I am kind of new to this are...
I had to decrypt two book passages from different books which had both been encrypted using the same one-time-pad, and automate the process at that. I've found a few explanations of how this could be done exploiting XOR to extract the pad, but this was not applicable to our case since the encryption method was differen...
Assume it takes 512 clock cycles to check if a 64 cryptographic bit key is correct. Given a 64 bit plain text and its ciphertext, how long does it take to check all keys using a single core of a 4 GHz processor? What is the time taken if it is done using a cluster of 1024 servers, each with a quad core processor? I nee...
I wrote a solidity smart contract for elliptic curve point addition in Jacobian coordinates. Jacobian coordinates: [X,Y,Z] Affine representation: [x,y]=[X/Z^2, Y/Z^3] I used the following formulas: Link. My code seems to work fine however my questions are: What is the additive inverse in Jacobian coordinates? Is it th...
The currently known collision attacks on sha1 are relatively difficult to practically exploit because the two colliding files must have mostly the same content. This limits attacks to file formats where garbage can be easily hidden and where conditional logic based on the value of a small block of garbage can be used t...
The inputs to AES GCM mode appear to be: an IV a key message to encrypt The output is a cipher and auth tag. However, if one were to manually perform an encrypt-then-mac scheme, the inputs required would be: an IV a key an auth_hash (for decryption) an auth_key message Then, you would compare auth_hash == HMAC(mess...
If you have a channel where you are communicating using a one time key, is it possible to receive additional key over that same connection without compromising security? Naively sending it through the same encrypted channel would of course consume the pad at the same rate that you refill it, but maybe there's a more cl...
I have a large piece of data I want to encrypt, and I have a key master_key. Rather than encrypt the data directly with master_key, I generate a random key item_key, split it in two parts, and encrypt the data with the first half, and use the second half as an auth key in generating an authentication hash with HMAC. I...
I have read somewhere that 2 rounds is AES provide full diffusion. So I looked it up to find out what it exactly meant. In The Design of Rijndael page 41, section 3.5 and it states that: Two rounds of Rijndael provide 'full diffusion' in the following sense: every state bit depends on all state bits two rounds ago,...
Suppose $m$ is a huge publicly known prime, like one of GIMPS Mersenne primes. Let $p$ and $q$ be large primes. If I let $n = pqm$ and do RSA $$c = x^{e} \mod n$$ $$x = c^{e'} \mod n$$ Where $ee' = 1 \mod \phi(n)$, is there any weakness introduced that would not have been present had I done RSA with $n = pq$? How about...
DSA and ECDSA both are based on discrete logarithm problem (and elliptic curve based DLP) And ECDSA protocols resembles DSA. My question is, Can every protocol based on DLP be changed (substituted) to a protocol that is based on ECDLP?
One of the practice problems I was given for an exam that I'm preparing for is as follows: Let $\Pi$ be a secure, deterministic MAC that uses canonical verification. Show how to construct a MAC $\Pi'$ that is secure and deterministic but is not strongly secure. In my book, it says that if a MAC uses canonical ver...