instruction
stringlengths
32
27.2k
I have a text that has been XORed with the key "77U" (I am sure of this as it is a file created by a code I have, so I have seen every entry getting XORed by 77U. However, none of the online decryptors I have tried are giving me any valuable results (error, or something gibberish), some don't have the option to put a s...
As detailed in a separate question, I thought I had a way to detect the type of ransomware that encrypts files silently, and then decrypts them on the fly, so as to prevent the user from realizing that the files have been encrypted. I thought that a comparison of present vs. past file hashes would detect file changes: ...
In the LWE symmetric encryption scheme, a ciphertext encrypting a message $\mu \in \{0,1\}$ under the secret key $\mathbf{s} \in \mathbb{Z}_q^n$ is $(\mathbf{a}, \mathbf{b}=\mathbf{a} \cdot \mathbf{s}+e+\frac{q}{2}\mu)$, where $\mathbf{a} \in \mathbb{Z}_q^n$ is a uniformly sampled vector and $e \in \mathbb{Z}_q$ is a n...
In the ZeroCoin paper, it uses a zk-proof from Camenisch's dynamic accumulator that shows a Pedersen commitment hides an element of an RSA accumulator (https://link.springer.com/content/pdf/10.1007/3-540-45708-9_5.pdf). However, it looks like that the proof can also be used to prove that a subset of elements belong to ...
I try to use the function $$C_i=E(M_{2i}, M_{2i+1}) = (M_{2i} + M_{2i+1})\bmod 26.$$ to encode English text. For example, Plaintext: The quick brown fox jumps over the lazy dog. Regrouped Text: TH EQ UI CK BR OW NF OX JU MP SO VE RT HE LA ZY DO G. $$ T = 19, H = 7, (T + H) \bmod 26 = 26 \bmod 26 = 0 = A.\\ \cdots\\ (D...
I've looked around but can't find any discussion on using both CP-ABE and KP-ABE by simply wrapping one with the other. It seems like you'd be able to get more fine grained access control with a scheme like that. The lack of any information makes me suspect that I'm missing something. Would this be a advantageous setup...
I'm learning how CBC works but i don't understand when altering the first 2 bytes of the ciphered text why the 1rst block and ONLY the first 2 bytes of the second block are altered. The first 2 bytes of the cypher text are altered using a xor operation with random values. Each block is made of 16 bytes. Those are the r...
Hi I found this question which I am currently struggling with. How to handle IKEv1 and IKEv2 diffie-hellman shared secret bits length not multiple of 8? In ACVP, the input diffe-hellman shared secret bits isn't multiple of 8, for example, 521 in bits. The given gxy is 9E50F9E86DAF773F657F5F32BA4C84E707284843F422A74DFC6...
I'm reading about the key expansion for AES but I can't seem to find the answer to this question yet. The book refers to a cipher key and the expanded key (or key schedule). This is the algorithm from the book: procedure KeyExpansion(byte K[4][Nk], byte W[4][Nb (N r + 1)]) ? Nk ≤ 6 for j = 0 to Nk − 1 do fo...
A polynomial hash defines a hash as $H = c_1a^{k-1} + c_2a^{k-2} ... + c_ka^0$, all modulo $2^n$ (that is, in $GF(2^n)$). For brevity, let $c$ be a $k$ dimensional vector (encapsulating all the individual $c_n$ values). Are there particular values for $c$ that make the probability of collisions between two randomly cho...
If I construct a vector pedersen commitment $c = a_1G_1 + a_2G_2 + ... + a_nG_n$ with an arbitrary scalar vector $(a_1, a_2, ..., a_n)$ and group elements $(G_1, G_2, ..., G_n)$, is it possible to create a range proof that proves that each element in this commitment is non-negative? I understand that it is possible to ...
Para 3 of Security Requirements for Cryptographic Module (FIPS 140-2) specifies the requirements that will be satisfied by a crypto module protecting sensitive but unclassified information. What are the standards to protect classified, Secret and Top Secret information?
I've been trying to manually decrypt some TLS 1.3 traffic for educational reasons, and have stumbled across a roadblock. So far, I've been able to complete most of the key schedule, including deriving the correct handshake traffic secrets from the ECDHE keys. However, I haven't been able to find much information about ...
I'm doing sequence-of-game formal security analysis for key exchange protocol. It confuses me a lot how to calculate the adversary's semantic secure (SS) advantage. In Shoup's tutorial "sequences of games: a tool for taming complexity in security proofs", SS-advantage = |Pr[S0]-1/2|; while in other papers like ""Securi...
I'm learning cryptography recently. I read that for game-based formal security analysis, it is important to embed the hard instance during reduction. Does "hard instance" mean hard-to-solve problems like DDH (Decisional Diffie Hellman) assumption? If so, my understanding of "embedding the "hard instance" during reducti...
I am not understanding how to compute the output bits of a 6-to-4-SBOX with bitslice technique in DES. Matthew Kwan made a brief recap in his paper "Reducing the Gate Count of Bitslice DES" of Biham original paper. He wrote: Basically, for each S-box, the technique is to take two of the input bits, expand them to all ...
It is known that, for an elliptic curves $E$ defined over a prime field $\mathbb{F}_p$ such that $E(\mathbb{F}_p)$ is a prime number, the best algorithms (beside some specific cases) for solving the discrete logarithm are the general ones for an abelian group: Baby-steps Giant-steps, Pollard rho, Kangaroo. For elliptic...
I am reading this explanation of zkSnarks written by Maksym Petkus - http://www.petkus.info/papers/WhyAndHowZkSnarkWorks.pdf My question is about Section 4.6.1 Setup construct the respective operand polynomial $l(x)$ with corresponding coefficients sample random $\alpha$ and $s$ set proving key with encrypted $l(s)$ ...
I was trying to do a simple CPA attack against this scheme, to understand better the concept. Instead of using a new each time, we decide to use the last block of the previous ciphertext as an initialization vector. Prove this new scheme is vulnerable to a chosen-plaintext attack. So in this case, the challenger choo...
Suppose there are two collision-resistant hash functions $h_1$ and $h_2$ with output sizes of $n_1$ and $n_2$ respectively. Is $H'(x) = h_1(h_2(x))$ collision resistant for the different relationships between $n_1$ and $n_2$? This has been boggling me and my colleagues for the past few days since two different appro...
Have there been any publicly known exploits of a cryptographic break in a widely used cryptographic system to actually read encrypted information (or falsely authenticate) since the Ultra program in World War II? I want to define my terms as precisely as possible to clarify what I mean. An example of what I'm looking f...
I have been reading crypto_box encryption and have a question. In the details of the algorithm, it uses Key exchange: X25519. However, I don't see why they need to use a key exchange algorithm. So my question is where and why do they need to key exchange algorithm?
At RFC2409, section 5.1, authentication header is like: HDR*, IDii, [ CERT, ] SIG_I HDR is an ISAKMP header whose exchange type is the mode. When writen as HDR* it indicates payload encryption. IDii is ID of initiator [CERT] means that sending certificate is optional SIG_I is signature of initiator. Why sending certif...
Background I'm building a URL shortener, and the URL to shorten may contain a SessionId. For the URL shortener to not compromise the security of the SessionId, I must use a shortening strategy that fulfills the same requirements as the SessionId. OWASP states that: The session ID length must be at least 128 bits (16 b...
I am currently reading about RS codes. I see that they are using a Galois Fields (Finite Fields) as vector spaces. Is there any other particular reason other than the fact that they simplify binary arithmetic and for example in $GF(2^8)$ each byte can be considered as a vector? Can they work in vector spaces that are d...
I am doing some research on the BLS12-381 (https://hackmd.io/@benjaminion/bls12-381) and trying to understand if there are endomorphisms that are efficient. Of course, I am looking at this to explore faster multi scalar multiplications :) I came across this post on Koblitz curves do koblitz curves over $\mathbb{F}_{P}$...
I'm thinking let's say you have a smart contract that ensures no double usernames. What's if I generate an ECDSA pair like so: Accept username and password Validate username and password Generate keypair using seed of <username> <some separator> <password> Return keypair Would this be cryptographically insecure? I'm ...
After rigorous testing, it seems that it can possibly be a NIST-level candidate algorithm. However, explaining or even finding the right people, experts in cryptography to talk about his invention seems to be quite a challenge. It's a time-consuming process to explain and present the material and a hard to believe subj...
I've been implementing a hobbyist cryptography library, and I'm at the part where elliptic-curve cryptography is being implemented. I've already implemented and tested ECDSA with P-256 and P-384, where static and ephemeral private keys are 256-bit and 384-bit each, so far so good. What's bothering me is P-521. I'm plan...
In multivariate public key cryptography, why can not we use the same public key for both signature and encryption? I read that for signatures the public polynomial $P:\mathbb{F}^n\rightarrow \mathbb{F}^m$ has $n\geq m$ whereas for encryption $m\geq n$.
I been trying to solve a particular challenge where we have to sign an admin message. At first it seems a classic RSA blind signature attack but eventually they didnt give out the public exponents(e,n) and e is of prime(128) length. The server offers to encrypt anything n number of times but not the admin message and t...
I understand how this linear approximation board below is produced, but I can't understand how this second board is produced using the first one and finally how the pilling-up lemma values are calculated ( o in S 12 the approx. Λ 1 = X5 XOR X7 XOR X8 XOR Y 6 has bias +1/4 o in S 22 the approx. Λ 2 = Y 6‘ XOR Z 6 XOR ...
For a lot of cryptographic applications, multi-party protocols are used. The idea is to create shares of a key/secret and give them to multiple parties. My question is: Do all parties have to participate in the multi-party protocol or do protocols exist, that only need e.g. >51% of the shares to compute correctly?
I'm reading and implementing this tutorial, the author explains everything pretty clearly, the only thing I'm missing is how he decides which trail to use (pg. 12). I understand that one should prefer trails with the least amount of active S-Box and maximize the bias of the trail (in fact, finding the optimal trail see...
The following details are given: Partial Key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX11000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000011 Initialization Vector: E898EF8E91F8C9B201E6E29DF87EE152 Ciphertext Block 1: 14B8D1412766A8520BACE4598F8AFAEE Ciphertext Block 2: 7E687A49015FA6F...
EDIT: I messed up something (see comments at answer). This question contains some false statements EditEnd. For tetration modulo prime $P$ $$^{i}g = g\uparrow \uparrow i = \underbrace{g^{g^{\cdot\cdot\cdot^{g}}}}_i\equiv v \mod P$$ with suitable $g,P$ so that $$|\{^jg \mod P\}| = P-1 \text{ }\text{ , or }\text{ } v\in[...
Assuming we found a constant $g$ and a prime $P$ which is able to produce all values from $1$ to $P-1$ with it's sequence $$s_{i} = g^{s_{i-1}} \mod P$$ $$s_0 = g$$ How many steps are needed to compute $i$ for a given value $v$ ($=s_i$) with known $g,P$? Can it be faster than $i$ steps? toy example: With $P=5, g=3$ t...
Are there moderns (post World War II) and famous protocols that were proven secure (in any model: game-based, UC...) but whose proof was wrong and could have led to real-world attacks? Note that: I'm not really concerned about attacks on the mathematical assumptions themself (which seem to be the focus of this thread,...
In game-based security proof, I found that games are defiend to be played between a PPT adversary and a challenger. The adversary is able to issue queries to different oracles and receives corresponding reponses. Assume A is the participant of the protocol, the queries sent by the adversary could be: Test(A) or hash qu...
For some $g$ and prime $P$ the sequence $$x_{i+1} = g^{x_i} \mod P $$ $$ x_0 = g$$ can contain all numbers from $1$ to $P-1$ and with this it is a pseudo-random permutation of those numbers (EDIT: seems to be not the case). Is there any (quick) way to find big/safe values for $P$ and related $g$ which can still produce...
Please see the Reference section below for terms. Is there a known one-way method to produce an array of indexes, based only on two input elements: length of the resulting array number, used as a key to deterministically produce the array If there exists only a method that can produce only fixed-length arrays - it ca...
Why randomness space must be significantly larger than the commitment space |R|>|C|? the picture is from https://youtu.be/IkNZWJFcfcU?t=236
While creating secret keys in IKE protocol, sides use cookies but I did not understand where they come from, how they are generated and why they are used. Can someone explain? Thanks.
I'm working with SWIFFT, a provably secure keyed hash function, which is desirable to me. Unfortunately from what I gather it is ONLY a keyed hash function. Would there be any disadvantages or security problems if I just gave everyone the key and used perhaps public key encryption to do the authentication "manually", u...
Suppose I have a real physical dictionary, and I want to draw words from it randomly, using dices. How should I do it? Maybe it's easier to work with a coin since it's easier to convert binary to a decimal, but whatever, if I use dice, then I can generate a number in base 6 with some dice throws. The problem is that th...
In Gentry's seminal paper on fully homomorphic encryption (FHE), it is assumed that the sparse subset set problem is hard. It looks like there is a followup paper on the concrete parameter of the subset size, which mentions that Gentry's choice of subset size is too aggressive (e.g., 15). However, in its section 5 (Dis...
So I was reading about 1-bit error propagation for AES mode and how it propagates in various modes. I was wondering how error would propagate in ECB, CBC and CTR modes if it was a 2-bit or a 3-bit error on the ciphertext block when the receiver decrypts the ciphertext?
In IKE exchanges, first messages sent unencrypted and unauthenticated. For authentication, messages sent encrypted with nonces. If a man in the middle is eavesdropping this conversation, he/she will know which encryption algorithm will be used in exchanges. Can't the attacker know contents of every encrypted messages b...
In TLS 1.3, handshake messages (except for ClientHello and ServerHello) are protected by keys derived from the handshake secret. After the handshake completes, master secret is derived from the handshake secret, which is then used to derive keying material for application messages. Why are handshake and master secrets ...
What's the meaning of Apostrophe over a variable in the context conversations of verification? Reference number: https://people.eecs.berkeley.edu/~jfc/'mender/IEEESP02.pdf
I was going through Signal's Double Ratchet algorithm specification, and they mention that the DH ratchet step is done for every message. I'm curious what happens if you only ratchet 1 every X messages? Specifically, what info would be leaked to an eavesdropper, and could the the protocol be adapted to handle this.
In cryptography, padding is any of a number of distinct practices which all include adding data to the beginning, middle, or end of a message prior to encryption. In classical cryptography, padding may include adding nonsense phrases to a message to obscure the fact that many messages end in predictable ways. Checksu...
I was reading this paper by Philippe Golle on using the homomorphic properties of ElGamal encryption to play a game of mental poker (i.e. cryptographically secure poker without a trusted third party dealer). I decided that it would be a good project to try to implement some basic version of but I quickly ran into some ...
Are there any cryptographic methods $f,g,h$ which can be applied in any order to an input $x$ while still resulting in the same result $r$: $$f(g(h(x)))=h(g(f(x)))=ghf(x)=fhg(x)=hfg(x)=gfh(x) = r$$ Same for their inverse function: $$f^{-1}(g^{-1}(h^{-1}(r)))=h^{-1}(g^{-1}(f^{-1}(r)))=g^{-1}(h^{-1}(f^{-1}(r))) =...= x$$...
Suppose two signature schemes provides the same level of security. The sum of the sizes of a public key and a signature, i.e., sizeof(sig) + sizeof(pk), are equal in the two schemes. One of the schemes has smaller public key size, and the other has smaller signature size. Then which scheme is preferred in practice? If ...
WhatsApp has taken the step of using the Open Whisper Protocol for their message encryption, borrowed from the Signal application. I was wondering if there was any obvious, high level, difference in the implementation of the Open Whisper Protocol between these two mobile phone applications? For example, Perhaps Signal ...
CCM mode refers to CTR+ CBC-MAC encryption mode. Based on this paper, the adversary's advantages against the authenticity of CCM is: Eq(1) Authenticity: it should be infeasible for an adversary to forge a valid ciphertext without knowing the secret key. and the adversary's advantage against the privacy of CCM is: Eq(2...
In the case of a OTP (One Time Pad), if we encrypt two different images with the same key, then two encrypted images will be generated. Then if these two encrypted images are mixed with bitwise xor ⊕, then the traces of the two original images are revealed. On the other hand in a hypothetical MTP (Many Time Pad) stream...
If we have a secure PRF (, ) and a PRG G where : → × is a secure PRG. Is the PRF F'(k, x) = = ((, )) also secure?
Assuming that all other elements like the internal state of the algorithm are considered secured and very hard to discover from a cryptanalytic standpoint. How significant would be for the algorithm to be able to pass the PractRand with the specifications mentioned?
I am looking for ways to securely sort two lists of numbers. Yao's millionaire's problem considers each party with one secrete number and compare them securely. Are there papers on extension to this problem where each party has one list of numbers and each party will learn the positions of each element of its list with...
Game: Users stack blocks to form an unstable tower. Each time a new block is successfully laid, the game creates a score_string which is meant as proof of the user's current score. Assume each user has a unique public key that is known to the leaderboard, and that the user can sign their score_string when submitting to...
I am learning about collision resistance security notion of hash functions. However, I got confused when collision resistance experiment started using "keyed" hash functions in the experiment (and also in other similar experiments). This is a small extract from Introduction to Modern Cryptography by Katz and Lindell : ...
Is following RSA signature scheme secure against forgery and prevents breaking text book RSA? $$y = \operatorname{SHA-256}(m)$$ $$s = y^d\bmod N$$ where $m$ is message of arbitrary length, $y$ is the 256-bit hash of $m$ computed using SHA-256, $d$ is RSA private key, and $N$ is an RSA modulus with length 2048 or higher...
Suppose that a set of entities each have public/private key pairs, (P1, S1), (P2, S2), ..., (Pn, Sn). In a straightforward scenario, a message signed with Si can be verified using Pi. My question is, is there a way for me to sign a message with {S1...Sn} and the signature can be verified using one of the {P1...Pn}? Her...
I would like convert between one bech32 address to another with different slip44 coinTypes. For example, a terra address terra172xqaafhz6djy448p32633q4rl7eaz4wqnjn46 uses slip44=330 and cosmos address cosmos1mwwvfu804wcaanz8j78f8h75flxkyjua23kdvw uses slip44=118. The prefixes can be assume to be the first characters ti...
I have been studying Zero Knowledge Proof. I found the Definition of Interactive Proof says that Verifier is ppt. And I only found in PP (Complexity) Wikipedia says that ppt: Turing machines that are polynomially-bound and probabilistic are characterized as PPT, which stands for probabilistic polynomial-time machines....
I am working on a hardware security problem. It involves authentication of contents of a packet header at the network-on-chip level, which is very resource constrained in nature. I have a Pearson Hash of the header contents, which I would like to digitally sign so that it can be verified by other nodes of the network t...
Testing a code that uses the Camellia 1.2.0 source code, when generating a keyTable from the input key, using: void Camellia_Ekeygen(const int keyBitLength, const unsigned char *rawKey, KEY_TABLE_TYPE keyTable) The output shows a few 'zeroed' words at the same places. Two random examples for 256 ...
A cyclic sequence can be produced with $$s_{i+1} = s_i^a \mod N$$ with $N = P \cdot Q$ and $P = 2\cdot p+1$ and $Q = 2\cdot q+1$ with $P,Q,p,q$ primes. and $a$ a primitive root of $p$ and $q$. The starting point $s_0$ is a square ($\mod N$) It will produce a cycle of length $\mathrm{lcm}(p-1.q-1)$ (except $s_0$ is a ...
I have been doing some research in group and ring signature literature for anonymous signatures. I am trying to find a group signature scheme which provide the following proprieties: Anonymity for the signer The signature can be verified by a generic receiver Output just one signature (I do not want a kind of LSAG Sig...
Hello I am quite new in cryptography so I found Trivium stream cipher can anyone explain in basic language how Trivium cipher works
I'm trying to figure out how to construct an extractor for a non-interactive lattice-based proof. Specifically, I'm curious about the Fiat-Shamir transform applied to a five-move interactive protocol. Can you please explain to me what strategy should be used? Or share a link to an article with examples (references to e...
The well known Decisional Diffie Hellman assumption (DDH) assert that for any $n = \log q$ and generator $g$ of $\mathbb{Z}_q$, for uniformly i.i.d $A, B, C \sim U(\mathbb{Z}_q)$, the following are indistinguishable for any PPT $M$: $g^A, g^B, g^C$ vs. $g^A, g^B, g^{AB}$. That is, up to negligible advantage: $$\epsilon...
Consider a variant of DES algorithm, called DES-WEAK. In DES-WEAK, there is no permutation P in a round and all the S-boxes are replaced. The new S-boxes are all identical and defined as follows. Let b0, . . ., b5 represent the six input bits to an S-box and a0, a1, a2, and a3 the four output bits. Then, a0 = b3 ⊕ b0b1...
The PKCS#7 padding is defined in rfc5652#section-6.3 Some content-encryption algorithms assume the input length is a multiple of k octets, where k is greater than one. For such algorithms, the input shall be padded at the trailing end with k-(lth mod k) octets all having value k-(lth mod k), where lth is the length o...
The BFV scheme is good for representing lots of integers inside a polynomial and we can even operate on them individually relatively fast. However, bootstrapping on BFV is infeasible, such that no library even implements it. On the other hand, schemes like TFHE have very fast bootstrapping, but operate on gates. This p...
As I understand, the Bitcoin network can be seen as a supercomputer looking for SHA256 collisions. It hasn't found one yet (March 2022). Also, in the post-quantum cryptography era, you would be capable of reversing SHA256 hashes. But in the case of finding hash collisions, is there an algorithm already proposed?
My understanding was that SHA-256 is pretty random or "random" enough. I assumed that would mean that every character would behave like a 1 to 16 dice roll. With this assumption, I would expect that you can model the probability of repeating characters as $16^x$. So a chain of $\texttt{FFF}$ or $\texttt{333}$ would hav...
Multiple Encryption For Multi-Key Security I have a hypothetical question about multiple encryption after reading Matthew Green’s blog on multiple encryption. For those who are familiar with GCM…I want to understand the efficacy of multi-key security through an implementation of multiple encryption with a secure form o...
In game-based security proof for key-exchange protocols, there is a Test query. The Test(U) query typically is only available to the adversary if the attacked instance U is fresh. (U represents either a participant or an oracle) Fresh: Before the session expires, there is no SSReveal(U), SKReveal(U) or Corrupt(U) query...
Calculating the RC5 encrypted size of any data is as simple as rounding up the plaintext length to the nearest multiple of 8. What I'm wondering is whether this can be done in the other direction, to get the length of the original plaintext data given the ciphertext. Obviously this information isn't revealed until the ...
I have this definition: each ciphertext is equally probable for a given plaintext and key chosen at random I know that perfect security can be defined as $$\forall c \in \mathcal{C} \ \forall m_1,m_2\in \mathcal{M} \ Pr[Enc_k(m_1)=c \ for \ k \ random]=Pr[Enc_k(m_2)=c \ for \ key \ random]$$ Are these equivalent? The...
I'm learning about Shor's algorithm and how it can be applied to break ECDSA. I've clearly missed something basic here - I thought I understood that the challenge ECDSA presented was to find the private key given the public key, as follows: $x\cdot P = X$ (where $x$ is the large and randomly-generated private key, $P$ ...
Suppose that we play the game from Adversarial Indistinguishability but adversarial can choose three messages $m_0, m_1, m_2$. Of course, $Pr[M=m_i]=1/3$ for $i=0,1,2$. I suppose that to have adversarial indistinguishability, one cannot have an advantage greater than $1/3$. The question is if this is stronger than the ...
I have tested out with a few test cases, it seemed like the ciphertext $M^e$ of RSA is always coprime with N when e=3. Is there a reason why? What would happen if the ciphertext $M^e$ is not coprime with M when e=3?
Mathematically is it possible to find the GCD of two points on a prime curve, one of them not being the order as you do in Extended Euclidean Algorithm?
I read few answers about the question: why are hash collisions so dangerous? But did not get a really satisfying answer. Assume we are the first people who found a SHA256-collision, like sha256($§"%fa7asd8ft6sds) = sha256(889=?`/&&%"HSF) (this is not a real equation, but assume it is true). Why is this dangerous? Why i...
I am new to the simulated proof and am a little bit confused about the abort in the simulation. When the real-time protocol abort, I assume that the ideal process should also abort? Does this mean that the simulator would first observe the result of real-time protocol, then decides what to run to reach abortion? Sorry,...
I want to design a scheme, where there is a circuit C0 which is obscured by an indistinguishability obfuscation (IO). In C0, a master key of a functional encryption (FE) is hardwired. Given an input z to C0, it outputs a secret key using the key generation algorithm of FE. C0 is as follows: C0(z) { hardwired: msk out...
What's the meaning of without loss of generality in the cryptography (Zero Knowledge Proof)? Without loss of generality, suppose we want to check if a 1 = a 2 . In the following description, j ∈ { 1, 2 } . Reference: Zero-knowledge test of vector equivalence granulation of user data with privacy.
In my scheme, two functional encryptions FE1 and FE2 are used. The function f1 corresponding to FE1 is as follows: f1_y(x) { hardwired msk2 output sk2 = FE2.KeyGen(msk2, (x, y)) } where msk2 is the master key of FE2. Then, the user obtains the private key sk1_y=FE1.KeyGen(msk1, y). For any ciphertext c=FE1.Enc(x), ...
I'm studying some concepts about Oblivious Transfer(OT), and would like to know what is the 1-out-of-2 OT, chosen 1-out-of-2 OT and Random 1-out-of-2 OT, and wonder the relation and difference between these concepts, thank!
Will Hashing Multiple Times Be More, Less, Or Similarly Secure As Hashing Once? Flushing out this question: I saw this claim: List item: Don't do this: hash = sha512(password + salt); for (i = 0; i < 1000; i++) { hash = sha512(hash); // <-- Do NOT do this! } however if you are going to double hash then do this hash...
I am new to cryptography, and trying to understand the concepts of LWE (learning with errors) formally. I will state my understanding of the definitions, which might be incorrect. Definitions According to My Understanding Let $R$ be a finite unital commutative ring equipped with a probability $\mu$ (whose $\sigma$-alge...
I am reading about Hardened and Normal child key in chapter 5 of the book "Mastering Bitcoin" by Andreas, along with this detailed thread and BIP-32. Here are some of my understanding about these two procedures: k: private key // K: public key // i index // c chain code // H HMAC hashing result // Hleft the first 32 b...
From one-time hash-based signature, one can convert it into 2^d time signature by using Merkle hash tree. However, it seems to be a trick that enables multi-time signing. My question is: is there any use case for a signature scheme that can only be used to sign for a fixed number of time (punch/redeem card)?
Recently, I have been reading the original proof of GCM. It mentioned the properties of "almost universal" and "return zero" for hash function. I wonder if there is a connection between the two, that is If a hash function is collision resistant, then it is "unlikely" return zero. In a more formal way, we have the fol...
As described in the SSH RFC an initial IV to server, initial IV to client, encryption key client to server, encryption key server to client, integrity key client to server, and an integrity key server to client are generated. Why does SSH generate a key for server -> client communication and a key for client -> server ...
Here is quote from gnark documenation. Note that careful consideration must be given to this step in production environment. groth16.Setup uses some randomness to precompute the Proving and Verifying keys. If the process or machine leaks this randomness, an attacker could break the ZKP protocol. It sounds like there ...