instruction stringlengths 32 27.2k |
|---|
Does the output hash of simple hash and Merkle hash are same for same data>>??
|
I'm studying reductions in cryptography and confused about the way people use the word "reduction".
My question is almost the same as a past question, but what I want to ask is slightly different.
A lot of papers or articles (e.g. Wikipedia "Reduction (complexity)" or "The Algebraic Group Model and its Applications" by... |
Assume it's proven: "Security of protocol $\Pi$ can be deduced from hardness of problem $P$".
Is it correct to state: "Security of protocol $\Pi$ can be reduced to (hardness of) problem $P$" ?
My question is about accepted VOCABULARY in the field of cryptography with provable security.
This is a simplified version of... |
How would I attempt to brute force a RSA encrypted message with a 64bit computer if it the memory can't put up with calculations bigger than 64bit? Without going that far to attempting to crack it, how does my computer encrypt a message with a public key that's bigger than 64bit (e.g 2048)?
|
I'm thinking about doing this as a project, but I'm not sure how I'm supposed to proceed.
So I have an 128-bit ECDSA, which would provide about 128 bits of security (if we do not use special methods like the baby-step giant-step algorithm or Pollard Rho's algorithm). I generate a list of 2^64 public keys, and I want t... |
This question is about the proof of the differential privacy of the laplace mechanism.
All more detailled explanations I found of the proof, that the laplace mechanism is $\epsilon$-differentially private, use deterministic functions as the query f that is made on the database (e.g. counting queries).
But is the state... |
I apologize for the newbie question. If I were to use a 256-bit key and AES256 (assuming I had the function instead of AES128, the length of the for loops in the functions xor_128, leftshift_bit, generate_subkey, etc would remain as 16 correct? Since AES256 also returns a 128-bit result
example xor_128 function
void xo... |
I was reading the abstract of "Non-deterministic Processors" paper by "David MayHenk L. MullerNigel P. Smart", in the abstract, they have mentioned the Kocher paper about "Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems"
What is the application of Non-deterministic Processors on a side-... |
In the paper CL signature scheme, the authors describe the scheme to generate and verify credentials. I have a question regarding the credential generation from issuer. In page 11, section 4.4, protocol 2 (2:2), the organizer $O$ generates a random prime $e$, and calculates $c= (P\cdot d)^{1/e}\bmod{n}$.
My question ... |
Let's say there's this blackbox app that has a known modulus $N$, private exponent $e$, and takes ciphertext $C$ encrypted against $N$ and $e$ input and outputs plaintext $M$.
The encryption is done via textbook RSA (i.e. $C=M^e\bmod N$ and $M = C^d\bmod N$). Is there any way, using some form of CCA or whatever the sor... |
I'm interested in cryptography, but unfortunately haven't found the time to dive into the topic much. I have done some quantum encryption stuff back in the day, but that isn't helping me with my current challenge. I hope this community can help me to get going with the following.
I am currently implementing security me... |
When I create a VeraCrypt file container using the GUI, it displays a warning whenever I type in a password under a given number of characters. I was wondering just how insecure, in practical terms, such a method of encryption really is.
To give a concrete example, suppose:
I have a 4 GB VeraCrypt-generated container... |
My client creates a private/public key pair and sends it securely to a server (the "public" key is not really public, only the server is supposed to know it). The server then sends messages to the client, encrypted using the public key.
Now a customer wants to add a proxy that inspects these messages. Obviously the pr... |
I am working on a code generating Edwards curve (Ed25519) keys in a HSM using PKCS#11 API. In the public key template the CKA_EC_PARAMS uses an OID to specify the curve. The encoding for Ed25519 is 06 09 2B 06 01 04 01 DA 47 0F 01. I understand the tag (06 for OID), the length (9) but the OID itself does not match the... |
The basic composition theorem in differential privacy states, that if I have mechanisms $M_1$, which is $(\epsilon_1, \delta_1)$-differential private, and $M_2$, which is $(\epsilon_2, \delta_2)$-differential private, then $M=(M_1,M_2)$ is $(\epsilon_1+\epsilon_2, \delta_1+\delta_2)$-differential private. (It works for... |
So, according to the elliptic curve discrete logarithm problem:
$$A=[r]B$$
In which $A$ and $B$ are points on the curve, and r is the scalar. It is trivial to compute $A=[r]B$ if $r$ is known, but it would be incredibly difficult to find $r$ if $r$ is unknown.
Now, take bitcoin's elliptic curve as an example - secp256... |
A proxy re-encryption scheme is collusion resistant, if the proxy and a delegatee are not able to recover the secret key of the delegator. For example, when we have a message that was originally encrypted for Alice and a proxy re-encrypts it for Bob, Alice is the delegator and Bob the delegatee. Bob and the proxy shoul... |
I have been trying to find a solution to this question and wasn't able.
When it comes to signatures and Hash Functions, how would be possible to show that $\pmod n$ and modular exponent $g^x \pmod n$ are not cryptographic hash functions?
Any help will be very appreciated
|
I am trying to encrypt/decrypt multiple user documents (consider text) in an application. Unlike the use case of passwords where decryption happens once during an API call, in this application during each API call the server has to decrypt multiple documents. Currently, I am using AES-256 with random salt and PBKDF2 (1... |
I have multiple blobs each (symmetrically) encrypted with its own randomly generated key.
Now I want to encrypt these blob keys with user keys and store them in a database.
A table could have the following columns:
blob_id
user_id (unencrypted)
blob_key (encrypted with user key)
expiry (unencrypted)
Now I would like ... |
I was looking for a means to perform a key exchange without relying on a PKI. I discovered Password Authenticated Key Exchange (PAKE) and after reading J-PAKE; I have the following questions:
Do PAKE assumes that involved parties already have a shared message?
in J-PAKE, they used an extension of Diffie-Hellman Key a... |
The classical One-Way Trapdoor Permutation is RSA. The permutation that it implements on a set of $n$ elements¹ is invertible by an adversary knowing only the public key with work $w$ conjecturally² such that
$$\log w=\Theta\left(\left(\log n\right)^{1/3}\left(\log\log n\right)^{2/3}\right)$$
Is it known any other One-... |
Background
I'm working on a framework for crypto-based authentication and authorization that is largely inspired by the way Keybase's Teams product works.
Keybase uses the same process to generate per-user keys and per-team keys. Quoting their docs:
A user generates a 32-byte random seed s.
She computes e = HMAC(s, ... |
I was wondering why some groups provide more security to cryptosystems relying on DL-Problem.
|
We all are using zoom application for joining/hosting meetings in this corona virus period. As we create a meeting, a new id, password and a url is generated. Some real examples follow-
Id: 83500199576
Pwd: 0Wnim6
URL: us02web.zoom.us/j/83500199576?pwd=NVhJV0ExejMwcDQ2MV0wUlFxdnBWZz09
Id: 86043075733
Pwd: ... |
Now i know that the F function doesn't have to be injective, but is it NEVER injective? or is it possible to have an injective F function?
|
My question is a follow-up to a recent question regarding quantum-secure time-lock puzzles (TLPs). TLPs can be built (in principle) from indistinguishability obfuscation (iO) [BGJ+,BGL+] as noted in this thread. As a corollary, quantum-secure iO would lead to quantum-secure TLPs (provided that there are inherently-sequ... |
According to study of "Universal Accumulators with Efficient Nonmembership Proofs", I don't understand exactly how to update non-member witness in construction 4.2.
In the addition step, I understood the point until finding $r$. I can't understand why new non-member witness $d' = d \cdot c^r$.
Can somebody explain how ... |
I asked these questions from a very superficial level, without wanting to get too far into the maths as I lack the experience.
p = 47, q = 53. In real life these would be larger.
Euler(47*53) = (47-1)(53-1)
Where the Euler's totient function is defined my question is can x be any number from 0 to 47, and 0 to 53 respe... |
I have designed an encryption algorithm. The algorithm will probably use CFB mode. The algorithm can encrypt any block size and this does not change the size of the key. There are always about $20$ rounds and the key is always around $128$-bits.
However, the algorithm works much slower when it works on $128$-bits block... |
I am new to Cryptography and has a trouble of understanding the difference between perfect and computationally hiding (binding) properties of a commitment scheme. I also would like to ask what does it mean to be a computationally bounded (unbounded) adversary? I tried to look at these through Google search but none pro... |
Let $f$ be the function used in a round of DES, as defined in FIPS 46-3:
$$\begin{align}
f:\{0,1\}^{32}\times\{0,1\}^{48}&\to\ \{0,1\}^{32}\\
(R,K)\ &\mapsto f(R,K)\underset{\mathsf{def}}=P(S(E(R)\oplus K))\end{align}$$
where $E$ is the expansion, $S$ is the combination of S-boxes, and $P$ is the permutation.
Prove or ... |
In page 408 of Hoffstein, Piper, and Silverman's Introduction to Mathematical Cryptography, it says
"Roughly speaking, in order to achieve $k$ bits of security,
encryption and decryption for Elgamal, RSA, and ECC, requires
$\mathcal{O}(k^3)$ operations, while encryption and decryption for
lattice-based systems ... |
While looking at the ChaCha20 and Poly1305 AEAD construction as defined by RFC 8439, more precisely its use of the key and the nonce, I came up with the questions below. Maybe someone with some in-depth knowledge is willing to share it?
The key and the nonce (usually a "number to be used only once") are used twice in ... |
I am new to cryptography, i know essential part of asymmetric cryptography but is it possible to decrypt 617 decimal digits (2,048 bits) with RSA ? How it can be factored?
|
N torsion points have the structure ker([n]) ≅ Zn×Zn , so ker([2]) ≅ Z2×Z2 , gives us 3 2-torsion points.
but ker([4]) ≅ Z4×Z4 ,this means we have 5 subgroup of order 4 . In each subgroup , there is a generator Pi, my question is , these 5 [2]pi are all different order 2 points right? Does not this means we have 5 4-t... |
I have read a very interesting description of computation related to the RSA group as follows.
"By the Chinese remainder theorem, we have that:
$$(\mathbb{Z}/pq\mathbb{Z})^* \cong (\mathbb{Z}/p\mathbb{Z})^*\times (\mathbb{Z}/q\mathbb{Z})^* \cong (\mathbb{Z}/(p-1)\mathbb{Z})\times (\mathbb{Z}/(q-1)\mathbb{Z})$$
From thi... |
I am stuck in the proof where it says $$p_0=\frac{1}{|M|},$$ I just do not understand how we can infer this equality.
Also, am I right in understanding that B is defined as choosing his two messages at random each time (i.e sampled uniformly from $M$)?
This is the link to two pictures: the first one containing the def... |
I basically use the method below, one difference is that after receiving the first proof the verifier asks the prover to create a proof for another challenge d and this several times without having the prover generate a new random value r.
Is this safe? I was not able to find indications in the literature about it and ... |
The problem:
When I'm writing or reading information (be it on a screen or a physical medium) the information is vulnerable. So long as I'm not alone, anyone can simply glance at my screen or journal and instantly read what's written there (like addresses, phone numbers, and plaintext passwords/device pins)
My goal:
I ... |
I am currently implementing Salsa20 for my bachelor thesis. After having verified all the functions needed for the final encryption function with the given test data in the specification from DJB, I wanted to test my encryption function. Unfortunately, there are no test vectors for the full encryption in the specificat... |
I think that I've found a good solution to prove the knowledge of an ECDSA signature without revealing it.
In short terms it consists in generating an ECDSA signature using the point $R$ as generator, $s$ as private key and the result of $s*R$ as public key. So the $r$ part of the signature would be revealed but the $s... |
Is there a pseudo random permutation generator that produces all permutation of any bit length of the plaintext (this may not be clear, please let me know and I will explain). It must be fast, and does not hold numbers in memory.
This is a permutation of (1)
(1)
This is a permutation of (1,2)
(2,1)
This is a permutati... |
Just like in this question: Protocol for proof of knowledge of $l$-th root
I want to prove that for $u^e = w$ I know $u$ without revealing it.
Three other requirements are:
e is small (65537)
The proof has to be non-interactive
The proof should be as efficient as possible (not several megabytes)
EDIT
So the best solu... |
A malicious actor wants to decrypt ciphertext that was encrypted with a password. He also possesses the hash (bcrypt/PBKDF2) of that password. Does he have any significant practical advantage in decrypting that ciphertext as compared to just having the encrypted ciphertext (with no hash)?
I believe that the clear advan... |
A reasonable way to do password-based encryption is:
put the passphrase¹ and nonce in a well-parametrized memory-hard iterated hash function like Argon2, to derive a key 128-bit or larger.
output the nonce, followed by the ciphertext per some strong authenticated encryption; AES-GCM-SIV or ChaCha20+Poly1305 comes to m... |
Given a sequence of bits (either a 0 or 1), for example:
0110100110110001
How can one create a proof that we have this bit sequence, without actually revealing the bit sequence?
I know that there are several examples of proof mediums, such as polynomials for zk-SNARKs, however, how would one go about defining a proof ... |
I think there exists an algorithm to create a key from the combination of a group of keys in such a way that if I encrypt a message using the key formed from the combination, I should be able to decrypt it using any one of the keys from the group. Any idea?
|
Say that I have 16-32 GB of data, and I want to devise a system for storing this data in an encrypted form. This system needs to meet two core objectives:
The data needs to remain as pristine as possible for a very long time, which in this case means 10-50 years.
No one but me should be capable of decrypting the data.... |
I have currently started a course on cryptography and am an absolute beginner. While reading through Schnorr's Protocol I came across several ways in which it was described.
One of the approach is described here: - https://www.youtube.com/watch?v=mV9hXEFUB6A
A second approach using discrete logarithmic is described her... |
2018000010 - YjRxEBukq
Encrypted
O6at6Op6sGcAfLoBPhx8Xm89qWEZcw2jkmIxmqM27wAd0V1fWtuVmh9ofPX5n803Q7mnaWsWXRq2TA+1vUbj+TB62jJXNGhJPh17chGPTC3hTKVnItlpHSotwneieheRNUC0M/+zXyu8Ag8iQxP/NSFY2QO7vXwK/qyUJqqtLJsqNXVBBCzy4vb2nq2YA/mbxzTgcVSTSiF5O2CuQ7QDvA2J3G/+J+jZheNMsjmaZQShi7rjaXwdWuZx/9nb06XgHyBZab0UlqVJB8i1FMSh1cbGmiQCDw... |
I am implementing XTS-AES mode in NIST SP800-38E, But I didn't find test vectors about it.
Who can help me?
|
SIKE involves a Diffie-Hellman like construction using isogenies between elliptic curves. Is it possible to express it as an instance of Diffie-Hellman? I.e. what is the underlying group if so, and further, why wouldn't Shor's algorithm apply and render it vulnerable?
|
What Android API's can be used a practical sources of entropy ?
Given the requirement of sourcing entropy on the phone for purposes of seeding a PRNG, what are good options ?
Edit:
I have a hard external requirement to periodically supplement the entropy of the RNG, which in the case of SecureRandom, I will do by calli... |
Why can't uncomputable functions be adapted to serve as theoretically perfect one-way functions? This has been bugging me for years, and I've never been able to track down an explanation of why it wouldn't work.
There are many possible variations on the same general theme; the one that seems most straightforward to me ... |
I have tried out an encryption method, in which I swap bits in the text.
The text length is N bit, then I generate several random number pairs in the range 0..N-1, as [n,k] pairs. After that, I swap the n-th and k-th bits in the message, if they are different, of course. After several swaps the message becomes unreadab... |
Usually the sort of trapdoors which are talked about are designed such as to make the computation intractable for one party and tractable for the other.
But what if one party merely has a big advantage in computation over the other? Can you use it to create a construct in cryptography?
For example, suppose you have a w... |
Some papers count the number of the fixed points in the RSA encryption algorithm. They're a minimum of 9 and the real number depends on the smoothness of primes $p$ and $q$.
It very unlikely that a real plaintext is one among those fixed points.
One of those fixed point message is the message $m=1$, indeed: $1^e \equiv... |
I have a doubt regarding the definition of (static) semi-honest adversaries. In this tutorial I read:
Such an adversary controls one of the parties (statically, and so at the onset
of the computation) and follows the protocol specification exactly. However, it may try to learn
more information than allowed by look... |
There's a collision-resistant hash function $H$.
Given $x$, how hard would it be to find a set $a[i]$ such that:
$H(a[1]) \oplus H(a[1]) \oplus \cdots \oplus H(a[N]) = H(x)$
whereas none of $a[i]$ equals to $x$?
|
I'd like to use the Itoh-Tsujii algorithm for a dynamic substitution table, but I do not get the following line:
$$r\ \gets\ (p^m - 1)\,/\,(p - 1)$$
And why can $r$ be used to calculate the multiplicative innverse of a number in a Galois field containing $p^m$ elements by calculating it in the field $GF(p)$ and use thi... |
After looking at this bitcoin-related ECIES repo I believe the intention is that, at least in some cases, the recipient would know that the message is intended for them and use an secp256k1 public key that they know belongs to you to perform the key derivation process on their end. Even if that is not their intent, I ... |
Rivest and Kalisky's RSA problem considers various notions on security of the RSA One-Way Trapdoor Permutation. They do it only from the perspective of a single user.
What's the state of the art in the multi-users RSA problem and its reduction to other problems?
Assume a public directory of $u$ public keys $(N_i,e_i)$... |
I am currently reading a paper from CRYPTO, which is a top conference in cryptology. In the paper, the authors use a thereom like the one given below without a rigorous proof:
the probability that $Rank(A)\neq n$ is upper bounded by $1/p$, where $p$ is a prime, $n$ is an integer, $\mathbb{Z}_p$ is a ring of integers mo... |
When is a cryptosystem (like RSA) or its algorithm for keygeneration, encryption and decryption of messages considered efficient? Is there some bound in complexity which splits both efficient and not efficient cryptosystems or algorithms of cryptosystems?
|
throughout the question I will talk about sequences in bipolar alphabet, meaning, over {1,-1}.
I have read in the book Shift Register Sequences by Solomon W. Golomb that sequences with the period of $2^n$ can be created by pure cycling register of order n ($PCR_n $). Moreover, it gives some properties about the autocor... |
In a computational setting it is clear that we cannot do computation over the real numbers, as we couldn't generate, much less store them, so we have to instead deal with numbers that approximate them. If a cryptosystem has some component defined over the real numbers, or uses "real valued" functions such as $\sin$, t... |
Often when I stumble across something interesting, I lose myself in the most overkill ways of implementing it. Today it was full disk encryption: I'm about to move to QubesOS, and I want to secure my data as much as possible, to a point where unauthorized viewing or even touching of the data becomes overly hard/nearly ... |
ERROR: type should be string, got "https://www.reddit.com/r/crypto/comments/fnku50/nonce_reuse_vs_iv_reuse/\n\nNonce reuse with the same key is catastrophic to security. The same premise holds for \n initialization vectors. If the key is rekeyed, then nonce or IV reuse is not catastrophic. \n It's the nonce/IV+key pair that you need to pay attention to.\n\nIn the preceding post, a user supports my belief that a group shared symmetric key that doesn't rotate may be used to support a large number of encrypted group-shared messages, which is to say in the following formulae that a single, static instance of $SymmetricKey$ may be securely used, so long as each and every instance of $nonce$ (unless denoted $nonce_n$, to denote a bitwise equivalence across the subscript equivalent appearances) is a unique, randomly generated 128 bit value (and specifically using the counter in $chacha$ for 64 bits of it, and the $64$ bit nonce parameter for the other 64 bits of it). Also, generating a 128 bit MAC with the $HMAC()$ function, as can be done securely with $HMAC-MD5$ according to:\nIs HMAC-MD5 considered secure for authenticating encrypted data?\n\nYes, there are currently no known attacks on HMAC-MD5. \n\nSo, a message,\n$M_n$ = $ChaCha(SymmetricKey, Nonce)$ \nsupports an $n$ value of securely encrypted messages equivalent to the nonce space (minus one, if starting at zero). With ChaCha's $counter$ + $nonce$ space being, together, 2^128, that means $340,282,366,920,938,463,463,374,607,431,768,211,456$ messages can be encrypted with the single, static symmetric key. However, it must be noted that collisions will actually almost certainly start breaking the security of the system prior to the theoretical maximum number of securely encrypted messages, it's just that practical security will be maintained for an enormous volume of messages prior to collisions being likely ($170,141,183,460,469,231,731,687,303,715,884,105,728$ messages generated before a 50% probability of a 128 bit nonce collision being randomly generated, I think). Each $M_n$ will also have its own -- presumably enormous -- maximum byte count.\nIs it secure to use the same shared symmetric key, from the example as previously described, for unlinkable contact signaling, by inputting it into an HMAC function (as the symmetric key, with the other argument, then, a public nonce)? By contact signaling I mean using (with |, as often it does, denoting concatenation, rather than bitwise or). \n$H_n$ = $HMAC(SymmetricKey, Nonce_n)$\n$ContactSignal$ = $H_n$ | $Nonce_n$ \nSuch that messages encrypted by, say, \n$chacha(SymmetricKey, Nonce)$ \ncan be tested for intent to be processed by a group member who has the symmetric key, by the group member calculating: \n$HMAC(SymmetricKey, Nonce)$ \nafter receiving the public $Nonce_n$, and as a membership test for the secret SymmetricKey on the unlinkable contact signal, taking \n$H_n$ = $HMAC(SymmetricKey, Nonce_n)$\nand computing,\n${constComp}(H_n, HMAC(SymmetricKey, Nonce_n))$ \nin order to determine from a smaller index downloaded by everyone whether the associated (potentially much larger) message was intended for members of one's group (as can be reported by the constant time string comparison function $constComp()$ returning 1 to denote \"true\" in response to the membership question regarding the group shared secret symmetric key). \nThe potential issue I can see is from using a single shared symmetric key in both HMAC and a symmetric mode of operation with a nonce with a symmetric algorithm like chacha. The thing to keep in mind is that it is an atypical use of HMAC where messages -- potentially being many kilobytes or more -- are labeled as being for members of a group, with various unlinkability and other security guarantees being met. So, with the HMAC as used for unlinkable contact signaling, the primary goal is to allow members of the group to signal to each other when a larger message, by its smaller cryptographically secure index, is identifiable to group members as intended for them, without letting an attacker outside of the group link such messages together as belonging to a single group. \n" |
Assume Alice and Bob both separately come into possession of the same randomly generated 256 bit secret key.
Alice has Bob's public ECDSA key.
Alice wants to verify that Bob has possession of the 256 bit secret key.
Bob signs the 256 bit secret key and then stores this signature on a server.
Alice then verifies that Bo... |
Can an SHA-256 plaintext be malleable? For example:
Given $y = hash(x)$ , can an attacker find $z$ so that $z = hash(f(x))$. Here $f()$ might be the addition of a suffix to the message, an XOR operation, or any other mathematical transformation.
I know there is one known malleability weakness shared in Merkle-Damgard c... |
Consider the ring $R_q = \mathbb{Z}_q[X]/(X^d+1)$, the Ring-Learning-With-Error assumption states that the distribution of $(a, as + e)$ is close to uniformly random, where $s \in R_q$, $a$ is uniform in $R_q$ and $e$ has small norm (say $\|e\|_\infty \leq \beta$).
How pseudorandom is $(a+e', as+e'')$, where $e', e''... |
I know that there is a general result stating that any function can be computed in an MPC protocol. In this question, I'm interested in understanding the practicality of MPC protocols.
Are any theoretical results regarding the feasibility of MPC protocols? To be more specific, are there any functions that are infeasib... |
I am new to this concept of zero knewledge proofs, from what I understand it is not a mathematical general equation like RSA or ECC cryptography has, but its a methodology that varies from problem to problem.
What I want to do is to let a prover prove that his public key belongs and exists in a known public bulletin bo... |
The Wikipedia article on Disk Encryption Theory mentions this
a powerful adversary can modify an unused sector on the disk and then request its decryption.
I understand that an adversary is capable of modifying an unused sector, but can anyone explain how they would be able to request its decryption?
|
I'm a bit new to the cryptography field (completely new), and could really use your guidance.
Please, correct my understanding, as defined by the following statements.
The Argon2 Hash Generator has won the Password Hashing Competition, and is therefore believed to be the best solution at the moment for safely hashing... |
Question
I am extremely new to cryptography and AES and so I am not confident that I did this question orrectly. Please can you check my answers and let me know if anything jumps out as incorrect, Thank you!
Here is the Question:
Consider the key expansion procedure for AES encryption.
The given four subkeys are:
w4 =... |
RSA keys are notoriously blobs. I'm looking to make something more human readable.
I want to take the mathematical operation and convert it to a number that can be easily expressed as a series of words against a set indexed wordlist.
The first step is converting the RSA.key file to a binary number. Next step is subtra... |
In the context of secure multi-party computation protocols, when a dishonest majority is considered, it is assumed the worst case scenario, i.e., all the corrupted parties are controlled by the same adversary.
Having all the corrupted parties controlled by the same adversary is the worst case scenario since it means th... |
I try to use Elliptic-curve cryptography system first time really, so i confused about it.
this is the scenario:
First i want to hash a message then, sign it. i use javascript so i try to follow this code.
The reason of my confused is why this code use 'sha256' algorithm to hash a message? is there any reason for that... |
In schnorr identification protocol, a prover needs to choose a random,let's say $r$ at the beginning, then commit to this randomness as $g^r\bmod p$. When we say "commit", does it really mean we are using a commitment scheme?
if so, a commitment scheme needs to have binding and hiding properties. In this case I can get... |
Kreyvium employs 128-bit key and 128-bit IV. By a single initialization procedure using a key/IV pair, how many keystreams can be generated?
|
Looking up information about 5G and the previous 3GPP standards, why have they been incorporating non-conventional algorithms into the standards? For example, AES has been considered secure for ages and there is lots of support for hardware acceleration, but what was the rationale behind, for example, adding ZUC and SN... |
The key can unlock the ciphertext in polytime (measured in length of key + cipher).
a. Given the key + ciphertext as input, if you cannot unlock it in some fixed number of steps (relative to input size (key + cipher)) you reject.
b. No one can break your cipher in under this ^ number of steps without a valid key (not ... |
Recall that, by definition, on input a query $q$, a random oracle $H$ can output a fresh random string as its response $H(q)$ (if this query has not been seen before).
My understanding. A homomorphic hash $HH$ allows someone to compute $HH(a + b)$ from two hash values $HH(a)$ and $HH(b)$. Since $HH(a + b)$ is dependent... |
Let us assume that Alice and Bob are playing a game. Alice first commits her value chosen from $\{0,1\}$ via Pedersen commitment scheme and sends the commitment to Bob. Then Bob sends his value chosen from $\{0,1\}$ to Alice. Finally, Alice opens this commitment to Bob. If Alice's value is equal to Bob's, then Alice wi... |
The "Algorithmic Foundations of Differential Privacy" book (DOI: 10.1561/0400000042) introduces formally the "universe" and "database" on page 17 roughly as:
$\mathcal{X}$ is a universe
databases $x$ are collections of records from the universe
For convenience, we use histogram of types from the universe $\mathcal{X}$... |
I've been wondering for a long time about programs that could potentially break fully homomorphic encryption schemes:
//Given input vector A
if(A[0] == A[1])
while(true) ; // or do any time consuming calculation
else
return <anything>;
System could execute such programs and using timing methods determine informa... |
In a RLWE setting where you are given a secret key $s$ and an associated public key $pk = (p_0,p_1) = (-(p_1s+e),p_1)$, is it possible/easy to forge a new secret key $s'$ such that $p_0+p_1s'$ has a small infinity norm? In other words is it possible/easy to forge a different secret key generating similar public keys?
|
I'm attempting to learn encryption and have a very basic grasp of it, but I have questions.
First, I'm looking to use AES.
I want to take text, encrypt it with AES using a variable-length key, and return encrypted text. Then I'd like to pass in the encrypted text, the key, and get the original text back. In other wor... |
This is a theoretical question, to improve my understanding of hash functions. Hash functions have a one-wayness such that they are protected from the first preimage attack. From my understanding, if $H(X)=Y$, knowing $Y$, I should not be able to know $X$ is the fundamental behind the first preimage attack.
The questio... |
I'm just trying to understand how a Weak/broken hash can break RSA-PSS or any other signature/encryption that uses it.
I know you can forge another message that has the same hash but that message probably doesn't mean anything, sending random numbers isn't really worth the trouble.
|
I am coming up-to-speed on OpenSSL certificates. In all of my research I see where "data" is hashed to create a hash value that is used as the basis for a certificate's digital signature. This hash value is encrypted using the sender's private key, at which point it becomes the certificate's digital signature.
What "d... |
After reading different techniques to achieve authenticated key-agreement (X3DH, HMQV, Asynchronous Ratcheting tree, An efficient protocol for authenticated key agreement, I understood that all these approaches enforce implicit authentication --Alice is sure that only a specifically identified Bob can derive the same ... |
Suppose given fix values $a,b$, how difficult to find a pair of sha256 pre-images $x_1,x_2$ such that $H(x_2)=aH(x_1)+b$? How difficult to find 4 hash pre-images $x_1,x_2,x_3,x_4$ such that $\dfrac{H(x_2)-a}{H(x_1)+b}=\dfrac{H(x_3)-a}{H(x_4)+b}$?
|
I don't understand how it works. I only found explanations about the key exchange, but what about the actual encryption and decryption?
Do you use the session key $K$ with a symmetric algorithm?
Do you use something similar to RSA like $m^d \bmod n$?
|
I'm looking at tweetnacl, its crypto_sign_keypair, crypto_sign, and crypto_sign_open functions modify and use the output of crypto_hash in various ways.
I would like to swap crypto_hash for another hash function with the same length output. While I would normally avoid doing something like this due to lack of knowledge... |
Imagine someone knows a set of $n$ ECC public keys $\mathcal R = \{K_1, K_2, ... K_n\}$ but they don't know the corresponding private keys $k_1$, $k_2$ ... $k_n$. They wish to create a public key $sG$ such that anyone with a private key $k_i$ belonging to a $K_i \in \mathcal R$ can retrieve/calculate $s$. This scheme s... |
I have seen that in MPC multiple models in different dimensions can be envisioned, like asynchronous vs synchronous networks, access to broadcast channels, and so on. However, a particularly interesting dimension is whether point-wise private and authenticated channels are available. In this direction, I have seen pape... |
Given an opening $(m, r)$ of a Pedersen commitment $c = g^m h^r$, where $g, h$ are the generators of a group $G$ with prime order $q$ (public), a PPT prover wants to prove to a verifier the opening of $c$ in zero-knowledge. Let us see the following procedure. Here we note that the DLP in $G$ is hard.
Prover randomly p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.