instruction
stringlengths
32
27.2k
I apologize if this is in the wrong section. I am completely new to Cryptography. I was presented with the following problem and I am trying to find something that will explain to me how to proceed. Demonstrate the Diffie-Hellman key exchange using an elliptic curve y^2 = x^3 + ax + 9 mod p, where p = 223. Use XA = 8, ...
This is from Dan Boneh's book 4.5 Constructing block ciphers from PRFs Let F be a PRF, defined over $(K, X, X)$, where $X = \{0, 1\}^n$. We describe a block cipher $\varepsilon = (E, D)$ whose key space is $K^3$, and whose data block space is $X^2$. Given a key $(k1, k2, k3) \in K^3$ and a data block $(u, v) \in X^2$, ...
In general, $O(1/\epsilon^2)$ queries are required to distinguish between two distributions that are statistically close at most $\epsilon$. This informal state deals with the required number of queries to distinguish between two distributions. However, I cannot find any statement that when we have $Q$ queries, then we...
Currently there are only 4 direct candidates left that provide KEM. Generally performance seems to be "OK" for those candidates. However, the key and encapsulated key sizes (i.e. the output size of the algorithm) may require some interesting tweaks in the protocols. I could not directly find these sizes on the Internet...
Say one is doing some cryptography around the set of congruence classes, namely: $$\mathbb{Z}/n\mathbb{Z} = \mathbb{Z}_n = \{[0]_n, [1]_m, \dots, [n-1]_n\}.$$ Sometimes we use to write $a \leftarrow_R \mathbb{Z}_n$ to denote that we are sampling an element from $\mathbb{Z}_n$. But, what exactly means to perform such a ...
I would like to know whether these two problems are equivalent or not, namely: $SIS_\alpha$: Given $A \in \mathbb{Z}_q^{n\times m}$ find $ e \in \mathbb{Z}_q^{m}$ such that $ Ae = 0$ and and $\|e\| \le \alpha$. $ISIS_\alpha$: Given $A \in \mathbb{Z}_q^{n\times m}, y \in \mathbb{Z}_q^{n}$ find $ e \in \mathbb{Z}_q^{m}...
I see that in many applications stream ciphers are common than block cipher - whether is Salsa20, AES-GCM, etc. In which cases would a stream cipher be preferred over a block cipher and vice versa? Also, why will we prefer to use a block cipher at all if we can use a stream cipher - which is faster, errors are not cumu...
I've observed that when you view only the LSB of an image it is typically random looking, but often has areas that correlate with the over all structure of the image. It's common for there to be large sections of the image that are solid 1s or 0s. There are often blocky patterns. Complete randomness of the LSB would th...
When we consider the security of a cryptographic hash function with $n$ bit output, we simply say that it must have at least $\mathcal{O}(2^{n/2})$-time security against the (generic) collision attack due to the birthday attack / paradox. When we talk about the attacks from an educative perspective, one needs to demons...
I created my random numbers and I saved them into a txt file. My input file includes just 0 and 1. Here is the link of my file And I of course read some answer before asking that question but I could not understand how can I create an input file for diehard. Do diehard have some prepared comment for converting our inpu...
In many cryptographic protocols design like this one, I have seen the statement 'Choose a Hash function for example: \begin{align} h&: \{0,1\}^*\times\mathbb G\to\mathbb Z_q^*\\ h_2&: \{0,1\}^*\times\{0,1\}^*\times\mathbb G\to\mathbb Z_q^*\\ \end{align} in which it takes as input a binary string and a random element ...
I want to make it as hard as possible to brute force data I hash. How can I make hashing take X seconds?
I was not able to mathematically prove that all permutation and substitution ciphers satisfy H(X)=H(Y) if we say that Y is the set of ciphertexts while X is the corresponding set of plaintexts in Shanon Entropy? More generally, how is it possible to mathematically prove that Shannon entropy does not change when applyin...
We know that for the last step of QRNG: we need to separate quantum and classical noises from each other so we use extractors, after extractor we need privacy amplification step. At this point: if extractor is a strong extractor we can use it as a privacy amplification too. However I could not understand differences be...
What exactly is the difference between Zero Knowledge Proof & Challenge Response Authentication? I searched online and the best I could find are these: techtarget.com Zero-knowledge password proof systems depend on cryptographic methods that enable both parties -- client and server -- to authenticate to each other. ...
I understand on a conceptual level that a certificate is nothing more than just a verified public key. The next question I have, is how exactly do I see the contents of a certificate? Apart from the public key it verifies are there other information that the certificate contains? Does the certificate also contains the ...
For a DH parameter prime, if the generator $g$ is 2, how do I get the order $q$?
I want to know if there is any mathematical or brute force approach to decipher simple black box A: Is only one digit (0...9) B: Is 2 digits (00..99) C: Is a result of a linear function between A & B, for example it could be C=A2+8-10B or C=A*A-B ... we have this table: How can we find C ? What if there is non-liner f...
In the AES encryption process, there are various sub-operations, like SubByte, MixColumns, ARK etc. My question is which of these operations is more expensive? In a video lecture by Dan Boneh, it is mentioned that the lookup table implementation of AES is faster than the implementation where the MixColumns function is...
Let we have a finite (small compared to 2256) set $T$ of 257-bit numbers. Need a function $f: T \to 2^{256}$ such that it's almost of zero probability that $f(n)=f(m)$ for two different numbers $n,m\in T$. Computation of $f^{-1}$ must be constant (at worst logarithmic) on the size of $T$. Computation of $f$ must also b...
The idea of the Bellare-Micali Oblivious Transfer Constructions is the following: Informally, the receiver is required to generate two public keys $y_b$, $y_{b-1}$ such that it knows only the secret key paired with $y_b$ (where $b$ is its choice bit), indicated with $k$. In order to prevent the receiver from cheating,...
I was wondering how is it possible to mathematically prove that Shannon entropy does not change when applying any bijective function to X? For instance H(X) = H(f(X)) assuming that f is invertible and X takes only finitely many possible values. In addition, I saw that this holds for block ciphers also but I could not f...
I thought of a way to produce trustless card game in a flexible way. One feature that I want is it should be flexible (It should work for any type of card game, though I indeed started it as a solution for mental poker) and scalable (the number of players should not be limited by anything other than the rules of the pa...
I used to saw a lot of encryption papers that have small significance in security improvements especially in terms of entropy, histogram and coefficient correlation especially in image encryption. Why is this happening?i mean why still publish a proposed method that have 0.001 or so on improvement in terms of entropy o...
Let's consider 128-bit cipher. Now let's consider example keys $k_1$ to $k_{128}$: $k_1$: 10 $k_2$: 1100 $k_3$: 11110000 ... In general every key $k_n$ can be some binary number which is consist of $n$ zeros and $n$ ones. This keys are mapping some encryption scheme. If $k_1$ is 10 it means that all least significant b...
I will write this question using a database example, but please note this detail may be irrelevant. Let's say I have data belonging to N clients stored in a single column of a database table. Each client has their own AES key used to encrypt/decrypt their own data. In this setting, I have the understanding that if some...
With reference to this question: First, when using padding (PKCS or OAEP), if the ciphertext has errors in transmission we'll always get an error at the decryption process? where the answer is: Yes, with extremely high probability. This is basically a chosen-ciphertext attack and RSA-OAEP is fully immune to them, so...
I stumbled upon a paper that proposes local DP around this argument: A user $u_i$ generates a sequence $s_{i}$ of observations at certain timestamps: $$ s = ((t_1, x_1), (t_2, x_2), \dots, (t_n, x_n)) $$ The authors apply $(\varepsilon/n, 0)$-DP to each sequence by adding Laplacian noise As widely known, Laplacian m...
I have some ciphertext that I have determined using frequency analysis to be most likely encrypted using a transposition cipher, as the letter frequencies are similar to plain English language text. I believe the next step should be to determine which transposition cipher it is, but I don't know how to do that. Am I ri...
I've attempted to find a solution to this problem, but for the life of me I am unable to. I am attempting to solve whether a point an elliptic curve of prime order is between 2 points, given a specific generator point, similar to the question posted here: Proving that two points on elliptic curve are within range I wou...
Mapping a bit string $L$ to elliptical curve point in say prime field $\mathbb Z_p$. A simple way would be to use an integer mapping function that maps $L$ to a number $\{1, q\}$ where $q$ is the order of the group and then return $q[B]$, where $B$ is a base point. But it would be unacceptable for the purpose I want. H...
I have a question regarding the security definition of deterministic authenticated encryption (DAE) as defined by Bellare and Shrimpton. Their definition is reproduced below, and my question pertains to the emphasized part. Definition 1 Let $\Pi = (\mathcal K, \mathcal E, \mathcal D)$ be a DAE scheme with header space...
I want to backup my data according to the 3-2-1 rule. I am already back up to 2 different drives (2 different systems) at home. In addition, I would like to use cloud storage (Google, Amazon, etc.). Considering the future weakening of cryptography by advancements in computing power (e.g. key guessing by quantum computi...
I know that IKEv1 Aggressive mode is not secure as ID payload is sent out in plain text. Even though it is insecure, it still exists! Can someone tell why exactly do we need Aggressive mode? What is it that Main mode cannot do and Aggressive mode can (other than speed) From what I know Aggressive mode is to be used for...
Why did we call it digital signature if an attacker can pretend to be Bob? Bob hashes his message, encrypts the hash with Alice's public key, and sends it to Alice with the original message. Alice receives that message and the signature. She decrypts the signature with her private key, and compares the outcome with the...
I want to backup my data according to the 3-2-1 rule. I already backup to 2 different drives (2 different systems) at home. In addition i would like to use cloud storage (Google, Amazon etc.). Considering the future weakening of cryptography by advancements in computing power (e.g. key guessing by quantum computing) i...
In NIST FIPS 202 on the table, It is written as Function Output Size Collision PreImage 2nd Preimage SHA-1 160 < 80 160 160–L(M) SHA-224 224 112 224 min(224, 256–L(M)) SHA-512/224 224 112 224 224 SHA-256 256 128 256 256–L(M) SHA-512/256 256 128 256 256 SHA-384 384 192 384 384 SHA-512 512 256 512 512...
In the secure remote password protocol version 6a, the identifier for the user, I, is hashed along with the salt and the password on the client. While I understand the identifier is used to locate the verifier on the server, what is the purpose of including the identifier in the client side hash? Does it serve a crypto...
We know that: trevisan's extractor based on min entropy of the relative system. For trevisan extractor, we need source, seed, min entropy value per bit and error rate for per bit I have the code for trevisan's extractor and if entropy is small, extractor is working very slow, if entropy is big extractor is working quit...
While trying to understand the use or meaning of the fullchain.pem file created by let's encrypt I stumbled upon this post in which fullchain.pem is explained as: fullchain.pem is a concatenation of cert.pem and chain.pem in one file. In most servers you’ll specify this file as the certificate, so the entire chain wil...
To my understanding, the only factor that (even if ever so slightly on most implementations) affects the run time of SHA-256 is the amount of padded chunks the extension & compression function have to run over. The only way to alter the amount of padded chunks is to change the length of the input. Therefore, the only f...
I am reading this article in my attempt to understand how the TLS verification and chain of trust works. In the piece I come across a section that I am not sure I understand. In the simplified description of how the browser validates a certificate you have this: The client, which is a browser for ease of explanation h...
I'm not a cryptologist, just an interested engineer (& now retired). I used to design hardware with AES en/decryption blocks & generate test vectors using my own Tcl script using the embedded AES function. However, I was wondering if modifying AES to use more than 1 SBox (& inverse), it would be "more secure", or is th...
I'm doing the Coursera cryptography I course from Dan Boneh. I am attempting to do week 2's programming assignment, but I think I am having some sort of misunderstanding of either the theory, the actual implementation, or both. I am neither a crypto or python expert so I'm sure I'm messing up both. Essentially, I am tr...
I've seen some papers drawing a connection between IND-CPA and passive attacks and IND-CCA and active attacks. Can someone explain how IND-CPA relates to passive attacks and IND-CCA relates to active attacks if this is indeed the case? The most recent example of such a paper that I can recall is this: https://eprint.ia...
Let's consider generator: $x_{n+1} = (a \cdot x_{n} + c) \mod m$ And let's assume we will meet three requirements known as Hull–Dobell Theorem. Also consider only $m=2^{i}$ (then $c$ has to be odd). Now let's consider $a$, $c$ and $x_{0}$ are 256-bit keys ($c \neq 0$). Could this generate secure pseudorandom numbers? W...
Is it more accurate to state that a public key encryption scheme is correct if for all $m \in M$ and $(pk, sk) \in \operatorname{Gen}(1^k)$ a. $\operatorname{Dec}_{sk}(\operatorname{Enc}_{pk}(m))=m\;$ or, b. $\Pr[\operatorname{Dec}_{sk}(\operatorname{Enc}_{pk}(m))=m] = 1 - \operatorname{negl}(k)\;$ or, c. does it depen...
In a mental poker game I am designing as an learning exercise, (One used in example is a 3 card flash with no desk cards) suppose I have a set of cards and other person also has a set of cards. each card is mapped to a prime order (EC)DH group element. We both know other persons cards raised to some power. That is if m...
According to this paper, there is a Baby-Step Giant-Step attack for RSA encryption. Consider the following Baby Step, Giant Step attack on RSA, with public modulus $n$. Eve knows a plaintext $m$ and $a$ ciphertext $c$. She chooses $N^2 ≥ n$ and makes two lists: The first list is $c^j$ (mod n) for 0 ≤ j < N. The second ...
We can define deterministic and probabilistic encryption; Deterministic $c = E(k,m)$, and Examples are textbook RSA, block ciphers in ECB mode. Deterministic encryption fails to achieve CPA security. Deterministic encryption is insecure and we don't want to use/advise to use ( there are bad exceptions for this like S...
I am trying to compare the CPU cycle required for two encryption algorithms. One algorithm is AES and lets the other algorithm is B(code name). I implemented algorithm B and having fewer and simpler operations than AES and expected to take much less time/CPU cycles per encryption than AES I am using an Intel i3, 10 gen...
I have a paper on post quantum cryptography about Key-establishment Algorithms, that I wish to submit it to the National Institute of Standards and Technology (NIST) I found on their website that the last deadline was on November 30, 2017. Is there any new Deadline?
I am trying to use NIST Statistical Test When I have 1 line number which is includes 7467 character,(all of the are either 1 or 0) the test is working I am following these steps: ./assess 7467, then press 0 and write my file name, then press 1, then press 0 to continue, then for how many bit streams, I am pressing "1" ...
I am looking at at the $1–2 \space \text{oblivious transfer}$ that is described here: https://en.wikipedia.org/wiki/Oblivious_transfer#:~:text=In%20cryptography%2C%20an%20oblivious%20transfer,Rabin. I want to show that a malicious sender (Alice) can attack this protocol if it can deviate from it, namely, send a wrong R...
Hello everyone and happy new year in advance. I'm doing a work about the analysis of the AES algorithm, and I have some doubts about this. First, I need to do the mathematical analysis of the algorithm: Determine the computational complexity, worst-case, average-case and best-case As AES performs n numbers of rounds (1...
I am reading the bitcoin white paper, and I came across the concept of timestamp servers in it. Unfortunately the description of the usage of a timestamp server leaves me with more questions. And unfortunately googling has not helped much. The paper has this: The solution we propose begins with a timestamp server. A t...
In this document, it shows the EM will have one zero octet padding prefixed. +----------+---------+-------+ DB = | lHash | PS | M | +----------+---------+-------+ | +----------+ V |...
Let's say there are 2 ciphers, $enc$ and $dec$, where: $enc$ will encrypt the data, and $dec$ will decrypt it. Both $enc$ and $dec$ must be an AES cipher. $enc$ and $dec$ will use the same key $k$ and same nonce $n$. The mode of $enc$ should not be equal to mode of $dec$. They should not be AEAD ciphers (eg. their mod...
I am a freshman who want to research elliptic curve cryptography. There are a few questions I have: Firstly, I am not sure about how I should narrow down the topic. Where should I focus on? Can I examine a specific application of elliptic curve cryptography? Or should I basically compare Elliptic Curve Cryptography and...
I overheard in a lecture on cryptographic obfuscation that the learnable functions are obfuscable. But to me this seems so counter-intuitive. Let's take a linear function (as an example of learnable function), then say I am given any obfuscated version of the function, I can always find the original function by queryin...
For educational purposes, I'm trying to build a cascading encryption implementation with AES, Twofish, Blowfish, Salsa20, and ChaCha20. First of all, please don't judge my paranoia or choices, this is just for learning. I don't remember exactly where, but I think that A(B(C(plaintext))), where A, B, and C are ciphers, ...
This is from Joan Daemen's Doctoral thesis Per page 64 (or PDF page 79) 4.7.1 Our approach Our goal is the design of simple and portable unkeyed and keyed cryptographic hash functions that are hermetic.The basic principle of our approach is derived from the compression function of an early version of MD4. The operati...
It is mentionned here that this message–signature tuple {PIDi, mi, Ti, σi} has this size: 40 + 20 × 3 + 8 = 104 bytes. Can someone explain to me how this was calculated?
For a cryptographic primitive, we usually see the security level measured in bits, where n-bit security means that the attacker would have to perform $2^n$ operations to break it. For key-derivation functions, we often see functions that deliberately use large amounts of computation or memory in order to make them comp...
I don't know where to ask this question, I hope I am in the right place to ask about this. So, what exactly is the fundamental difference between image and text encryption techniques? link 1 link 2 link 3 I mean there are a lot of researchers (for example on the above links) that said AES, DES, RSA, etc. are not suitab...
Since Blowfish is old, well-audited, and has no published attacks, why are we using AES instead? I know that Bruce Schneier said that Blowfish is insecure and told people to transition to Twofish, but why? AES has many vulnerabilities, such as padding oracle attacks and power-consumption analysis, but Blowfish doesn't ...
Let's consider $5$ types of vulnerabilities in one round of encryption in 128-bit cipher. We got 00 at the beginning of the block (the first two bits are two zeros). We got 00 in the middle of the block. We got 00 at the end of the block. We got 00 randomly put in the block (it depends on the key). We got 00 shifted i...
Let $(P,V)$ be an efficient zero-knowledge interactive proof for some language $A \in NP$ that is $(T,\epsilon)-\text{sound}$ and $(T,\epsilon)-\text{ZK}$. I want to show that for every language $L$ that is reducible to $A$ there is also such an efficient zero-knowledge interactive proof $(P_2, V_2)$ which is also $(T,...
I found note about XSL-RR-RR on wikipedia: https://en.wikipedia.org/wiki/Permuted_congruential_generator But I don't understand what this means: count = (int)(x >> 122) low64 = rotr64((uint64_t)(x ^ (x >> 64)), count) high64 = rotr((uint64_t)(x >> 64), low64 & 63) return (uint128_t)high64 << 64 | low64 What is differ...
Is it possible to create a hash function that generates a correlated to SHA-256 when given the same input? In other words, given a fixed input X: SHA-256(X)=A SHA-256'(X)=B where he outputs A and B are similar, or correlated. I was thinking about remodeling a few parts of the SHA-256 function without changing the unde...
May it be possible that the trusted third party knows the parties' private keys in an “ideal model” of a Secure multiparty computation protocol? I wonder if it may be possible that a trusted third party knows the private keys (e.g. the encryption's private key or the digital signature's private key) in an "ideal model"...
So a protocol uses two random primes $P$ and $Q$ with the equivalent bit length of around 2048 bits, multiplies to form $N$. The encryption function in detail is: $m^e \bmod\ N$ $(\text{512-bit-random-key})^{65537}\bmod\ \text{4096-bit-modulus}$ Now there are a few attacks that can be performed if the message length is...
I realize that I need a study pathway for post-quantum cryptography. I started to study post-quantum crypto by reading NIST PQC 3rd-round submissions of the lattice-based schemes (let's start with the most popular ones). I understood Kyber and Saber so that I could implement them. However, I want to understand the desi...
Assume that there is a protocol $(A,B)$ such that receives no input and satisfies: $A$ - outputs two random bits $x_0, x_1 \in \{0,1\}$ $B$ - outputs a random bit $b \in \{0,1\}$ and also outputs $x_b$ Saying that $(A,B)$ is secure means that $A$ doesn't learn what is $b$, and $B$ doesn't learn what is $x_{\lnot b}$ No...
In DP-SGD proposed by M Abadi in 2016, noise is applied to the gradient, so every round of training needs to be applied. My questions are: Can I choose to apply noise that meets the DP requirements to the final model after the model training is completed? Will the total amount of noises applied by this operation be les...
First of all, I'm relatively new to encryption so please bear with me. I'm looking for a way to encrypt large amounts of data only on my device, no need to transfer my encrypted files/data (10-20GB or less), I don't really care about speed as long as the encryption is really strong. I have tried encryption with AES-GCM...
In RSA and other crypto based on prime factors. If I would know the sum of $p+q$, would it reveal any more information than just knowing $p\cdot q$? Edit: I do not know either $p$ or $q$. The question relates to the fact that if I know the sum and the multiplication, can I find the factors $p$ and $q$ faster compared t...
Is it generally considered desirable - or not? - to use an algorithm which encrypts a single byte into a byte array of length around 5 or 10? Greater length allows me to add additional layers of obfuscation, but I don't know whether this is considered the sign of a naive amateur (which I am).
I'd like to resuse the mnemonic I have from bip39 for crypto in other domains such as ssh and tls, etc. Are there standard tools (ie, openssl) to deterministically generate rsa key/pairs given a seed value? I know technically it is possible using PBKDF2 to create a PRNG etc, but I'm definitely not looking to roll my ...
I know this question might sound strange, but is it theoretically possible to create an unbreakable cipher if we don't consider bruteforce? Some of us believe that it is possible to create ciphers and hash algorithms that are unbreakable (like when people said that we'd never run into an MD5 collision in the lifetime o...
Let $E:\{0,1\}^n \times \{0,1\}^n \to \{0,1\}^n$ be a good PRP and consider blockcipher $\widetilde{E}$ defined as follows $$\widetilde{E}(K,X) = \begin{cases}K & \text{if } X=K \\ E(K,K ) & \text{if } X = E^{-1}(K,K)\\ E(K,X) & \text{otherwise}\end{cases}$$ Black used this to show that Matyas-Meyer-Oseas construction ...
I am currently trying to harden communication over a limited physical communication channel on an embedded system. The Scenario I think the system is rather typical for small embedded applications: The embedded systems involved are small microcontrollers without any OS, which can be assumed to be in a secure physical ...
How to determine the inverse multiplicative matrix of the following two irreducible polynomials GF(2^8) x^8 + x^5 + x^3 + x^2 + 1 and x^8 + x^5 + x^4 + x^3 + x^2 + x +1
And why do we have to use big numbers for RSA? Is it because of some RSA restrictions like p=q=3 mod 4?
I'm a programmer, i.e. agnostic to the mathemathics behind most of cryptographic scheme, but I'm trying to remediate. I'm writing this premise for any possible error or imprecision that I probably put in this question. However, I'm studying Elliptic Curve and I got to Elliptic Curves over Finite fields topic. For what ...
I'm trying to set up an ECDSA with Elliptic Curves over $\operatorname{GF}(2^m)$ with an example of toy with the following values: Using the Weierstrass equation on binary finite fields. $$E: y^2 + x*y - [x^3 + a x^2 + b]$$ Let $E$ be defined over the field $\operatorname{GF}(2^7)$ ($m = 7$) with the equation $$E: y^2...
Why following constraints on $||z||$ are required $||z||<=B, B<q$
I dont understand the use of the info parameter, what does "to fold in identity information" mean? What is the security benefit? All the algorithms also take an info parameter that can be used to influence the generation of keys (e.g., to fold in identity information) [...] https://www.ietf.org/archive/id/draft-irtf-...
Assume that there is a protocol $(A,B)$ such that receives no input and satisfies: $A$ - outputs two random bits $x_0, x_1 \in \{0,1\}$ $B$ - outputs a random bit $b \in \{0,1\}$ and also outputs $x_b$ $A$ is supposed to learn what is $b$, and $B$ isn't supposed to learn what is $x_{\lnot b}$ I want to formally define ...
As is known to all, the following picture depicts a sigma protocol, and to eliminate the interactivity, Prover can generate c by hashing (t, y) using Fiat Shamir transform. My question is: 1). Can c be obtained as hash(0x1234, 0x4321) by the Prover, (where 0x1234, 0x4321 are public parameters at setup)? 2). If above a...
In typical proof of work, there is a one-way hash-function that takes binary inputs and generates an output $h(x,y)$ where $x,y\in\{0,1\}^M$ are binary inputs, so that finding $x$ for a certain $y$ such that $h(x,y)=0$ becomes a complex problem. Is it possible to design $h(x,y)$, such that it is insensitive to parts of...
I heard that Xchacha20 works like a block cipher so that even if it wants to encrypt one byte, it will do the work of at least one block. So technically it works similar to a block cipher in counter mode. I want to find out the size of this block, which represents the minimum work that Xchacha20 can do. How to find ou...
I've come across this paper in which the authors mentioned that they don't use a revocation certification list (CRL) since it gives rise to significant costs due to storage and inefficient communication. But then in section 4-F (VEHICLE REVOCATION PHASE), they used a temporary list containing the pseudonyms of revoked ...
I've recently stumbled upon an interesting Quanta Magazine article. It states that indistinguishability obfuscation (iO) 's theoretical feasibility has been proven, referencing a relatively recent paper by Jain, Lin, and Sahai. However, the Wikipedia article for iO states that the work presented in this article relies ...
I found this term in Scrypt's paper. I have several questions about its meaning, ranging from how to parse it, to theoretical bounds: Q1: How to parse it? Is it read (sequential memory)-hard? Or sequential (memory-hard)? Q2: What does it mean? Does it mean that as space is linearly reduced, then penalty is that is ...
I'm trying to understand the nature of true randomness. I'm building an RNG using a radioactive source. Basically, I'm measuring the time between consecutive decays which in theory should be unpredictable. The distribution of these time measurements shows a Gaussian-like distribution as I predicted. Now my understandin...
The Scrypt paper here defines memory-hard and sequential memory hard functions as follows: Definition 1. A memory-hard algorithm on a Random Access Machine is an algorithm which uses $S(n)$ space and $T(n)$ operations, where $S(n) \in \Omega (T(n)^{1-\epsilon})$ Definition 2. A sequential memory-hard function is a f...
If you have a message M and you want the sender (alice) to be anonymous to everyone but the recipient (bob), is it ok to do? crypto_box_seal(crypto_sign(M, alice), bob) (Alice signs message, then box seals to bob.) This answer suggests crypto_box_seal then crypto_sign, am wondering if the opposite ordering is ok. Than...
In all modern ciphers, even if one bit of input changes, then half of the output will change because of diffusion. Considering this, how exactly will knowing standard salutations, etc. ("Hello Alice" or other known parts of the message) be used to launch an attack. You don't know the whole PlainText but only part of th...
I have a few questions about how to use zk-snark. Since the basic logic of using zk-snark is: using a circuit to represent a problem, generate an R1CS from the circuit, transform R1CS to QAP and then we can run zk-snark For the first part, is there any specific definition or feature for the problem, and could all pro...