instruction stringlengths 33 27.2k |
|---|
Is it possible to use the GSW scheme (Gentry, Sahai, Waters) also on integer values and not just single bits? If not, are there any schemes that support integer arithmetic with the same nice property of not having to use an evaluation key?
Thank you
|
Let's assume that a user wants to symmetrically encrypt the files in one of his folders (being able to decrypt them later).
For this, I have come up with the following procedure:
A random 32 byte salt is generated and saved in a non-encrypted file.
The user then needs to memoize a - hopefully strong - password, which ... |
Let $p$ be a large prime, such that $(p = 3) \mod{4}$. Let $x$ be an element of $\mathbb{Z}^*_p$ such that, for some $y \in \mathbb{Z}^*_p$, we have $y^2 = x$. It is a well-known result that $y = x^{\frac{p+1}{4}}$: $y$ can be computed from $x$ through a sequence of repeated squarings, which makes $y$ long to compute f... |
In the original RSA paper, in the section that describes digital signatures, the authors write, “He [Bob] need not send M as well; it can be computed from S.” Then, a few sentences later, “Bob cannot later deny having sent Alice this message, since no one else could have created S = DB(M).”
But Bob’s encryption procedu... |
I would like to know an algorithm hash to a finite field.
I have an $l$ bit prime number $q$. I want setup a hash function $H: \{0,1\}^* \to \mathbb F_q$ but I do not know how I can do it.
I use a library for a hash with C++, this is cryptopp.
I find an answer at Right way to hash elliptic curve points into finite fie... |
Does Paillier follow a stream encryption or block encryption technique.
If it’s a block encryption then what is the size of the block in bits or bytes.
|
The Diffie-Hellman key exchange algorithm can be used with SSH.
But how does SSH exchange the large safe prime p and the generator for a subgroup of GF(p) g?
According to RFC 4253 the first steps are to send e & f which are calculated depending via:
e = g^x mod p
f = g^y mod p
Now x & y are randomly generated but ho... |
I am a user requiring a legal signature to be installed on a SAP/R3 application. For the past few years a service provider provided a X.509 advanced signature certificate that could be exported as a .pfx file and installed on SAP.
A new service provider supplied a dongle with PKCS#7 and a separate private key is requi... |
What determines the number of possible RSA key pairs for a given $n$?
Is it because $\varphi(n)$ produces the number of values that are less than $n$ and coprime with $n$?
Is it as simple as $\varphi(n)$?
|
Given an Elliptic curve group $E(\mathbb{F}_q)$ where the Discrete Logarithm Problem (DLP) is hard and a base point $G \in E(\mathbb{F}_q)$ with large prime order $n$, what will be the advantage of a polynomial-time bounded adversary $\mathcal{A}$ to solve the following problem:
Given $\alpha = X+Y$ and $\beta = X+Y+Z... |
I wasn't certain how to title this request/problem, but here goes:
I'm A, and I want to send a message that is received by B, C, D.
Each receiving entity here is part of some set of domains D1, D2, D3:
B: {D1, D2}
C: {D2}
D: {D3}
How do I encrypt a message with a single key that I, A send to B, C, D such that it can o... |
"Calculate how many possible key pairs exist"
Found these through searching. Not sure if either are correct. I would've assumed the number would be infinite.
phi(n) - 1
phi(n)/2
|
If a message is padded with cryptographically secure random bytes, is there any reason why this would be less secure than the standard signature padding schemes (PKCS1 v1.5 and PSS)? To give context to the meaning of the word "secure," I would note that my only intention is to prevent others from being able to forge th... |
Can there be two messages M, M' both of the same length such that both MD5(M)=MD5(M') and SHA-256(M)=SHA-256(M')?
Let's compare two files: if they have the same length, they are candidates for having the same content; if they share the MD5 sum they are stronger candidates for having the same content (I understand there... |
I'm working in a very constrained (in code size/memory) microcontroller environment where I'll need public key signature verification. The algorithm to be used can be chosen, and there's no performance constraint; signature verification is a rare event. The data to be verified is obtained by a one-way channel with untr... |
We know that Common Modulus Attacks work with coprime public exponents $(e',s)$ such that $${e_1}s+{e_2}t=\gcd(e_1,e_2)=1$$
I am reading Hinek and Lam's Paper: Common Modulus Attacks on Small Private Exponent RSA and Some Fast Variants (in Practice). Got confused, it seems they proved that Common Modulus Attacks would ... |
I have multiple entities (servers) that all share a private secret already.
Those servers need a rotating secret (TTL a few hours). All servers must have the same set of secrets at all times.
I have another server (command & control) with a communication channel to all my clients.
I want the command & control to handle... |
I am having some difficulties in understanding why is the finishedClient needed.
In case an attacker attempts an attack like a replay attack, it will show immediately that the attacker wasn't able to derive the correct set of keys.
However, this would be evident even without this message as the attacker wouldn't be abl... |
I am looking for a 4-bit S-box which has only 4s in its difference distribution table (except the top left corner) but I was not able to find one in the literature.
Has such an S-box been already published? If not, is it theoretically possible to reach this property? If so, how to proceed?
|
It's best to use separate keys for encryption and the MAC.
Most implementations tend to derive a larger key and split it in two (e.g. scrypt with an output of 32 + 64 = 96).
Alternatively, you can generate one key and then use HKDF to generate a subkey for the MAC key.
How can you derive a MAC key using the encryptio... |
I'm trying to find a way to understand the process of the Berlekamp-Massey Algorithm. But I'm struggling in understanding the fourth step of the process, which is $B^{(r+1)}(x) = A^{(r)}/\delta^{(r)}$. I found this algorithm from this paper, "VLSI Architectures for Reed-Solomon Codes: Classic, Nested, Coupled, and Bey... |
In the paper "Efficient Zero-Knowledge Proofs for Commitments from Learning with Errors over Rings", they gave a commitment from Ring-LWE: to commit to a polynomial $m$ in $Rq(Zq[x]/(x^n+1))$, choose vector $a$, $b$ in $Rq$ randomly, then the commitment is $c = am+br+e$ (where $r$ is random in $Rq$, $e$ is the error).
... |
I know Common ground of them is that in both model the simulator cannot choose the reply for the query, and the difference between them is that in NPROM the simulator can still see the query/answer list, while in standard model it cannot. Anything else about them?
|
Let's say we have an user Bob. User Bob logs in into our web application every so often. We are a website that tries to save as little information about our users, however we'd like to know which users are inactive so we can suspend their account.
Is there any way we could save information about Bobs logins in a way th... |
Short version of the question: what if we encrypt or decrypt by running SHA-256 one million times repeatedly, beginning with the initial "phrase" or "object", so that the operation can take 1 second, won't take prevent hacker's brute-force attempts?
Details:
If the system has an encrypt and decrypt system that would f... |
Wikipedia mentions that Shamir's secret sharing(SSS) for example, has information theoretic security. While I understand the concept that the adversary would just not have enough information to break the security, it must also correspond to some computatioal complexity class, shouldn't it? Let's say I'm an adversary an... |
Let's say I have an Elliptic curve group $E(\mathbb{F}_q)$ with base Point $G$ and large prime order $n$. Computational Diffie-Hellman is assumed to be hard in that group.
$H: \{0,1\}^*\rightarrow \{0,1\}^\lambda$, where $\lambda$ is fixed, is a collision resistant hash function.
I have a symmetric encryption key $k\... |
According to this Bloomberg article:
A Swiss Company Says It Found Weakness That Imperils Encryption
Terra Quantum AG has a team of about 80 quantum physicists, cryptographers and mathematicians, who are based in Switzerland, Russia, Finland and the U.S. “What currently is viewed as being post-quantum secure is not po... |
As mentioned in these notes definition 2
We say that $\{Xn\}_n$ and $\{Yn\}_n$ are computationally indistinguishable if,
for all $\mathsf{nuPPT}$ $D$, there exists a negligible function $ε$ such that for
every $n\in \mathcal{N}$, $|\Pr[t←X_n :D(t)=1]−\Pr[t←Y_n :D(t)=1]|\leq ε(n)$.
However, the definition also states ... |
I was trying to read this introduction to private information retrieval. On page 12 of the document, a scheme for 1-DB private information retrieval is discussed. I was unable to understand one of the steps of this scheme, I will reproduce it below so you can look at it, and hopefully, someone can clarify what is meant... |
I heard they are very similar, although there are subtle differences between the two.
|
Proof systems (provable security) are seen in many research papers related to cryptography and security. Where would I be able to find a comprehensive resource covering the purpose and the fundamentals of proof systems, and its common approaches such as the random oracle model method?
|
I am reading the following book: Introduction to Modern Cryptography Second Edition by Jonathan Katz and Yehuda Lindell.
I am going through page 533 where they list what some of the notation means, and I came across the following:
$O(·)$, $Θ(·)$, $Ω(·)$, $ω(·)$ see Appendix A.2
I believe the first symbol is the Big-O... |
To prevent various forms of timing side-channel attacks, it's strongly advisable to implementing public-key cryptography in constant time. Or at least, without secret-dependent timing variations. However, as far as I'm aware, such implementations rely on a constant-cycle hardware multiplier. Sometimes it's also possibl... |
I'm currently reading "Serious Cryptography - A Practical Introduction to Modern Encryption" written by "Jean-Philippe Aumasson" published by NoStarch in 2018.
In "Chapter 5 Stream Ciphers", under the heading "Attacking Salsa20/8" on Page 100, there is one paragraph (see screenshot below) which I do not quite understan... |
This is from Boneh's lecture ECBC-MAC
Here is also a link to the lecture itself - https://www.coursera.org/learn/crypto/lecture/QYT6i/cbc-mac-and-nmac
CBC-MAC with $(K_1, K_2)$ on a message $M$ applies RawCBCMAC with $K_1$ to message $M$ & takes the output tag & runs the PRF on the tag using a second key $K_2$
Boneh e... |
I have questions about ECIES.
ECIES
Vanillia ECIES
Encryption side (Alice's side)
In "vanilla" ECIES when Alice wants to send Bob an encrypted message:
Alice uses some Elliptic Curve, e.g. secp256k1, knowing its order G and field P (mod).
Alice does not know Bob's private key b, but his public key B (= b*G)
Alice gene... |
I have been thinking recently about inherently sequential functions. In trying to wrap my head around them, I tried to come to the simplest possible function that looks inherently sequential to me. For didactical purposes, I'd like some feedback.
Consider two sequences of 64-bit integers: $a_1, \ldots, a_N$ and $b_1, \... |
I refer to the LM-OTS specification in RFC8554.
It seems that
after having hashed all the chains, including the checksum’s ones, the signature is essentially the concatenation of the hash results.
Apparently one can make the signature much shorter, by hashing the above again.
Boneh and Shoup define Winternitz signature... |
so I am reading up on Linear Cryptanalysis using Heys' Tutorial. I understood how to get "good" linear approximations of the S-boxes though I cannot seem to find a reasonable approach to combining them together. In the paper on page 12 the approximations used seem to be specifically hand-picked to work for the particul... |
A password is used to connect to a database.
This password is kept in a file.
This password (therefore) needs to be encrypted.
A program to access the aforementioned database needs (of course) the password.
Currently the program decrypts the password, uses the password to connect to the aforementioned database.
Is it r... |
Is it a good choice to drop double SHA-256 and use straight Blake2 in a Bitcoin-like blockchain (more POS oriented so it's not a mining problem)?
I'm talking about Blake2 because I've read more about it than Blake3, so this question may even consider Blake3.
I don't want to clone Bitcoin but experiment with variations ... |
I have this textbook definition, I shall include below.
GenModulus denotes a ppt algorithm that, on input $1^n$, outputs $(N, p, q)$ where $N = p\,q$ and (except with negligible probability) $p$ and $q$ are $n$-bit primes.
A few pages back in the book, it did say $1^n$ was the security parameter, which I assume appli... |
If there is an obvious way to solve this problem, please give it a chance before downvoting, I beg you. Also, some insight into the resultant asymmetric cryptosystem will be welcomed (described in the link at the end of this question).
We will work with 4x4 anti-circulant matrices of the form:
$$\left (\begin{matrix}
a... |
We are given the following securitygame $G^{\text{LOSTNAME}}$:
Generate $k \leftarrow \{0,1\}^{\kappa}$ uniformly at random
Choose $h \leftarrow \{0,1\}$ uniformly random
Create decryption oracle $\mathcal{O}_{\text{Dec}}$ that on input c returns $Dec_{k}(c)$
Create a one-time test oracle $\mathcal{O}_{\text{Test}}$ t... |
I am new to crytography. Can anybody tell me what I might be missing here?
|
Disclaimer.
I have asked a similar question on Electronics StackExchange: they advised me to try here.
The question
I am in the process of developing a simple protocol whose security relies on the assumption that computing the SHA256 hash of a very long string of bytes x takes a long amount of time. Intuitively, even a... |
Let's say you have an encryption algorithm that uses PKCS5 padding. You input 'secret message', which is 14 characters long, but for some reason or another the algorithm needs it to be 16 characters long. So you add on two bytes that are equal to 2 at the end.
Then when you decrypt it, you just look at the last byte an... |
We all see X509 certificates with 2048/4096-bit RSA key pairs; however, it is difficult to understand how they work in the DH part of the TLS handshake.
At most, they authenticate and sign. DH 4096-bit generates "parameters," which I know is time-consuming.
When the server generates those parameters, what do they look ... |
This is a $y^2=x^3+7$ elliptic curve points - $Q,G_1,G_2,G_3. k_1,k_2,k$? - secret exponents:
$k_1*G_1( x_1,y_1) = Q(X,Y)$
$k_2*G_2( x_2,y_2) = Q(X,Y)$
$k*G_3( x_3,y_3) = Q(X,Y)$
How to find a $k$?" ??
$Q,G_1,G_2,G_3. k_1,k_2$ - are known
$k$? - need to find.
|
Trying to understand the concept of a Universal Hashing function.
From Introduction of Algorithms by Cormen, Rivest et al
We now define the hash function $h_ab$ for any $a \in Z^*_p$ and any $b \in Z_p$ using a linear transformation followed by reductions modulo $p$ and then modulo $m$:
$h_{ab}(d) = ((ad + b) \mod p... |
How do I go about finding the shared private key g^ab, if I know the prime p, primitive root g, and the public keys g^a and g^b?
Assuming that a, b, p and g are all very large numbers (~50 digits), it will not be feasible to exhaustively search for a and b to calculate g^ab.
|
I have a bcrypt hash: $2b$10$kn7yEh2nYiDqDYNY.hjiZOtASBKT9uO4KozbFWDW2XLYnW58nkpq and a list with given plaintext passwords. How can I get the password from the list?
Is $2b$10$kn7yEh2nYiDqDYNY the salt?
TOMATCH="$2b$10$kn7yEh2nYiDqDYNY.hjiZOtASBKT9uO4KozbFWDW2XLYnW58nkpq"
SALT=b"$2b$10$kn7yEh2nYiDqDYNY."
for word in ... |
Let k1, k2 be two arbitrary fixed keys (nothing-up-my-sleeve values like "foo" and "bar") and E_k1 and E_k2 be the corresponding encryption functions of a block cipher. x is a single input value (same value is fed to both E_k1 and E_k2).
Define a hash as follows:
H(x) = E_k1(x) xor E_k2(x)
This hash is meant to be used... |
An EdDSA signature is (R, S) where R = r*B and S = r + H(R, A, M)*s. Notation from Wikipedia en.wikipedia.org/wiki/EdDSA.
Given that the hash function H, is indeed collision-resistant, would using S = r + H(A, M)*s be a secure variant?
In the original EdDSA paper, the authors mention the need for R to protect the signa... |
As we know, MD5 and SHA1 (to some extent) are broken, and older algorithms like SHA0 or MD4 and MD2 are very broken.
Does this also imply that the corresponding HMACs are also broken?
Obviously nobody should use e.g. HMAC_MD4 anymore. But I'm just trying to understand the underlying security risk from a theoretical poi... |
In Privacy Preserving Processing Over Encrypted Images, I could understand that appropriate encoding of floats into integers (required in Paillier) only incur negligible error in computations.
Any other references supporting this ?
|
Setup
There are two groups, $A$ and $B$. Each group is in a Shamir's secret sharing scheme ($t_A$ of $N_A$ and $t_B$ of $N_B$). Each group has a public key that is associated with the identity of the group. The corresponding private keys are distributed among the members and are never reconstructed on any device. Each ... |
I've seen in this answer Can Shor's algorithm compromise RSA when both the public and private key are secret? that if textbook RSA is used (deterministic) the Shor's algorithm can reak it. However, if RSA is used with OAEP then Shor's algorithm cannot break it. The reason is that the known-plaintext pair doesn't includ... |
I hope someone can help me. I read several papers including the original paper, "Multi-linear Secret-sharing Schemes," by Beimel et al., and watched the following video https://www.youtube.com/watch?v=3GFdp7V_yog but still struggling with the concept of multi-linear secret sharing scheme. I know that in LSSS, the secr... |
In the abstract of The Exact PRF-Security of NMAC and HMAC, Gazi, Pietrzak, and Rybar state:
NMAC was introduced by Bellare, Canetti and Krawczyk [Crypto’96], who proved it to be a secure
pseudorandom function (PRF), and thus also a MAC, assuming that (1) f is a PRF and (2) the function we get when cascading f is weak... |
The paper introducing the RSA cryptosystem titled "A Method for Obtaining Digital Signature and Public-Key Cryptosystems" was published in 1978.
The initial version of X.500 published by CCITT (predecessor of ITU-T) dates back to 1988, with the then X.509 document specifying in its Annex.C a version of RSA cryptosyst... |
I have software that generates user login keys randomly, we store the argon2 hash on our server. The generated keys are very strong, 64 pRNG hex characters. Right now we just use an empty string as the salting parameter in argon2 since we figure salt is not even needed since our passwords themselves are not prone to a ... |
For my hobby cryptography project, I'm planning to implement some helper functions that parses a subset of ASN.1 BER encoding without using a ASN.1 compiler. For this purpose, I'd like to use 32-bit integer for the internal representation of tags' and lengths' values.
If I were to extend my library to other application... |
Monero uses a Pedersen commitment $yG + bH$ to obfuscate the value of a transaction, where $b$ is the value and $y$ is the blinding factor.
For the receiver to know both variables, it uses a Diffie-Hellman key exchange to share a secret $rK$, where $r$ is a randomness chosen by the sender and $K$ is a public key of the... |
Disclaimer: I am aware that the question's title does not adequately describe what I am asking, but it is the best I could come up with. Any improvement is welcome.
I am a university student studying for an upcoming cryptography exam, and I came across this unsolved exercise. I have various questions that stem from it.... |
The CBC-Chain mode of operation is a CBC variant in which the IV that is used for
the very first message to be encrypted is randomly selected, whereas the IV used for
each subsequent encrypted message is the last block of ciphertext that was generated.
Show that CBC-Chain is insecure by constructing an efficient IND$-C... |
I have been looking at the threshold (EC)DSA schemes for honest majority by Gennaro et al. https://www.sciencedirect.com/science/article/pii/S0890540100928815. In the scheme, there are steps where we wish to open the product of Shamir secret sharings. So for example [a],[k] are degree-t sharings of a,k respectively, ea... |
I've seen a large set of ECDSA test vectors for verification. In addition, I've seen some test vectors from NIST, and those can be found here.
Is anyone aware of ECDSA sign test vectors which, if "deterministic k" is used, where the algorithm in RFC 6979 produces a "not suitable k" (leading to rarely used code paths)? ... |
Going through the literature led me to think I understood the difference between these two things, but thinking about I am not actually certain. Could you help me correct my definitions of these two things (or provide some more detail that aids understanding)?
Polynomial Commitment: This is an object created by evaluat... |
I am currently writing a thesis about different cryptographic protocols like DH-Key exchange, TLS or IKE.
Most of them rely on a prime number earlier or later, so for security reasons I wondered if this prime number is supplied by the user and if yes that leads to the question if I can manually provide it (for example ... |
Is it possible to create the constants used in SHA256 on the fly? Meaning I dont have to reserve 64 32-bit words of space? It would result in a slower implementation, but at the profit of using less memory. I know it is possible to do it with AES Sboxes, but how about the SHA256 constants?
|
I came upon a solved exercise that uses a client's RSA key to encrypt a DES key. It has the following phrase:
value of n for RSA key generation has been chosen accordingly so that the DES key can be encrypted.
However it does not go on to explain what the requirements are and why. Could someone point this out to me? ... |
I'm trying to solve the next problem:
We have X - input vector, its length is 128 bits.
Output vector Y, its length 2048 bits. We know that Y has a proper value, if and only if "CRC" is valid, to calculate this "CRC" we have to know all bits of Y of course.
We have a function F(), which does F(X) -> Y. This function i... |
Given a (potentially multivariable) equation $f(x)=0$, Peggy wants to prove to Victor that she knows a solution $x^\star$ to it without actually disclosing anything information about the value of $x^\star$.
Is there a slick way to pull off this zero-knowledge proof?
If possible, I want a solution
in the continuous con... |
Given an elliptic curve $E$ on $Z_q$. There is a subgroup $<G>$ on $E$, and the order of $<G>$ is $p$, where $p$ is a prime. And the discrete log problem on $<G>$ is hard. Now we randomly sample a group element $G_0$ of $E$. Let $Q$ be the event that $G_0$ falls in $<G>$. Can we say that the probability that $Q$ happen... |
Let $F$ be a pseudo-random function. Show that the following constructions are insecure as message authentication codes (in each case $K \in \{0,1\}^n$ is the private key):
$(a)$ To authenticate a message $m=m_1||m_2||\dots||m_l$ where $m_i\in \{0,1\}^n$, compute
$$
t=F_k(m_1)\oplus F_k(m_2)\oplus \dots \oplus F_k(m_l)... |
As per my understanding, a Universal Hash Function isn't a cryptographic hash function & it's output isn't uniformly distributed. However, this is still secure because it's actually a family of functions & one or more of the random inputs to the function decides which function is actually picked from the family of func... |
Assume the Hash-to-ristretto255 function Elligator as laid out here. Assume a random hash that is then mapped to a point in the Ristretto group - is this point then of prime order (is it even in the same order order as the basepoint?).
If not, is it guaranteed that the Discrete Logarithm is still hard for the sampled p... |
I have a system where I should generate a secret token for a user. The presence of a token is sufficient to grant access to some user-related data.
I am generating a 4096 bit token from a cryptographically secure random number generator. Internally I'm handling the token as a string, encoded to hex. Token is hashed usi... |
For modulus $Q$ and stddev $\sigma$, [GHS12] suggests that, to achieve 128-bit security, just choose the dimension $N$:
$$
N\geq(Q/\sigma)\cdot 33.1
$$
This seems to suggest flexibility to choose smaller $\sigma$ ("as long as it is not too tiny"), but just paying a price on $N$.
Many instantiations seem to favor a fixe... |
Let $R, S,$ and $T$ be finite, non-empty sets. Suppose that for each $r \in R,$ we have a function $h_r: S \rightarrow T.$ In other words $\{h_r\}_{r \in R}$ is a family of keyed hash functions from $S$ to $T$.
We say that a family of hash functions $\{h_r\}_{r \in R}$ is pairwise independent, if for all $s, s' \in S, ... |
Consider the nonce-based Carter-Wegman MAC which works on key space $K=\{0,1\}^n \times \{0,1\}^n,$ message space $M=\{0,1\}^{mn}$, nonce space $N=\{0,1\}^n$ and the tag space $T=\{0,1\}^n$ as follows:
$$
cwMAC_{h,k}(x,n)=H_h(x) \oplus E_k(n),
$$
where $x \in M$, $(h,k) \in K, n \in N, \{H_h\}_{h \in \{0,1\}^n}$ is a A... |
Tell me if there is a way to multiply two points on an elliptic curve?
For example, as in secp256k1
Pcurve = 115792089237316195423570985008687907853269984665640564039457584007908834671663 # The proven prime
GPoint = (Gx, Gy) # Generator Point
N = 1157920892373161954235709850086879078528375642790749043826051631415181614... |
All the examples that I see for proving that two distributions are not computationally indistinguishable involve a pattern: choose a Distinguisher $D(\cdot)$ such that $D(x)$ is $1$ if $x$ satisfies some certain properties.
For example, consider the distribution $X$ such that it contains all the binary strings in $\{0,... |
In the Cornell lecture notes, computational indistinguishability is defined as
Definition 69.4 (Computational Indistinguishability). Let $\{X_n\}_n$
and $\{Y_n\}_n$ be ensembles where $X_n$,$Y_n$ are distributions over $\{0, 1\}^{l(n)}$ for some polynomial $l(·)$. We say that $\{X_n\}_n$
and $\{Y_n\}_n$ are computatio... |
I was looking at Dragonfly key exchange protocol RFC 7664, and it seems to make use of masked Diffie-Hellman in the final part. Generating two random numbers less than group order $q$, $m$, and $r$ and outputting $P^{-m}$ and $m+r$ where $P$ is derived from the password. (I am omitting the analogous ECDH part). I did a... |
I am a beginner in this field, and I was thinking about brute force strategies to break symmetric key encryption.
Let's say we have a block cipher in CTR mode and the key is 56 bits in size. What would a process of finding the key look like (brute forced strategy)?
|
As explained in this answer, if one knows the trapdoor (factorization of modulus $N$) in an RSA accumulator, one can generate fake membership proofs. Does the same apply to non-membership proofs? More specifically:
Given $A$ is the value of an RSA accumulator and $x$ is a value present in $A$, if I know $p$ and $q$, wh... |
Consider a PPT distinguisher $D$. Now if I give it an input (a bit string) $x$, it outputs 1 if $x$ ends with $1$ and $0$ otherwise. We know such a distinguisher exists and is often given as an example many times.
Now consider another distinguisher strategy, where on input $x$, it checks if $x$ is $0^n$ or $1^n$. If ye... |
The reason for asking, is that this occurs in real life with CRT calculation of RSA decryption/signing. In CRT RSA, there's the need to calculate subtraction, and it's known negative numbers could occur, especially with multi-prime cases.
While RSA would eventually phase out when moderately-sized quantum computers are ... |
After reading about UHFs from different sources (From Algorithm books to Crypto books), I am still thoroughly confused about them.
How is a UHF different from other cryptographically secure hashing functions? Is the only difference that it's a keyed hash function while other secure hash functions need not be keyed?
Als... |
Miller-Rabin tests the compositeness of candidate numbers (hence, input $x$) that's often used as a primality test.
The M-R test requires different random numbers for accuracy and confidence in the primality of $x$. To obtain such random numbers, I want to obtain them from a lightweight embeddable RNG, instead of a CSP... |
I would like to develop a small solution (in C#) that must secure data exchange with an untrusted server.
The model is that this software will run on a Windows client then encrypt data before pushing it to the server and then decrypt data when query back from server. Encryption and decryption will happen locally on the... |
I've always understood the bit security of hash functions to be related to their output size (eg. collision resistance). However, I recently came across a table from a Wickr blog post that lists HKDF-SHA256 as having 256 bits of security. Here's the table:
How does this work when HMAC-SHA256 offers 128-bit security? ... |
The plugboard provides a new layer of security for the enigma but why can we only swap at most 10 letters? I only found things like "10 was the most common." but why stop there? Isn't adding more going to provide more security?
At first, I thought it was not going to add more complexity at one point, because swapping t... |
I came across this table a lot in many articles, but I didn't understand what's the difference between Scalar multiplication operation in a group based on ECC and a Small scalar point multiplication operation in a group based on ECC ?
Source of table is from this article
|
In the paper Trapdoors for Lattices: Simpler, Tighter, Faster, Smaller, Micciancio and Peikert mention that it is possible to save an additive $n$ term in the dimension $\bar{m}$ in paragraph $\textbf{Further optimizations}$ in section 5.2 if we use a single tag $H=I$. I want to use this together with the computationa... |
I have been given three different strings:
1~p-otq{dsYBKTD;L?=,?6W'?66h_kcvY(:Z4ipq,%CHT<HHAI
+0o"j'wyr'gX1DIH?XF*8,KX;F:|__qqQ'Gownkvoe9ED^Y)3m{)ly|!!ky*
*u%8zoq+vt=K=IS<F:?H4:Wy.&0VmrjhM(>4'gyrmv!82
I have converted these to HEX using this website, so I am now left with:
317e702d6f74717b647359424b54443b4c3f3d2c3f365... |
We have a key representing an SHA-256 hash in HEX, and we have the key in AES-ECB. We also have a file with plaintext to cipher messages that were encrypted with our key. How could we find this key?
8cb78d34edfec9db1fa4a044f14c06cd5d9aa8a4fece263c439c5fa62dd1fedadf757d79fa6a28069ddcba4ca624c9694559483254896625392f70bf7... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.