instruction
stringlengths
32
27.2k
For regular traffic in mesh network (between Internet of Thing devices) customer decided to use one of two options: DTLS PSK ciphersuite - DTLS based on pre-shared symmetric key or direct use of AES - customer wants to minimize traffic between sleepy devices (battery should be alive for several months) Questions: Wh...
The post-quantum lattice-based cryptosystem CRYSTALS-KYBER which has made it to the second round of NIST PQC includes two implementations: 1) a baseline reference implementation in C and 2) an optimized AVX2 implementation. The code repository can be found here. The AVX2 implementation includes some precomputed constan...
I am currently reading a paper titled "Another view of division property" and encountered the terms "Affine subspace" and "Linear subspace". I am new to the field and having some difficulties to understand the topics. Can anyone describeb or give any reference about it so that I can read that.
Is CRC32C (any) better than CRC32(B)? I read that CRC32C (alias Castagnoli) is better than CRC32 (sometimes referred as CRC32B) in detecting errors but what that exactly means and how to check it didn't mention. I know they use different polynomial but that alone doesn't explain that. So I started to search a bit more ...
Does the adversary know the random seed s? If he does not, isn't one possible construction simply the random seed itself? if the output needs to be bigger than random seed s cant I just add a hardcore bit to the random seed s? Also, regardless of the number of leading bits of the output that are revealed (even n-1 wher...
In digital signature The encrypted message is signed by the sender private key and verify using sender public key. The encrypted message is encrypted with another public private key pair which the receiver will have a way to compute those out Instead of ds, cant the sender just encrypt that encrypted message with his...
I am currently attending a IT-Security course at the Tel Aviv University and I stuck with the an assignment task. Please DO NOT post the solution if you know it. But I would be very grateful for any hint that leads me to the correct result. Task: "Eve has managed to intercept the following messages, encrypted by Alice ...
I'm trying to protect a key using a PIN code. However, if the user somehow loses the PIN code, I'd like to be able to allow recovery using a PUK (similar behaviour as for instance your SIM card on your phone). How would I go about implementing this, whilst storing as little private data as possible? Are there crypto sc...
Is it possible to re-randomize a ciphertext with the Cramer-Shoup System? I have some Cramer-Shoup ciphertexts and i want to re-randomize them, so they look different and are unlinkable to there previous form, but still can be decrypted with the original secret-key. Is this possible? And if it is, would it still be pos...
I originally posted this question in the math stackexchange, but I then thought that it might be more appropriate in this section. I am currently studying Shamir's secret sharing scheme, which uses Lagrange's interpolation formula to reconstruct a key $K$ from a certain number of shares. In Shamir's scheme, during key ...
Some background information: In contract bridge, there are 0xAD55E315634DDA658BF49200 (just under 2^96) possible bridge deals. Since the 1990s, bridge deals for major tournaments were generated on PCs and dealt using dealing machines. Initially, the deals were generated using a PRNG with very low periods with dubious s...
Does it exist? Specifically using Shamir secret sharing based MPC and looking for a (non-)interactive way to prove that the secret value is valid. A value is valid if it is part of a set for example $[0,1] \in \mathbb Z $ or non-negative, or at least that it is the secret key of some other value. For example if $s$ is ...
I was wondering which block encryption mode or modes will be most appropriate for transport of random values of one-block length. Block length could be of size 256 bytes and transport is from person to person, direct message. This can be a password or an username. Certainly not the video streaming.
We know that DES has key length that is too short to defend brute-force attack. One idea to improve DES was to encrypt a message using DES twice with two different keys. Let E be the encryption algorithm of DES and k1, k2 be two DES keys. Such a double DES encryption performs like c = E(k2; E(k1; m)) We might hope now ...
I need to ask this, as I am not allowed to comment and don't quite understand an existing answer because I don't have a cryptography background and never looked into how ECC works. Why can't you encrypt a message with a public key generated via ECC? How can two peers Alice and Bob agree on shared secret (symmetric key...
I am trying to understand better the hard-core bit property from the RSA assumption. The paper by Håstad and Nåslund shows that every single bit is hard-core. By the result itself, two or more bits can be correlated, but marginally a single bit is pseudorandom. Is it possible to extend the result to the parity of an ar...
This is a curiosity. I don't see any value (yet) of using this. Is it possible to have a signature that signs itself? What I mean is that when you send a signed message, you send something like $(message \mathbin\| signature)$, where $signature = Sign(message)$. Is there a signature scheme in which $signature = Sign(me...
I'm currently working on a Python Program which aim to return the secret key rate of a specific Quantum Key Distribution protocol (Brassard, Benett and Mermin 1992 i.e. BBM92). A colleague will provide me with the result of this protocol. However, I am still looking for the right formalism to express this secure key r...
This question is purely hypothetical. The idea is to generate variable sized hashes (multiple AES block sizes) like so: encrypt plain text encrypt plain text + cipher text from 1. XOR cipher text blocks over hash blocks. Step 1 and 2 can be programmatically done as one step. Step 2 causes at least the second half of ...
I recently found the GitHub repository used to make the measurements in the AES-GCM-SIV paper where they implement polynomial hashing using POLYVAL. This means in this context to compute the usual $\tau=\sum_{i=0}^nm_iH^{n-i}$ for 16-byte message blocks $m_i$ and a 128-bit key $H$ in the usual way as $H_{i+1}=(m_i+H_i)...
What is the reason that in the HKDF standard (RFC5869), in the "extract" phase, the 'salt" parameter is instantiated as HMAC key, and the secret keying material 'IKM' is instantiated as HMAC input data (so that the extract phase equation is PRK=HMAC(salt, IKM))? Especially, the RFC says that the salt, which plays the r...
If i have say 64 bytes, can i XOR those bytes with another 64 random bytes, and have two new arrays, where both are needed to reconstruct the first? Intuetively i need some symmetric encryption like AES, but i cant figure out how the XOR above can be attacked. Does the content matter?
AES uses the following polynomial with coefficients in GF(2^8): a(x) = {03}x^3 + {01}x^2 + {01}x + {02} The inverse of this polynomial mod x^4 + 1 is: a'(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e} But how do you calculate the inverse of a polynomial with coefficients in GF(2^8)? I have found a partial worked example here,...
In New Security Results on Encrypted Key Exchange, there is a Game 2 as follows: Game $G_{2}$: For an easier analysis in the following, we cancel games in which some (unlikely) collisions appear: collisions on the partial transcripts $((A, X^{*}), (S, Y))$. Note that transcripts involve at least one honest party, and ...
In Simple Password-Based Encrypted Key Exchange Protocols, the authors proposed a hard assumption as follows. Experiment $Exp^{pccdh}_{\mathbb{G}, n}(\mathcal{A}, M, N, X^{'}, \mathcal{P})$ $(Y^{'}, st)\leftarrow \mathcal{A}(find, M, N, X^{'}, \mathcal{P})$ $k \stackrel{R}{\leftarrow} \{1, \cdot\cdot\cdot, n\}$; $r \le...
Can there be a way to form a shared secret key between two nodes of a Wireless Sensor Network who are more than one hop away, simply on the basis of their IDs?
At https://corona-tracing.org/ and https://www.cryptool.org/en/cto-highlights/corona-tracing an easy to understand way was presented how such contact tracing apps work from a cryptographical point of view as it lets users simulate the process. The "Background" tab at the 2nd webpage describes the differences in the ...
I'm looking for an asymmetric encryption algorithm that preserves the size of the thong in clear text. The encrypted file must not be longer than the plaintext file and must not contain any special characters. Do you have any ideas?
What are the disadvantages of using AES-256 with 240-byte key (which scrypt/bcrypt/argon2/pbkdf2 can easily output) instead of an expanded 256-bit key? The only disadvantage I can think of is "no more hardware acceleration". This is not important for a fair comparison, are there other disadvantages? EDIT: This is about...
In RSA cryptosystem, if I have two (or more) pairs of public key and also the corresponding ciphertexts, can I get the fixed message from them? I cannot think up any good idea for now.
For bilinear groups: $(p,\mathbb{G}_1,\mathbb{G_2},\mathbb{G}_T,e,g_1,h_1,g_2,h_2)$, where $\mathbb{G}_1,\mathbb{G_2},\mathbb{G}_T$ are groups of prime oder $p$. $g_1,h_1$ are generators of $\mathbb{G}_1$, and $g_2,h_2$ are generators of $\mathbb{G}_2$ Is it possible to use Pederson commitment over all these three grou...
I have been reading the Differential Privacy (DP) literature for some time to get familiar with it. I feel comfortable with the Math and Stats foundations of it, but I am suffering a bit from the 'setting' of response release. What I don't get is, the traditional definition of Differential Privacy says that any two nei...
I am researching the Bombe Machine, having just completed a project on the Enigma Machine. I visited The Rutherford Journal - The Turing Bombe, and it claimed that The scales on the three indicator drums are designed to show the ‘rotor core starting positions’ at a ‘stop’ when measured in terms of the corresponding E...
I am doing research on the Bombe Machine, and I read that when the Bombe tries to find the stecker (plugboard) partners of letters, it only needs to use the rotor types and arrangement and also the "rotor core offset," which is just a combination of the rotor positions and the ring settings. However, the ring setting ...
I want to obtain a “toy” version of the Ascon permutation defined for five 8-bit words (instead of five 64-bit words.) It seems that it is possible to use the same bit-sliced 5-bit S-Box. But is it possible to use the same sequence of constants (0xF0, 0xE1, 0xD2, ...) XORed with the middle word? And what is a suitable ...
I have recently been looking into Homomorphic encryption and I am looking for a specific hash-based encryption/decryption scheme. I don't need a full implementation but I am not sure if what I want is even possible at all. So I am looking for some direction or explanation on why this is impossible (which is my gut feel...
Shamir's Secret Sharing Scheme uses arithmetic in a finite field of prime order. In a secret image sharing scheme, what are the advantages of Galois field $\mathrm{GF}(p^m)$ over finite field $ F_p$?
In the Shnorr protocol where the prover wants to prove he has a witness $w$ for $g^w$ the following interactions happen: the prover chooses a random $r$, calculates $y=g^r$ and sends $y$ the verifier sends a challenge $x$ the prover calculates $t=xw+r$ and sends it to the verifier the verifier tests if $g^t=(g^w)^x.y...
In the original paper of Paillier, lemma 1 shows why $n$ must divide the order of $g$. What I don't understand in the proof of this lemma is why $g^{x_2-x_1}(y_2/y_1)^n$ implies $g^{\lambda(x_2-x_1)}$. Where does this result come from?
Ciphertext has the property to appear random. As a matter of fact, randomness is the first test, an encryption algorithm must pass. However, there are various setups, which monitor the incoming/ outgoing traffic and can easily identify Random Bits (ciphetext). Is there any technique/ research paper in literature which ...
Question When determining the security of a hash system, the cryptanalyst tries the following attacks. (a) If the attacker is NOT allowed to modify the original message, determine the number of hash calculations that would be required to have a 50% chance of generating a new message with the same hash as the original m...
I would like to generate a random number based on this set, firstly how do I generate the numbers that belong to the Z* order q set. I have the q value and the prime p value. Also if there's a library in python that does that already that'd be nice
Hello everyone and already thanks for taking your time to read this! I am currently implementing ChaCha20 (256-bit key) for my bachelor thesis. I know that there are two version of ChaCha out there; the version used in IETF protocols and the one with the original design by DJB. As far as I understood, the only differen...
i want to make many pederson commitments $C=g^s h^r$ for a long time , do i have to change the generators $g$ and $h$ or its ok if i always used the same ones
Assuming the hacker has access to the ciphers of each of the versions, will it help him/her to decipher the original file(s) by doing some sort of comparison of the ciphers?
Having a random function - $R\in{}\mathcal{R}$ s.t. $R:\{0,1\}^n\rightarrow{}\{0,1\}^n$. What is the probability that $R$ is invertible? I know calculating it suppose to be straight forward, but I'm struggling with it a bit.
Pardon me for this newbie-ish question. I'm still a novice in cryptography . I have an application that outputs random numbers from 0 - 12 (endpoints inclusive) unsequentially (some outputs are thrown off) using the mersenne twister algorithm and i would like to break and predict its seed in Python but i don't know wha...
On page 89 Remark 3.5 in the Handbook of Applied Cryptography the following is written: A non-trivial factorization of $n$ is a factorization of the form $n = ab$ where $1 < a < n$ and $1 < b < n$; $a$ and $b$ are said to be non-trivial factors of $n$. Here a and b are not necessarily prime. To solve the integer f...
I am having some problems encrypting disk using AES-256 in CTR mode, with ESSIV iv generation (I am aware of couple of flaws, although this mode is enough for now). What I have here is: S = SHA256(K), result 32 bytes K = original key, 32 bytes SN = sector number, 16 bytes E = AES-256 CTR IV2 = generated iv, 16 bytes W...
Explain why an anonymous key exchange protocol cannot be secure against a computationally unbounded adversary.
As far as I understand, OTP usually works on a superficial layer by having two parties both know of a key and then authenticate each other by sharing a hash of the key and some sort of counter (e.g. currentTime mod someNumber) with each other. In theory, this means both parties can verify each other, as both have the c...
I'm looking at a way to encrypt a file so that our software will only allow users with the proper license to use it (see details below). I have some notions on that topic, but barely more than knowing it's very easy to get things wrong. I'm sure what we're doing must be rather common (up to the details), but I wasn't l...
Given an algorithm $A_D$ which solves an instance of the decoding problem $e \in \mathbb{F}_2^n$ in time $T_D$ given a parity check matrix $H \in \mathbb{F}_2^{(n-k)\times n}$ and a syndrome $s \in \mathbb{F}_2^n$. You are also given a LPN-oracle with error-probability $\tau$. Construct an algorithm which solves the LP...
I don't know mucho about Cryptography, I try to understand, It's for homework. Why the standard DH is not sufficient to ensure the security of the Diffie-Hellman key exchange? My answer was: In the standard Diffie-Hellman key exchange protocol, both parties compute the secret value gαβ for two privately chosen values $\alpha...
Let $G=(\mathbb{Z}_p \times \mathbb{Z}_p) \rtimes_{\phi} \mathbb{Z}_q$, where $p$ and $q$ are odd distinct primes. Let $G$ be generated by the elements $s=(g_1,e_q)$ and $t=(e_p,g_3)$, $g_1,e_p \in \mathbb{Z}_p \times \mathbb{Z}_p$, $g_3,e_q \in \mathbb{Z}_q$, $e_p,e_q$ are identity elements. $|s|=p, |t|=q$. $\phi:\...
Do KDFs exist for generating RSA and ECC keys from a 2048-bit random secret?
I'm trying to decrypt a PCAP encrypted with TLS 1.2. I have the private key and Wireshark is able to decrypt the data so what I am doing should work but there is obviously something wrong. The cipher used is TLS_RSA_WITH_AES_256_GCM_SHA384 with no compression. The first steps are to extract the random values from the...
I understand that if $e\in{\mathbf{Z^*_{\phi(N)}}}$ then $\gcd(e,\phi(N))=1$ and if $e\not\in{\mathbf{Z^*_{\phi(N)}}}$ than $\gcd(e,\phi(N))\neq{}1$. But I couldn't figure out why this implies bijection of $f(x)=x^e$. I also tried to see examples but that didn't help me to explain the phenomenon.
Is there a cryptographic algorithm that can 'pack' a bunch of strings/numbers and "confirm" if a string/numbers exists (later in the code) while keeping the output hidden? For example, I have algorithm X, to which I can run something like: // From Alice's side algo1 = new X(key); algo1.pack(100) algo1.pack(200) algo1....
So I am attempting to generate a JWE using an X25519 to encrypt the for the Content Encryption Key (CEK) and AES-256-GCM for the content. My issue however is that NaCl needs an IV (nonce in NaCl) for both the asymmetric encryption of the key and the symmetric encryption of the content. Looking at other examples such as...
is there any post-quantum public-key encryption that achieves "key-privacy" (IK-CPA, IK-CCA) as described in this paper? I saw one code-based public-key encryption construction, but I wonder if there is any lattice-based construction.
I have a server and a client device that share two separate data channels that each need to have authentication and encryption protections. When a connection is made over data channel 1, it is secured using TLS where all data after handshaking is authenticated and encrypted using a single session key via AES-CCM. Data ...
I wonder about this proof. Can someone help me? I try to prove for Presevation of Collision Resistance for Merkle-Damgard as guide in end of this paper (Security Reductions of the Second Round SHA-3 Candidates). Assume H is Merkle-Damgard hash function, f is an compression, f' = chop_s(f). I try to prove: 〖Adv〗_H^col (...
If we have a PRG $g$ and a OWF $f$, can we say that $g' = f(g)$ is a PRG? And what if $g$ stretches its input by a factor of 2?
I am developing an app in which the user data is encrypted in the client before the data is transmitted (over SSL) and decrypted after it is received. If the database is ever compromised, without the user's decryption keys the attacker knows nothing. Of course, when the app is hosted on a web server, an attacker could ...
I believe I've read this before, but I can't find it despite hours of searching on Google. I've know the common definition of isogeny in elliptic curves, as $\phi:E_1 \rightarrow E_2$ a nonconstant morphism of curves satisfying $\phi(0)= 0$, however somewhere else I read a really lovely intuitive explanation that basic...
Can Ciphers that are known to be insecure because their keysize is considered too small still be used in appliances that have a tight decryption timeframe? In particular I am looking at ECC2K-130. ecc-challenge.info states, that they need 2466 PlayStation 3's to carry out the required 2^60.9 iterations per year. Let's ...
If the given protocol is non interactive then how can one prove that the modified protocol is complete and determine whether it is zero-knowledge? Let $N = p q$ as in an RSA algorithm, with $\text{gcd}(e, \phi(N)) = 1, e$ prime. $P$ wants to prove knowledge of $x \in \mathbb{Z}_N$, where $y = x^e$ is public. $P$ choose...
Recently a bank had a costly mistake that resulted in their master private key being exposed. Through this thread, I learned about multi-party key storage with Adi Shamir's secret sharing scheme as the basis, very cool. In the naive setup, there's still a person/machine that must do the final decryption which knows the...
I want to end-to-end encrypt items in a stateless environment. These items have an identifier (random string). Now I want to add encryption by adding a random key. The URL could be https://server.tld/item#key which users can share with each other. I want to only use Web Crypto API (SubtleCrypto) without any additional ...
I see people talk about Edward curves (when I discuss Ed25519) as better curves than Weierstrass for computations. Now I get that Edward curves have the nice addition formula, but if we have a specific Weierstrass curve, wouldn't addition also involve the same computation, since we have fixed equations for that, that w...
It is my understanding that libsodium's sealed_box is based on X25519, a Diffie-Hellman function: By combining the X25519 key agreement with a symmetric cipher and having a recipient derive the symmetric key, a message can be constructed that can only be decrypted by making use of the X25519 private key. Can this const...
I'm quite new to cryptography and don't have much mathematical knowledge. I'm studying cryptography, especially public key algorithms. I have some basic knowledge of public key algorithms so I know how the RSA algorithm works. But I found lots of things I don't understand while reading New Directions In Cryptography by...
I am trying to understand how an unbalanced Feistel network works. I came across this image: It says that the function takes $b$ bits to $y$ bits. Which works on the first step, however clearly doesn't on the next one. What am I not getting? If you always apply the function to the side with $b$ bits would that break t...
IEEE 1363 (or more precisely, IEEE 1363-2000) - the IEEE Standard Specifications for Public-Key Cryptography - has been inactive for so long, that it is now with status Inactive-Reserved by IEEE, and even considered withdrawn since Nov 2019. Yet, it appears like a relatively well written standards document by a respect...
If a text ciphered by substitution is in a artificial language with equal frequency distribution of characters, and perhaps 2 or 3-grams too, what would be the next, easy to understand, ways to decipher it? I found the "Hill climbing" concept, of starting with a random set of replaces, compare results with a dictionary...
If we have a symmetric algorithm with key length $m$ bit, and we do a 5 time encryption with it. How much will it be its effective key length.
I want to understand how, using standard tools like openssl (or similar), to derive a child RSA key pair from an existing RSA key pair. Additionally I would like the derived key to contain a reference to it's parent such that the relationship could be verified using the same tools used to create it. From my research s...
In the book Serious Cryptography It says for a cipher's permutation to be secure "Different keys should result in different permutations. Otherwise it becomes easier to decrypt without the key: if different keys result in identical permutations, that means there are fewer distinct keys than distinct permutations, and t...
Problem 5.16 in this pdf, from the book: Christof Paar, Jan Pelzl, Understanding Cryptography 5.16. This is your chance to break a cryptosystem. As we know by now, cryptography is a tricky business. The following problem illustrates how easy it is to turn a strong scheme into a weak one with minor modifications. We sa...
I'm struggling to understand the intuition of the zero knowledge-ness of this proof from the following paper. The proof is a 2 round where the verifier asks the prover to extract square roots of quadratic residues. I've read the HVZK proof (shown in the picture below) and I agree that you can produce a transcript that ...
Situation:- I am using Python. I am using RSA and I am using two 64 bit keys. I am not an cryptographer . I can provide you the RSA code if needed but i am not posting it as it doesn't have to do anything with the problem. I have to give the private key to a human to remember well 64bit key cannot be remembered by norm...
In symmetric cryptography, combining an IND-CPA secure symmetric encryption scheme with a secure MAC with the encrypt-then-MAC method yields a IND-CCA secure symmetric encryption scheme. I am trying to understand why this does not hold in the asymmetric case. Suppose you have an IND-CPA secure public-key encryption sch...
Is ShiftRows(SubtBytes(x)) = SubtBytes(ShiftRows(x)) the same for the same entry : in AES It seems like these two are equal, can someone explain in theoretically?
I use Rclone, which uses Secretbox to authenticate and encrypt data. Secretbox uses the Poly1305 authentication algorithm and the Xsalsa20 symmetric flow cipher. This whole process takes some time (very short time, because it is a very fast cryptographic algorithms). I wonder how fast the Poly1305 algorithm and the Xsa...
If verifiers are public blockchain nodes, which might leak information. Does this imply that range proofs such as Boudot's and Lipmma's (squaring based) approach could not be applied, unless a trusted set-up is used? In this case, if we need a range proof without trusted set-up, what are the choices out there? Bullet r...
This is tangential to this question, which asks about generating a file to match an exact MD5 hash. My question is if it would be significantly easier to generate a file that is "within X digits of" an existing MD5 hash. For example, if this is the MD5 hash I am trying to copy: 5f4dcc3b5aa765d61d8327deb882cf99 I would ...
AES needs a key in order to work, hashing-algorithms do not. Suppose we have a fixed key for AES, why don't we simply hash our keys with that? As with hash functions, AES has arbitrary input size, fixed output size and reasonable computation time. And if the fixed key can be kept safe, it is computationally infeasible ...
I was studying PKI the other day and I had a serious thinking about the following question. What is CSR? - It is a block of encoded text that is given to the CA when applying for an SSL certificate which validates the identity of the requesting party. The process to construct a CSR is, A Certificate Request Info valu...
I have specific cipher which is built from permutations. It has or should has few rounds. If we do 2 rounds it is like 2 permutation composition. 3 rounds are like composition of 3 permutations and so on. It is 128-bit block cipher, so every permutation has $2^{128}$ elements. Every unique permutation can be define by ...
I need to generate secure pseudorandom numbers in an embedded system. Instead of having to port some RNG library, could I just use an existing SHA2 function as a random number generator (n-th random number is SHA2(seed + n))? I'm worried that SHA2 hashes might not be evenly distributed (have bias towards certain sequen...
Suppose there is an elliptic curve $E$ in form $y^2=x^3+b$ defined over $\mathbb{F_p}$, where $p$ is large prime. #$E(\mathbb{F_p})$ is also a large prime but #$E(\mathbb{F_p})\ne p$. ECDLP on this curve is in the form of $Q=[k]P$. Now let's define the same curve but over extension field $\mathbb{F_p}^6$. #$E(\mathbb{F...
For an authentication problem imagine the following scenario with two devices: 1 server 1 client. The client starts a conversation with the server and sends him his public key. All public keys in this scenario are signed by a CA. The server validates the public key and sends his signed public key to the client togeth...
Suppose Alice is a traitor and suspects Bob might also be a traitor. If Bob is a traitor, she would like to conspire with him together, if not she doesn't want to reveal that she is a traitor. Is there a protocol Alice and Bob can engage in that would reveal that they are either: Both traitors Not both traitors With ...
I was doing some thinking about what would happen to my computer and passwords if I fell off the earth tomorrow. I wanted to have a message that only they would have the ability to decrypt and I wanted it to be very strong. Lets say they are the only ones who know our first dog's name, Scout. How could the decrypt a sa...
I have 7 ciphertexts that have been XORed with the same key. I'm writing a program to figure out what the plaintexts are and possibly maybe recover the key. I have managed to convert the HEX ciphertexts (1-7) into binary and XOR each ciphertext with each other: C1 XOR (C2...C7) C2 XOR (C3...C7) C3 XOR (C4...C7) C4 XOR...
Let's say you have a, or several random byte(s) 0-255 and would like to derive numbers 0-9 for a One Time Pad (OTP) of them. What would be a non-naïve approach to represent 256 possible values onto 10 possible values without weakening the underlying security? I am not sure that I simply can discard 6 states of the 256 ...
If $((p-1)(q-1) -1)$ divisible by $e$ ($e$ is odd number) , then $\text{gcd}(e,(p-1)(q-1)) = 1$. ($p,q$ are prime numbers ) Is this true, if yes why, if not why not ?
I am looking at a elliptic curves of the form $E:y^2=x^3+x$, i.e. short Weierstrass curves wtih $a=1$ and $b=0$, defined over a field $\mathbb{F}_p$ with $p$ being a safe prime. Somewhat interestingly, this is kind of an inverse Koblitz curve (where $a=0$ and $b\ne0$). Because $b=0$, the case of $x=0$ will always be a ...
I hear a lot about AEAD encryption (GCM, EAX, ...). Why is it unsecure (it seems to be as AEAD exists) to do do that: Imagine a block of data, hash it, append the hash to the data, then encrypt the result (data + hash) ? I would intuitively think that it is not possible to currupt the data then corrupt the hash to hide...