instruction
stringlengths
32
27.2k
Is there a way to commit to a degree of a polynomial without committing to every single one of its coefficients? The problem I am trying to solve is to prove that two polynomials are the same in a more efficient way than to prove that every coefficient of the two polynomials is the same. My idea is that if you can pro...
Alice can retrieve asymmetric encrypted messages (let's call one of them C1 and the Message itself M) for her from an untrusted environment (let's call it Eve). She owns her private key K1 and has published her public key P1. Bob is just like Alice and uses Eve's platform. He owns his private key K2 and his published p...
Is there a way to take key material (for example 256 random bits for an AES key) and "expand" it over to a larger amount of data? Or can I go the opposite way and take a large amount of random data and Xor it down to 256 bits and use that (this looks like secret-sharing, but I do not know if anything changes because th...
I don't know how blockchain keypairs are programmatically generated, and equally important - how they are able to verify their keypair using a private key to a remote server - while keeping their private key entirely private. How are blockchain keypairs generated, and private keys kept hidden by the remote server that ...
In the Key encapsulation article of Wikipedia, the RSA-KEM is described shortly, as follows; Generate a random element $1<m<n$ then drive your symmetric key by $M=\text{KDF}(m)$ Then compute the ciphertext and transmit $c \equiv m^e \pmod{n}$ The reciever decrypts $m \equiv c^d \pmod{n}$ and apply $M=\text{KDF}(m)$ t...
Prove that for any symmetric-key encrytion scheme $\Pi=(Gen, Enc, Dec)$ with message space $M$ and key space $K$, there exist $m_0, m_1 \in M$ such that $\Delta(Enc(K, m_0), Enc(K, m_1))\ge 1-\frac{|K|}{|M|}$. I know that $\Delta(X,Y)=\max\limits_{T\subseteq S}(Pr(X\in T)-Pr(Y\in T))$, but I have no idea about the ine...
I had this article given to me by my teacher, and I would like to enhance it. It's titled Modified El Gamal Algorithm for Multiple Senders and Single Receiver Encryption. I planned on having the algorithm accommodate multiple senders and receivers. But I got really confused, and I would like to ask for some help in the...
In Trapdoors for Hard Lattices and New Cryptographic Constructions by Gentry et. al, they discuss SamplePre and in Trapdoors for Lattices: Simpler, Tighter, Faster, Smaller by Micciancio et.al, they discuss SampleD. But still, I cannot understand whether the functionality id same or different. Can you explain?
I generated a 2048-bit RSA key with ssh-keygen. When running: openssl rsa -in key -noout -text The result is: Private-Key: (2048 bit) modulus: 00:cb:df:46:64:71:ec:0e:f2:40:d2:65:da:6f:17: 80:70:ad:30:31:eb:c4:a1:ff:f5:ec:d3:c7:f1:b1: af:bc:e9:98:56:df:ee:d6:c3:d0:1c:1b:67:9a:a8: ac:46:32:22:f0:97:10:2...
This is more steganography, not cyptography, but I don't know where else to post this. Are you familiar with ELS (Equidistant Letter Sequence) codes that some have said are found in the Bible? I know the Bible codes are probably fake, but I am wondering if it is possible for humans to encode ELS codes in natural soundi...
I'm given a Plaintext/Ciphertext pair, a Ciphertext to break, and the IV. One thing of note is that the same IV is used for both DES Encryptions, so $$C = E_{K_2}(E_{K_1}(P, IV), IV)$$ I have limited resources, so brute-forcing a Meet-in-the-Middle attack of complexity $2^{56}$ is unfeasible. What other options do I ha...
RC4 uses two 8-bit indices. One, $j$, is key-dependent and secret, and the other, $i$, increments by one for each byte output. The $i$ index is typically considered to be public, but what if the RC4 keystream starts at an unknown position, putting $i$ anywhere in the range of $0$ to $255$ with equal probability? I can ...
The Pollard p-1 factorization method states if $\gcd(2^{B!}-1,n)=p$ where $p>1$ and $B$ bounds the prime factors of $p$, then $p$ is a prime factor of $n$. Shouldn't it be $\gcd(a^{B!}-1,n)$ for any arbitrary $a$? Why are we choosing $a=2$? Is it because it is computationally cheaper to compute powers of $2$? ( left ...
What is the difference between "asymmetric cryptography" and "asymmetric key cryptosystem" terminology?
As it known, Homomorphic encryption can be used for privacy-preserving outsourced storage and computation. In various constructions, the computations are represented as either Boolean or arithmetic circuits and can use garbled circuits. My problem is that I couldn't find explicit documentation on how to outsource the f...
I'm interested in some sort of "compendium" on lattice-based crypto. There are a bunch of maths behind FALCON and other stuff. A lot of articles are devoted to lattice crypto, but not of them are of paramount importance. The other problem is that there are papers that are obviously influential, but they are hard to und...
I've 8 bytes before encryption (for example: 01 02 03 04 05 06 07 08) and 8 bytes after DES encryption: 08 07 06 06 05 04 03 02 01. Is it possible to calculate the key?
Are there public key schemes that have perfect secrecy? The perfect secrecy notion is defined for symmetric key encryption. If P is a message and C the corresponding ciphertext then the cipher has perfect secrecy if pr(P|C)=pr(P). This equivalently means in terms of entropy that the conditional entropy H(P|C)=H(P). Ori...
I'm a Mathematics Major, and I currently enjoy the mathematical aspects of cryptography. I intend to pursue a career in cryptography research. https://www.csit.gov.sg/join-us/job-opportunities/job-detail/cryptologist However, although I'm comfortable with the mathematical aspects of it, I lack sufficient training in ...
I'm taking a course on cryptography and I have some confusions concerning the materials in our notes. Say we have the field $GF(2^8)$, we create a substitution algorithm (the S Box in AES) so we need a bijective function that maps from $GF(2^8)$ onto itself. The total number of one-to-one functions is 256! because $| ...
While doing the Kasiski examination I came to a problem. If there is the following group of letters in the cipher: AA and later on a group AAA is found. Does it count as two repeats or just one? And if one, then when does it start, with the first A or with the second?
Is there any reason to choose, say ECB over CBC? Or GCM over AEX? Or CTR over CFB? Is there a best AES mode of operation? And, when required, which is the best padding to use?
Is it possible to find what is the key with only plaintext and ciphertext? For example, My plaintext is: hi My ciphertext is: 0x1db5
I understand that WAGE cipher uses duplex/sponge mode with stream based cipher for Authenticated encryption with associated data (AEAD) and NORX uses duplex/sponge mode with LRX structure , so , Is it possible to design AEAD cipher using duplex/sponge mode with ARX structure (Chacha20)? what are the advantages/disadv...
So before I start I'm learning how this algorithm still works so my first question is for the x,y, and z steps (of getting the keystream I believe). The formula is t = y 20 XOR y 21 for y. There is one for x which I believe is the XOR of 13,16,17, and 18. Then z is the XOR of 7,20,21, and 22. Now my question is do thes...
Can anybody explain to me why AES in XTS mode is supposedly insecure for data stream encryption? I have been unable to find a clear explanation for this.
I know we should ideally never reuse the IV (Depending upon the mode of encryption used), but is it possible to have a protocol which uses the same IV for the message stream and is as safe as one which has a new IV every time?
Can BGV homomorphic encryption scheme support three multiplication level/depth with the help of key switching and modulus switching? If Yes, how does one set up the parameter to achieve that?
I'm using RSA (4096) and AES GCM (256) to exchange messages between A and B. A random key for AES is generated, the plain message is encrypted with AES, and the random AES key is encrypted with Bs public key. The encrypted message and key are sent to person B. Lets assume they use an insecure server, they didnt share a...
Must the prime finite field, Fp, an elliptic curve is defined over always have a greater number of elements than the cardinality of an elliptic curve. For example, If I have Elliptic Curve defined by y^2 = x^3 + x + 1 and I can calculate that the E.cardinality() = 14. Must the prime field I chose be >14? Would there ...
I am willing to write a Whitebox Crypto unit using ChaCha20 algorithm (Bernstein, D. 2008) for an input consisting of a single block. The fact it is going to be a single block cipher is of special importance here, as otherwise, the simple algorithm below wouldn't apply. The principle is quite simple and reuses some log...
Which of the parameters of a block cipher (e.g., algorithm name, mode of operation, IV (if any), key length) are essential to keep secret?
I understand that a completion flag parameter with Boolean value of 1 is used by Blake2 when it’s compressing the final block of the digested message. This ensures that one cannot load the state of a blake2 implementation with a blake2 digest and continue on (length extension attack). However I was just thinking, give...
I'm a little confused over how exactly Linear Feedback Shift Registers (LFSR) work, I kind of get it, but not really, can someone help me understand it? I know it XORs bits in a loop against some mask, how is the shuffling defined? A content scrambling system is a synchronous stream cipher made from 2 LFSRs of differen...
From Wikipedia: Check that $Q_a$ is not equal to the identity element $O$, and its coordinates are otherwise valid. Check that $Q_a$ lies on the curve. Check that $n*Q_a = O$ Verify that $r$ and $s$ are integers in $[\![1;n-1]\!]$. If not, the signature is invalid. What is the mathematical reason for these checks and...
Define $$\rho_{s,c}(x) = exp(-\pi \cdot \frac{\|x - c\|^2}{s^2})$$ and $$\rho_{s,c}(L) = \sum_{x \in L} \rho_{s,c}(x)$$ Then Discrete Gaussian over $L$ with center $c$ and standard deviation $s$ is the following distribution over lattice points: probability of $v \in L$ equals: $$ \mathbb{P}[v] = \frac{\rho_{s,c}(v)}...
AFAIK, HMAC solves the collision problem of hash algorithms by mixing in a pre shared secret. Can't we just use the pre shared secret to symmetrically encrypt data and leave out the hashing?
I have two devices, and each has a private key xPriv-i. Each device computes the corresponding EC public key xPub-i, shares it, and the linear combination of the keys is the "real" public key xPub. As a simplification, please assume this is all done securely and correctly. I use ECIES to encrypt an archival file: I ...
In the implementation of RSA-CRT, the exponent d is reduced mod p-1 ($d_p = d \bmod {(p-1)}$). The only proof I've found for that, is the following (considering $d = k\varphi(p) + d \bmod {\varphi(p)}$: $$c^d = c^{k\varphi(n) + d \bmod {\varphi(p)}}$$ $$(c^{\varphi(p)})^k * c^{d\bmod {\varphi(p)}} \equiv (1)^k * c^{d\b...
I've been studying this article and since I'm not studying cryptography in English and it is not my native language, I don't understand some of the terminology. More precisely: what are diffusion matrices as mentioned on page 3 right at the beginning of chapter 2? Do they have something to do with diffusion defined in ...
I am wondering what is the exact post-quantum security of a PRF. I know that for most symmetric mechanisms, it is assumed it is sufficient to double the key size, but I am looking for a more precise analysis in the case of Pseudo-Random Functions (like $2^{(n/2)}$ operations with Grover algorithm for the preimage). To ...
I have a need to produce URLs to allow the downloading of a single file, without authentication. These links will be sent through email, and I understand and accept the risk of a given link being shared by its recipient (or intercepted in transit). Each file is identified by a UUID, generated in SQL Server using NEWID...
I am reading Pragmatic MPC (link) about the BGW protocol. I also cross-reference here (click on lecture link for slides) *The BGW Construction for the Information Theoretic Setting – Benny Pinkas I do not understand why the multiplication gate calculation can work. First, let's say of $N$ parties, party $P_i$ has share...
If I have an encrypted value $Enc(x)$ with Paillier cryptosystem, is it feasible to compute an encryption form of $\ln(x)$ or its approximation using homomorphic properties? The input $x$ is always positive. The $\ln$ function satisfies $\ln(1)=0$ and the derivative of $\ln$ function is $1/x$. Or if I want to compute i...
I'm trying to wrap my head around how different padding methods affect the strength of CBC-MAC's. Suppose a message is split into different blocks, m1, m2, m3 etc. and the last block is padded with 0's to fill it if needed. If the message is intercepted, why can an attacker easily create another message with the same M...
I have become quite familiar with Bulletproofs the last few months. Bulletproofs is the name given to a zero-knowledge proof system for arithmetic circuits, by Benedikt Bünz et al. It is a specific protocol with specific properties. When Bulletproofs are discussed, they are often contrasted with zk-SNARKs and zk-STARKs...
Is a hash function created by using CBC-MAC with one public key that does not change secure against preimage attacks? If not, how could you exploit this to find a single block message that hashes to a given digest?
EDIT: I've migrated the question by deleting the same question I asked on mathematics stackexchange. 2 questions: (1) I am confused about the definition of support used in the proof given in the textbook Computational Complexity: A Modern Approach lemma 9.2 by Arora and Barak (2) The usage of the assumption that $\bold...
I'm trying to understand how the maximum Index of Coincidence (IC) is found. This is the only description I have for it: "For a given period $P$ you can divide a cipher into $P$ groups, calculate the IC for each group, then take the average of these $P$ values. Doing this for all periods from 1 to 15 and selecting the ...
IBM just announced "a new 53-qubit quantum computer". How does it compare to classical computers, performance-wise, for cryptanalytic tasks? E.g. finding a 48- or 64-bit value whose SHA-256 has a certain value (edit: or factoring the product of two distinct primes, or computing some discrete logarithm).
The word "rotate" in respect to "key-rotation" has connotations of looping/repeating variable values like a rotor, but as far as I can tell there isn't a single definition available for "key-rotation" that involves re-using a key that was previously replaced. So why don't we call it key-replacement or something else l...
I'm doing linear attack for 8 rounds DES. And I just wondering about the difference between Matsui's notation and Biham's notation. In Matsui's paper, numbers bits from 0 to 63 from right to left. In contrast, Biham numbers bits from 1 to 64 form left to right (Because of this, P-permutation, S-box, E-permutation, IP, ...
While there are plenty of PAKE protocols, especially those augmented ones which are practical in C/S model, actually they seem to be not widely used. Even TLS-Standardized SRP, the most popular one among them, I just know it's used in apple's iCloud. In addition, J-PAKE was used in Mozilla's synchronization but aborted...
it might be a silly question but i need help please given RSA system , where $n=pq , p\ and \ q \ are \ primes $ , $ v_0,v_1,v_2, v_3 \ are \ known $ $p^p \equiv v_0 \mod q$ $q^q \equiv v_1 \mod p$ $q^p + p^q \equiv v_2 \mod pq$ $(p+q)^{p+q} \equiv v_3 \mod pq$ Mathmatical facts: $p^{q-1} \equiv 1 \mod q$ is obta...
I am looking into building a merkle tree algorithm and I need to know if SHA256 is resistant to second preimage attack.
I was configuring a VPN on a firewall (fortigate) and realized that I could use AES-GCM for encryption in the IKEv1 phase 2 but not in the phase 1 and I was wondering why knowing that in IKEv2 we could use it in both phases. I have already checked the RFC articles but there was no explanation. Is it only because AES-GC...
When we apply the differential privacy on medical data to protect the personal data of the patients, how the doctors can access the original data to analyze them and to intervene in real-time. In other words, the added noise to disturb the data, can be eliminated?
Question: How is it possible to adapt a ZKP for a homomorphic ciphertext to still be valid after said ciphertext has been re-randomized? Context: In a lot of e-voting systems homomorphic encryption is used to tally the individual votes preserving the privacy of the individual voters as only the total tally is revealed....
Is the CECPQ2 key exchange, as deployed by Google[1] and Cloudflare[2] in TLS 1.3 forward secure against quantum computers? I know that it is using HRSS+SKY as the post-quantum part of the key exchange, but the papers I could find that were describing it do not speak of forward secrecy (either as a present or an absent...
According to me, every OT takes a constant number of rounds and since we have to do an OT for every input of one party, we'll have to do O(n) OTs which would correspond to O(n) rounds. But I have read at various places that the number of rounds in Yao's Protocol is constant. Am I missing something?
I have 4 functions to analyze. I need to determine if they are or are not pseudorandom and give a proof/counterexample. I'm having trouble just determining if they are - let alone proving or giving counterexamples. For reference, I'm using Katz and Lindell: (a) $F^1_k(x) = F_k(x) \mathbin\| 0$ I think this is pseudoran...
In probabilistic encryption schemes, different notions of security exists. I'm interested in the relationship between two notions. One is the indistinguishability-from-random notion of security and the other is the right-or-left notion of security. In crypto literature, it's often asserted that the former is stronge...
I have a set of data that I want to sync, and instead of sending an entire set of data, I wanted to use a hash. It is basically a list of GUIDs with either "true" or "false". eaa54efe-2b10-4d3b-b9c2-30d2bcca7e06 : true 94297d72-573a-4e6c-a45e-37a390750b64 : false 36d1acbd-b2dc-4a90-a7be-fb65b63639a5 : true I plan to g...
So while I knew hill ciphers were a form of block cipher (I'm assuming all the ones I have solved to date were ECB or something similar), so that got me thinking. Is it possible to use hill ciphers in other modes (ctr, ecb, cbc etc) on a binary alphabet? A) Could you provide formula/examples of how it would work? B) ...
I am reading an intro book about cryptography and the author tries to explain why using pseudo random number generators is vulnerable. Given PRNG equation; \begin{align} S_0 &= \text{seed}\\ S_{i+1} &\equiv A\cdot S_i + B \mod m, i = 0,1,\ldots \end{align} where we choose $m$ to be 100 bits long and $S_i,A,B \in \{0,1,...
If an attacker had a padded message and its corresponding CBC-MAC tag, how would they construct another message which produces the same tag for the same key as the original? The padding scheme used in this scenario is to add 0's to the end of the message until is it a full block. What about when the attacker has an no...
So XCBC was made to counteract lengths attacks against CBC-MAC, but how exactly does the modification made defeat this attack? All I can find are a few papers on why 2-key XCBC isn't actually secure.
I hear of randomized reduction, deterministic reduction and non-deterministic reduction of complexity from A to B problems. This could make things impossible for polynomial time adversary prying into NP - hard problems. Are these biases in complexity what makes the computation infeasible if a problem cannot be solved ...
I've got a cipher I've been challenged to crack by hand. It's a monoalphabetic substitution cipher, and the English spacing is intact, so all of the words are the right size. Is there a more efficient way to crack this cipher than frequency analysis?
I am using gpg to make encrypt a tar.gz. My first try uses --verbose --symmetric and then the decryption is done with --verbose --decrypt. The --verbose shows that encryption was done with CAST5 and then the decryption uses CAST5. I check all the file contents as a sanity check My second try uses --verbose --cipher...
I have a system comprising N >1000 nodes. At each node I would like to use HKDF to derive a unique 256-bit key, Kn (for the nth node), from a pre-shared master key, K0, and a locally-generated random bit string, Rn. Kn would then be used to apply AES-GCM to UDP packets that the nth node sends to other nodes and the...
So I've run into this challenge where I was given the guess $g$, and the power $p$ of Shor's algorithm. All I have to do now is $g^{p/2} - 1$ and then GCD the result with n. But the problem is computing $g^{p/2}$ takes a RIDICULOUS amount of time, even with the exponentiation by squaring method. Is there any possibilit...
I'm trying to determine if $F_{k_1, k_2}(x) = F_{k_1}(x) \oplus F_{k_2}(x)$ ($k_1 \neq k_2$ because that would be lame) is a pseudorandom function. My hunch is that it is. My reduction proof proceeds like this (but I get stuck halfway through) Suppose $F$ is not secure. Then there is a PPT distinguisher D' s.t. for all...
I am working on one interesting question. There is a ciphertext that has 10,000 letters. We need to distingish whether this ciphertext was encrypted by a transposition cipher or a simple subsitution cipher. I understand a transposition cipher will keep the identity of each letter and a substitution cipher will change t...
I understand how fractionation is used in the straddling keyboard, which is an important feature of the VIC Cipher, and in the Polybius Square of the ADFGVX cipher, but I am not sure how to describe its cryptographic function and benefit. It helps spread the redundancies of the plaintext over the ciphertext, and that i...
Was reviewing some Bitcoin public-key hash literature and the use of RIPEMD-160 and the SHA-256 as below: RIPEMD160(SHA256(ECDSA_publicKey)) The Proof-of-work on the other hand uses SHA256 two times (instead of RIPEMD-160). There is some notes on why RIPEMD160 was chosen (here). Considering the 256-bit output space o...
I was reading the book Efficient Secure Two-Party Protocols by Y. Lindell and C. Hazay. Page 92 of the book says This check is crucial and thus the order of first running the oblivious transfer and then sending the circuits and commitments is not at all arbitrary I don't understand what difference would it make in th...
I'm trying to calculate $d$. I have the following parameters given: $p = 239$ $q = 181$ $n = p \times q = 43259$ $\phi(n) = (p - 1) \times (q - 1) = 42840$ $e = 11$ For calculating $d$ I use the Euclidean Algorithm: $a = qb + r$ $42840 = 3894 \times 11 + 6$ $11 = 1 \times 6 + 5$ $6 = 1 \times 5 + 1$ $5 = 5 \times 1 + 0...
When the sigma functions are defined in equations (4.4) and (4.5) in FIPS PUB 180-4, the defined functions show the traditional sigma summation symbol, with limits 0 to {256} and 1 to {256}. The definitions, however, are in terms of circular right shift and XOR operations. Why is a summation symbol used here?
The Domingo-Ferrer cryptosystem is a fully homomorphic cryptosystem. It works fast enough. I have only seen known-plaintext attacks. Is this a reason not to use it in practice? Or are there more significant shortcomings due to which it is not recommended to be used?
For any vector $\mathbf{c}$, real $s > 0$, and lattice $\Lambda$, define the probability distribution $D_{\Lambda, s,\mathbf{c}}$ over $\Lambda$ by $$D_{\Lambda, s,\mathbf{c}}(\mathbf{x})=\frac{D_{s,\mathbf{c}}(\mathbf{x})}{D_{s,\mathbf{c}}(\Lambda)}=\frac{\rho_{s, \mathbf{c}}(\mathbf{x})}{\rho_{s, \mathbf{c}}(\Lamb...
I have read about AES and different modes of operation (CBC, ECB etc) and have 2 questions related to disk encryption: -AES data block is 16 bytes - how does it relate to sector sizes on the drive which is typically 512 bytes? Also who or what is responsible for dividing disk sectors into data blocks? -disk encryption ...
So I've been reading about cryptography and one-time pads, which seem to provide theoretically perfect secrecy. My question is does any form of technology today allow data to be stored in a practical way such that information is destroyed upon reading it? I think that magnetic core memory works in a similar way: To r...
Most block ciphers encrypt a plaintext deterministically into a ciphertext which allows decryption in the opposite direction. Now, instead of encrypting just one plaintext, I'm looking for a cyclic 'chain-function' which starts at a random value and always allows computation of the previous and next element. In additio...
I enjoy making notes and passing them to my friends, and I also like making them encrypted for no reason. My friends enjoy it too, but it's a bit annoying to use the Caesar cipher for everything because its repetitive and takes forever. Is there a better pen-and-paper way of encrypting messages?
Please help with this question.
Q: Does a digital signature algorithm exist which has a normal, a blind, an elliptic curve and an elliptic curve blind version? I am searching for an algorithm where you can see what happens if you try to transfer it into a blinded or EC version. There are some algorithms, which have two versions e.g. DSA and ECDSA but...
In ElGamal encryption, it says that the message M that is about to get encrypted must be mapped to its m counterpart in the group G using a reversible mapping function. Map the message M to an element m of G using a reversible mapping function Can someone help me understand (and point to some explanatory source) exac...
Is the message divided into chunks, each chunk hashed separately, or something else?
I am trying to learn about password encryption by creating a simple password hashing algorithm, although many online articles did warn "Do not create your own algorithm". I discovered that most of the encryption outputs are represented in bits instead of characters. Initially, I misunderstood this, how bits should be ...
I've been challenged to crack a code. All I know about it is that is was hand-enciphered, and that it is a transposition cipher of some kind. When I was given it, I started plugging it into my permutation decryption engine. As you can guess, when I realised that the ciphertext was 26 letters long, meaning permutations ...
Only for hobby I made some ciphers, it is not my intention to use them in the real world but I am trying to compare them with existing ciphers. An important function of my ciphers is a key stretching function with the following properties: Kn = increase(Kn-1) where Kn is totaly different from Kn-1 and the length of Kn ...
have few more questions about disk encryption with AES cipher: Do we consider all zeros (0000000) as empty block of data or is it still a data? Do we really need padding to the data blocks if a disk sector is multiplication of data block? Also if one data block is empty (all 000000) why we just dont apply encryption o...
Forward secrecy with RSA is asked here: Is perfect-forward secrecy achieved with RSA? and fgrieu gave an answer based on creating temporary RSA keys and signing them. And, in the end, he mentions The scheme is inefficient because the generation of a new RSA key pair is relatively expensive (and normally rare, thus n...
I have a question about cryptanalysis. A transmit message to B with radio waves, A use modulator to transmit bytes with radio, B obviously use demodulator. A encrypts and B decrypts the messages received from A, a certain point an attacker is able to always get the key used by the two even though they always change it,...
Update: with the help of @SqueamishOssifrage and @PaulUzdak, we discovered that my NIST SP 800-22 has a broken universal test. So this becomes a moot question. Check this report. It seems to sail through all tests, but all p-values of the universal test fall in the first 10-percentile. I've set the generator's seed...
I present a modified version of AES-ECB. Suppose I want to encrypt the string hello, world. this is a test. For each block, I use the first eight bytes as my actual message, while the second eight bytes are random. For the last block, I'll pad my first eight bytes deterministically. So my four blocks are (I'll use * to...
I'm given a very simple 8 bit block cipher in which to encrypt plaintext x with k k one performs $ x \oplus k $. I am given IV = 0101 and a CTR of value CCCCCCCC (36bits). My understanding is that counter mode relies on the output block size of my cipher to yield a stream key of b (in this case 8) bits which will then...
I'm trying to better understand the "cost" of randomness usage/generation in practice. I understand that generally, some (small) amount of "true" randomness is generated, and then a CSPRNG is applied to expand this out to a larger amount of pseudo-randomness. I'm curious as to precisely how these "small" and "large" am...
Suppose Bob managed to obtain 220 different digests that were generated by a hash function employed by a target system. The hash function outputs 8-byte digest of a message. Bob now wants to find a message that hashes into 1 (one) of the obtained digests. How many different messages should Bob approximately hash until ...