instruction stringlengths 32 27.2k |
|---|
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... |
For regular traffic in mesh network (between Internet of Thing devices) customer decided to use one of two options:
DTLS PSK ciphersuite - DTLS based on pre-shared symmetric key
or direct use of AES - customer wants to minimize traffic between sleepy devices (battery should be alive for several months)
Questions:
Wh... |
The post-quantum lattice-based cryptosystem CRYSTALS-KYBER which has made it to the second round of NIST PQC includes two implementations: 1) a baseline reference implementation in C and 2) an optimized AVX2 implementation. The code repository can be found here.
The AVX2 implementation includes some precomputed constan... |
I am currently reading a paper titled "Another view of division property" and encountered the terms "Affine subspace" and "Linear subspace". I am new to the field and having some difficulties to understand the topics. Can anyone describeb or give any reference about it so that I can read that.
|
Is CRC32C (any) better than CRC32(B)?
I read that CRC32C (alias Castagnoli) is better than CRC32 (sometimes referred as CRC32B) in detecting errors but what that exactly means and how to check it didn't mention. I know they use different polynomial but that alone doesn't explain that. So I started to search a bit more ... |
Does the adversary know the random seed s? If he does not, isn't one possible construction simply the random seed itself? if the output needs to be bigger than random seed s cant I just add a hardcore bit to the random seed s? Also, regardless of the number of leading bits of the output that are revealed (even n-1 wher... |
In digital signature The encrypted message is signed by the sender private key and verify using sender public key. The encrypted message is encrypted with another public private key pair which the receiver will have a way to compute those out
Instead of ds, cant the sender just encrypt that encrypted message with his... |
I am currently attending a IT-Security course at the Tel Aviv University and I stuck with the an assignment task.
Please DO NOT post the solution if you know it. But I would be very grateful for any hint that leads me to the correct result.
Task:
"Eve has managed to intercept the following messages, encrypted by Alice ... |
I'm trying to protect a key using a PIN code. However, if the user somehow loses the PIN code, I'd like to be able to allow recovery using a PUK (similar behaviour as for instance your SIM card on your phone). How would I go about implementing this, whilst storing as little private data as possible? Are there crypto sc... |
Is it possible to re-randomize a ciphertext with the Cramer-Shoup System? I have some Cramer-Shoup ciphertexts and i want to re-randomize them, so they look different and are unlinkable to there previous form, but still can be decrypted with the original secret-key. Is this possible?
And if it is, would it still be pos... |
I originally posted this question in the math stackexchange, but I then thought that it might be more appropriate in this section. I am currently studying Shamir's secret sharing scheme, which uses Lagrange's interpolation formula to reconstruct a key $K$ from a certain number of shares. In Shamir's scheme, during key ... |
Some background information:
In contract bridge, there are 0xAD55E315634DDA658BF49200 (just under 2^96) possible bridge deals. Since the 1990s, bridge deals for major tournaments were generated on PCs and dealt using dealing machines. Initially, the deals were generated using a PRNG with very low periods with dubious s... |
Does it exist? Specifically using Shamir secret sharing based MPC and looking for a (non-)interactive way to prove that the secret value is valid. A value is valid if it is part of a set for example $[0,1] \in \mathbb Z $ or non-negative, or at least that it is the secret key of some other value. For example if $s$ is ... |
I was wondering which block encryption mode or modes will be most appropriate for transport of random values of one-block length. Block length could be of size 256 bytes and transport is from person to person, direct message.
This can be a password or an username. Certainly not the video streaming.
|
We know that DES has key length that is too short to defend brute-force attack. One idea to
improve DES was to encrypt a message using DES twice with two different keys. Let E be the
encryption algorithm of DES and k1, k2 be two DES keys. Such a double DES encryption performs
like
c = E(k2; E(k1; m))
We might hope now ... |
I need to ask this, as I am not allowed to comment and don't quite understand an existing answer because I don't have a cryptography background and never looked into how ECC works.
Why can't you encrypt a message with a public key generated via ECC?
How can two peers Alice and Bob agree on shared secret (symmetric key... |
I am trying to understand better the hard-core bit property from the RSA assumption. The paper by Håstad and Nåslund shows that every single bit is hard-core. By the result itself, two or more bits can be correlated, but marginally a single bit is pseudorandom.
Is it possible to extend the result to the parity of an ar... |
This is a curiosity. I don't see any value (yet) of using this.
Is it possible to have a signature that signs itself?
What I mean is that when you send a signed message, you send something like $(message \mathbin\| signature)$, where $signature = Sign(message)$. Is there a signature scheme in which $signature = Sign(me... |
I'm currently working on a Python Program which aim to return the secret key rate of a specific
Quantum Key Distribution protocol (Brassard, Benett and Mermin 1992 i.e. BBM92). A colleague will provide me with the result of this protocol.
However, I am still looking for the right formalism to express this secure key r... |
This question is purely hypothetical.
The idea is to generate variable sized hashes (multiple AES block sizes) like so:
encrypt plain text
encrypt plain text + cipher text from 1.
XOR cipher text blocks over hash blocks.
Step 1 and 2 can be programmatically done as one step.
Step 2 causes at least the second half of ... |
I recently found the GitHub repository used to make the measurements in the AES-GCM-SIV paper where they implement polynomial hashing using POLYVAL.
This means in this context to compute the usual $\tau=\sum_{i=0}^nm_iH^{n-i}$ for 16-byte message blocks $m_i$ and a 128-bit key $H$ in the usual way as $H_{i+1}=(m_i+H_i)... |
What is the reason that in the HKDF standard (RFC5869), in the "extract" phase, the 'salt" parameter is instantiated as HMAC key, and the secret keying material 'IKM' is instantiated as HMAC input data (so that the extract phase equation is PRK=HMAC(salt, IKM))? Especially, the RFC says that the salt, which plays the r... |
If i have say 64 bytes, can i XOR those bytes with another 64 random bytes, and have two new arrays, where both are needed to reconstruct the first?
Intuetively i need some symmetric encryption like AES, but i cant figure out how the XOR above can be attacked. Does the content matter?
|
AES uses the following polynomial with coefficients in GF(2^8):
a(x) = {03}x^3 + {01}x^2 + {01}x + {02}
The inverse of this polynomial mod x^4 + 1 is:
a'(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}
But how do you calculate the inverse of a polynomial with coefficients in GF(2^8)? I have found a partial worked example here,... |
In New Security Results on Encrypted Key Exchange, there is a Game 2 as follows:
Game $G_{2}$: For an easier analysis in the following, we cancel games in which some (unlikely) collisions appear:
collisions on the partial transcripts $((A, X^{*}), (S, Y))$. Note that transcripts involve at least one honest party, and ... |
In Simple Password-Based Encrypted Key Exchange Protocols, the authors proposed a hard assumption as follows.
Experiment $Exp^{pccdh}_{\mathbb{G}, n}(\mathcal{A}, M, N, X^{'}, \mathcal{P})$
$(Y^{'}, st)\leftarrow \mathcal{A}(find, M, N, X^{'}, \mathcal{P})$
$k \stackrel{R}{\leftarrow} \{1, \cdot\cdot\cdot, n\}$; $r \le... |
Can there be a way to form a shared secret key between two nodes of a Wireless Sensor Network who are more than one hop away, simply on the basis of their IDs?
|
At
https://corona-tracing.org/ and
https://www.cryptool.org/en/cto-highlights/corona-tracing
an easy to understand way was presented how such contact tracing apps work from a cryptographical point of view as it lets users simulate the process.
The "Background" tab at the 2nd webpage describes the differences in the ... |
The Niederreiter cryptosystem is a public key cryptosystem using Goppa code. Unfortunately it it is insecure unless it is a binary code. So I thought I could insert random linear codes into randomly selected columns of the public key in the parity check matrix $H'=SHP$ and $H'\,^t$ to make it random. Here $H'$ is byte ... |
What is the recommended key length for DKIM? I'm currently thinking about a 1024-bit key vs. a 2048-bit one.
From the crypto point of view for RSA, 2048 or 4096 bits is clearly recommended--no discussion on that point. Having glanced over various posts, it seems there may be some trouble at the mail or DNS level with k... |
Probably this is very naive question, based on lack of understanding but I was watching a video from Andreas M. Antonopoulos about blockchain, bitcoin and consensus algorithms and he asked for the SHA-256 output of the string Hello!. A guy told him the first few characters, and being Windows/C# dev I decided just for f... |
Is it possible that if a plaintext is encrypted first with a key, $n_1$, and then this ciphertext is again encrypted using the same algorithm but a different key, $n_2$ that the resulting ciphertext could be converted back to the original plaintext with a single key?
For example:
keys $n_1$, $n_2$, and $n_3$
$p_1$ = "p... |
There's a black box that's basically SHA-1, except that the constants (h0, h1,...,h4) are secret. We can pass it arbitrary inputs and get the corresponding outputs.
Given this, is it possible to recover the constants used?
|
Assume that a one-way Hash function is secure and the best way to attack it is by using the brute force attack. It produces an $m$-bit output. Finding a message that hashes to a given hash value would require hashing $2^m$ random messages. Finding two messages that hash to the same value would only require hashing $2^{... |
I have a YubiKey 4 and want to use it to store a private key that should never enter a computer system's memory. After importing the key to the device I understand it never leaves it. Do the signing/decryption operations that take place for plain text using the private key happen on the device's hardware? Also, if thi... |
I'm trying to understand the purpose of tag in AEAD. As far as I can understand, the resulting ciphertext will be slightly longer than the plaintext due to the authentication tag. Will it reduce the security of AEAD if the authentication tag is embedded to the ciphertext(e.g. by performing XOR/modular addition to the l... |
I am looking for asymmetric encryption using SECP256K1. But all over the internet, I see that it also requires AES encryption. Instead of generating an AES secret key, is it possible to encrypt using the public key alone?
|
Is there an asymmetric encryption scheme, or public-key encryption, where multiple recipients can access the data, but in order for one of the recipients to leak the key to the data, they would need to share their private key?
I believe this to be true for most one-to-one public key encryption methods (correct me if I ... |
Was any specific rationale given on why none of the sponge-based AEAD algorithms (specifically NORX, Keyak, and Ketje) of the 3rd round candidates of the CAESAR competition made it to the final portfolio? If so, where can I find additional details?
|
Assume you have some source of $\mathsf{Bern}(1/2)$'s (probably some CSPRNG in practice). What is generally done to sample from $\mathsf{Unif}([d])$ in a side-channel resistant way (assuming $d$ isn't a power of 2)?
For the power of 2 case, it seems clear that you can generate $t = \log_2(d)$ random bits and interpret ... |
I'm following along with my book. Here is an example of a plaintext attack from it:
It is known that:
plaintext = 'friday'
ciphertext= 'pqcfku'
$m$ = 2
We will use this to form the following matrix equation:
$$ C = PK $$
$$\pmatrix{5 & 16 \\ 2 & 5} = \pmatrix{5 & 17 \\ 8 & 3} K $$
Where $K$ is the key matrix. Note th... |
Chacha20 is essentially a hash function that maps 512-bit strings to other 512-bit strings which are in turn xored with the plaintext to create the ciphertext. Of the 512-bit input 128-bit are used for the "expand 32-byte k" constant, 256-bit are used for the key, 64-bit are used for the nonce and the final 64-bit are ... |
Background:
Let's discussed based on published symmetric white-box crypto only, such as Chow's white-box AES.
I only know basic concepts/objectives of homomorphic encryption, such as PHE and FHE. Bring ciphertext into calculation instead of decryption.
Without proper implementation design for real applications, white... |
I am trying to understand the SIMD implementation of TAU function of SM4 which is as follows:
#define SM4_TAU_L1 { \
y = _mm_and_si128(x, c0f); \
y = _mm_shuffle_epi8(m1l, y); \
x = _mm_srli_epi64(x, 4); \
x = _mm_and_si128(x, c0f); \
x = _mm_shuffle... |
If I take a picture with my beloved camera, the RAW file can be put into a blockchain, and thus it will have a unique hash.
If that unique hash is ever spotted anywhere we know it's a copy of my photo.
But if someone wants to steal my photo, they could just change a tiny bit of information in the RAW file, and it would... |
Can someone explain what is a pairing-free group ? There is encryption schemes, for example 1, that qualify there proposed construction as pairing-free group. However, they use bilinear group in the setup phase. Therefore, how we can qualify a work as a pairing-free based scheme.
|
Imagine you are transported back to ~1940. What is the best (i.e. most secure, but technologically feasible) encryption you can think of for widespread (i.e. military) use? How would you implement it?
|
I'm actually searching some particular primitive compatible with Groth-Sahai commitment.
I would like to know a signature scheme (on group elements), such that there exists an algorithm $\mathtt{SigCom}$ such that it takes as input the commitment key $\mathtt{ck}$ , the signing key $\mathtt{sk}$ and a commitment $\math... |
Imagine that you are given a point $P$ so that $P=a\times G$. If you have no knowledge of $a$ is that possible to calculate point $I$ so that $I$ is the modular inverse of $P$?
We know that over prime fields each member has a modular inverse, which means for $a\in \Bbb F_n$ there exists $x$ so that $ax\equiv 1\pmod n$... |
What is Gimli, and how does XooDoo compare to symmetric ciphers such as AES or ChaCha?
I am looking at this library, called charm.
Interesting paper here.
I also note the paper on XooDoo here.
There were no questions on XooDoo on this site, so I'm really interested to have peoples thoughts.
How do these 'permutation' b... |
I would like to hash numbers less than 1000000000, so generally they could be stored on 30 bits. The aim is to obtain numbers that are not reversible, so my initial plan was to use SHA256 (with some salt). However, I would like to keep the output as short as possible, but I want to be sure that there are no collisions.... |
I want to know how to be sure that each prime number can be written in the form $6k±1$. How I can find the prime number that exists after a composite number with this property of prime or other properties of it?
|
It's well-known that the RC4 keystream has significant biases that become less prominent later in the keystream. The most severe bias is in the second byte, which has a 128-1 bias towards zero. Other biases remain, and it's typically recommended to drop between 768 and 3072 bytes of the keystream.
Will dropping one mor... |
Can I create a simple commitment scheme using a secure hash function?
If so, is concatenation with a random secret enough to preserve hiding? (i.e. $C = H( random\_string || message)$)
Thank you
|
I'm trying to implement a protocol in which two parties generate a private/public keypair, where both know the public key, but each party has only one part of the private key and cannot derive the full private key without having the other part.
Can this be achieved by using existing distributed key generation protocols... |
My professor put this on the slides but gave us very little context. It is meant to be an overview of how it works at a high level.
I have a programming background and I get the general idea of attacks like Chosen Plaintext Attack. Be warned I am terrible at maths!
Request: I hope someone can walk through what this is... |
Given an RNG and a PRNG.
We define RNG(k) to mean that the RNG produces k random bits.
We define PRNG(k, seed) to mean that the PRNG uses seed to produce k pseudo-random bits.
Case 1: - Generate n random bits using just the RNG.
bits = RNG(n)
Case 2: - Generate n random bits using the PRNG, and using the RNG as a seed
... |
What is the purpose of SDES algorithm? (Session Description Protocol Security Descriptions)
What are the problems in the way it exchanges keys?
I have tried to search about these quastions but i couldn't find any understandable reasons.
Please help me.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.