instruction stringlengths 32 27.2k |
|---|
Assume $c$ is a secret number in $Z_p$ and $c = a + b$. Alice has $a$ and Bob has $b$. Is there any methods to convert the modulo $p$ to some $q$, ($c<q$, $c<p$)? That is to say, $c = a' + b'$ in $Z_q$ and $a'$, $b'$ are known by Alice and Bob respectively.
|
Is is possible to split a private key into shards and distribute the shards to Key Holders such that (1) k of n key shards are required to recover the private key and (2) the private key holder does not know what the key shards are?
I am thinking about a situation where a number of Key Holders are trusted to keep their... |
The Fiat-Shamir heuristic is assumed to substitute public-coin messages from the verifier by hashes of the prover's messages until this point, i.e.: $$H(\alpha_1) = \beta_1, \\ H(\alpha_1, \alpha_2) = \beta_2,\\H(\alpha_1, \alpha_2, \alpha_3) = \beta_3,\\\vdots$$ where the $\alpha_i$'s are the prover's messages.
I unde... |
Consider a simple Merkle Tree with leaves alice +100 and bob +50. Using the SHA256 hash algorithm, the digest of the respective strings are:
# alice +100
dc2cac4a8aaeccc0199eeb77df68b22eaa6e319d3f2b425d078dbd73419e28ac
# bob +50
7e15e5bc1b84f458db7ced4df762ba70204f19e3a613738756f9b00653f0aee1
Being a hash function, S... |
[ECDSA][ECDH]
Due to Insufficient Entropy in Operating system of MCU
=> Could not generate random number by using BN_rand() function
(security strength fail, and RAND_bytes fail)
Below is my solution:
An external noise source file from TRNG
Eg: (80 bits), this data passed all tests
Connect (1) to OpenSSL by Engine
... |
In many sources, included Wikipedia, we read:
Any pool that achieves 51% hashing power can effectively overturn network transactions, resulting in double-spending.
My question is: Why do we talk about 51% attack?
If my understanding is correct, we could also say 50.1% attack or 50.01% attack.
More simply, wouldn't it... |
when reading theoretical materials, it is often seen that "a common input 1^n..." what does it mean? Are there any similar questions and answers previously in StackExchange?
|
I read the Blake2x paper: https://www.blake2.net/blake2x.pdf
It says Blake2x can be used to build a "DRBG" (CSPRNG): https://csrc.nist.gov/glossary/term/deterministic_random_bit_generator
"An algorithm that produces a sequence of bits that are uniquely determined from an initial value called a seed. The output of the D... |
In my home, I have a coin. I can use that coin to generate random bits. These bits are mostly secure unless someone is watching me flip it. They're also only random-ish... maybe I'm a "bad flipper"?
I also have a computer. I can use it to generate bits that are sort of random, but not really. These are secure if y... |
Taking into account the vast literature of secure multiparty computation and secret sharing, there is a specific assumption that is made for the calculation of a rule function. The latter function takes as inputs the individual secrets of the agents and gives as outputs individual instructions based on the rule that th... |
Is there a no-dealer secret sharing scheme that allows a threshold $k$ of $n$ parties (where $k<n$) to collaborate to reconstruct a secret, but in such a way that none of those $k$ parties are able to collaborate anonymously to reconstruct it?
Imagine a scenario where a group of people agree to keep a secret encrypted ... |
Is the claim "If there is an efficient algorithm that solves SIS, then there is an efficient algorithm that solves decisional LWE" is sufficient?
or,
Is the claim above is equivalent to the fact that an instance of SIS is a polynomial-time reduction to an instance of decisional LWE?
Please suggest an answer with suitab... |
Is there a reason why we can't combine private key MAC with digital signature to get a hybrid authentication scheme?
Is it because of the computational assumptions that digital signatures have?
Edit: (Clarification)
I don't intend to combine them, it's a problem on a past final that I am doing as practice but I don't k... |
I've recently been learning about Confusion and diffusion related to encryption functions. For the most part I get the gist of what they are but I was wondering if there are any functions with Poor confusion
|
In the context of the NIST PQC standardization process, NIST has defined the following five security categories:
Any attack that breaks the relevant security definition must require computational resources comparable to or greater than those required for key search on a block cipher with a 128-bit key (e.g. AES128)
An... |
What is the difference between the classic secret sharing schemes that are used in the protocols of Ben-or and Rabin, Ben-Or, M., Goldwasser, S., Wigderson (that is the Shamir's secret sharing scheme) with the homomorphic secret sharing schemes? Could anybody provide a paradigm? Can we use a homomorphic secret sharing... |
I understand that during a brute force attack on a cryptosystem, an attacker is left with many, many, junk files, some which are partially readable (depending on the crypto algorithm used), and 1 which produces completely readable plaintext. A human must then search through these junk files and pick out the one that ha... |
Given the Keccak-f[1600] permutation I am interested in the following property: What bits in the output are influenced by what bits of the input? That is, if I change for example say the second bit of the input, what bits of the output are influenced by this?
Put another way: Assume I have the first 256 bits of the out... |
I was reading how bitcoin uses sha2
I understand how sha2 works procedurally (i.e. https://qvault.io/cryptography/how-sha-2-works-step-by-step-sha-256/), but I have no clue why it works.
Steps like s0 = w[i-15] right rotate 7 xor w[i-15] right rotate 18 xor ... look completely arbitrary.
Can someone given an intuitive ... |
I would like to understand what the following notation means:
let $A$ be a polynomial-time algorithm and say $X(a,n)$ is a probability ensemble where $a\in\{0,1\}^*$ and $n\in\mathbb{N}$.
What does the notation $\Pr[A(X(a,n))=1]$ mean?
|
I'm trying to wrap my head around going from a seed to a SigningKey, and also obtaining a PrivateKey (encryption key). I'm using NaCl / libsodium.
I created the code below and the results are interesting. Turns out pk1.private_key and pk2.private_key match roughly 3% of the time. However public key matches 100%, all ar... |
I have been scratching my head for a while why TLS 1.3 does not include any encrypt-then-MAC (EtM) modes. All the previous problems in TLS have been caused by MAC then and encrypt. Whereas encrypt then MAC avoids all the issues caused by padding in the past since a receiver can verify the message integrity without havi... |
I came up with one problem that says that a $m \times m$ matrix is invertible is the same as to say that its rows are LI (linearly independent) over $\mathbb{Z_{2}}$.
First of all, I'd like to know how to prove it, in order to prove the following:
Supposing $$z_{m+i} = \sum_{j = 0}^{m-1} c_jz_{i+j} \text{ mod 2}$$
wher... |
Is there any generic construction to prove the correctness of the output of a function? In other words, is there a general way to produce a witness for the statement $y = f(x)$?
More formally, let $f: X \rightarrow Y$ be a generic function. Given $f$, is there any general way to build a witness-generating function $p: ... |
I'm looking at the following idea for using a symmetric key to encrypt multiple messages (back & forth communication between Alice & Bob). It can be summarized as follows:
Both sides agree upon a key
Both sides generate $2^n$ bits using a PRG (which I believe is seeded with the key). Since PRGs are deterministic, both... |
Let's suppose I want a 2048-bit block encryption.
I take a 512-bit hash funcion (as Blake2b), provide a counter and a key and hash the counter and so XOR the hashed value in a ciphertext block, and repeat this process more times with different counters and keys up to the fourth key (2048/4=512=bits taken by hash functi... |
WalnutDSA was a 1st-round entrant in the NIST Post-Quantum Cryptography project. It had a significant cryptanalytic break close to almost breaking the security of the cryptosystem, only survived due to the break cannot fit a bogous signature into the length field of the encoded signature.
Why was such (almost) broken c... |
Can AES be implemented in a electromechanical machine in early 20th century?
Specifically does any machine from that era
have the capability to implement byte-oriented S-Box, or to implement the optimized word-based S-Box that computes SubBytes and MixColumn in less steps?
Have the capability to carry out ShiftRows ... |
I'm using the homomorphic encryption library, HElib, to do experiments.
I tried to use bootstrapping with parameters that are not in the table provided with HElib.
But I have no idea how to choose the parameters (i.e, gen, ords and mvec) for bootstrapping.
Below is an example in HElib (examples/BGV_binary_arithmetic.cp... |
I was doing research into RSA and i read that the prime numbers need to be far apart in order to strengthen the key. Why is that?
|
I have to create a Client-Server Application using Java and I want to make the communication secure. I thought to use AES to encrypt the messages and for key exchange I make the next steps:
Client generates RSA keys and send public key to server
Server will encrypt the AES key with RSA Public key (AES key is generated... |
I'm working on an application that allows people to share different types of data with other people that are in the same group. Group limit is 16 people. Logic behind it is very similar to group chats.
This application would greatly benefit from an end-to-end encryption to encrypt some of the information. I'm currently... |
I am wondering if there are any results in literature which construct a PRNG that is proved to pass the next bit test? If so, can you state what the PRNG is and where I can find more details on it? And if not, then why not; are there any important theoretical implications what would follow from existence of such a PR... |
On a website, I would like to implement a system where users can message each other. The content of the messages should be protected against attackers that are trying to read them.
My first thought was to use a public/private key pair for each user and encrypt the private key with the password of the user. In this way,... |
I'm looking at this PDF to understand the hybrid argument: http://www.cs.columbia.edu/~tal/4261/F14/hybrid.pdf
The first few lines go as follows:
Suppose you have two oracles, or input distributions, $O_0,O_1$, and you want to prove that they're in-distinguishable, i.e. for every probabilistic, polynomial-time (PPT) d... |
This is a follow-up to this answer. The context & vocabulary used is that of a decentralized identity system.
Let $I$ be the issuer of a credential, $H$ the holder and $V$ the verifier.
In this setting, $I$ signs a credential $C$ with their private key, and hands it over to $H$ for storage, who may then present it to $... |
Given SecureRandom class is considered suitable for use in cryptography, I consider new SecureRandom() to be secure (funny term, isn't it?).
If new SecureRandom() already is secure, what would be the benefit of using SecureRandom.getInstanceStrong() instead?
Is this same kind of difference as between /dev/urandom and /... |
I'm looking at the solutions to this problem set for self study.
One of the questions is to calculate the statistical distance for the following scheme:
The message space is equal to the key space, which is all positive integers $\leq 2^\lambda$
Encryption/decryption is just addition & subtraction
and statistical di... |
I am new to Elliptic Curve Cryptography and am working on a CTF challenge that uses Elliptic Curves. Currently, I am trying to find the generator, $G$, and am given the public and private keys, $P$ and $k$, s.t. $P = [k]G$, as well as one other random point on the curve. I know the order, $n$, of the group, and I know ... |
Let's say I have a smart contract located at an address A, and another smart contract that runs tests on A located at A'. A may contain a reference to this test contract and have a function like runTests that runs A' using the bytecode of A.
My question is: is there a way to prove that A passed the test, so that the t... |
Lets say you have a order $n$ finite field which you are using to create $k$ shares for a password using Shamir Secret Sharing. Assume that the attacker gets $k-1$ shares.
Is it possible that the attacker can do brute force and find the password given that there is a way to check if a guessed password is correct or not... |
So xChaCha20 has a nonce size large enough to safely use a random nonce with the same key. Poly1305 generally uses the first block of the cipher's output to generate its nonce. For xChaCha20 it would be the block zero for poly1305 key/nonce and the rest of the data would be encrypted with block 1 and up. So if one were... |
This is a follow-up to the first comment of this answer.
A message is signed with the private key of $A$, $s_A$. We know $p_B$, the public key of $B$, but not $s_B$, their private key. Is it possible, using neither secret key, to create a ring signature that has $A$ as the signer and $B$ as a non-signer?
I've quickly r... |
For legacy reasons one of my systems doesn't have the option of using an AEAD mode, we are restricted to AES in plain CBC or CTR mode plus a MAC.
A typical task is to transfer data from one node to another while guaranteeing integrity and confidentiality. I find myself repeatedly specifying the following composition:
... |
I've read the definition of perfect secrecy as the following:
A cryptosystem has perfect secrecy if $\Pr(x | y) = \Pr(x)$, for all $x \in P$ and $y \in C$, where $P,C$ are respectively the set of plaintexts and ciphertexts.
Now suppose there are 26 keys in the Shift Cipher (SC) with probability 1/26. Then for any plain... |
The curve equation for P-256 is:
NIST P-256
y^2 = x^3-3x+41058363725152142129326129780047268409114441015993725554835256314039467401291
Below I am generating key data, including the secret key "d".
Can someone please help me:
1-Convert and plug in the 2 points below into the above equation to ensure the points lie on th... |
Suppose i already have found that $φ(n) = 240$ for $n = 900$. How can i conclude that my $n = pq$ is of type $2^2\cdot3^2\cdot5^2$?
What is $q$ and what is $p$ here?
To be more precise with my question: is it for all $n \in \Bbb N$ with only known $φ(n)$ , can i find the disassembly of $n$ to prime factors?
Edit(The ca... |
I was looking for an encryption algorithm to use with my 7zip archives and I read that there is a solution called ZipCrypto that was said to be very vulnerable.
Since I'd suppose these type of vulnerabilities aren't of the kind of those found in an Application Security context (heap-based, stack-based...) and given tha... |
Most of the time people forgot that the real aim of the adversary against encryption is accessing the message. For example, in the RSA case, we talk about the factoring of the modulus to reach the private key to reveal the encrypted messages. If proper encryption is not used then instead of factoring one can try the po... |
Let $W$ be a random $200$ bit number. How much work would it take to find a semiprime $n=p_1\cdot p_2$ such that $p_1,p_2 > 2^{50} $ and $|W-n|<2^{12}$?
More generally, let $W_b$ be a random integer with $b$ bits. How much work would it take to find a semiprime $n=p_1\cdot p_2$ such that $p_1,p_2 > \sqrt[4]{W_b} $ and ... |
LCGs have a property that when plotted in 2 or more dimensions, lines or hyperplanes will form, on which all possible outputs can be found.[2] The spectral test compares the distance between these planes; the further apart they are, the worse the generator is:
https://en.wikipedia.org/wiki/Spectral_test
We have papers ... |
My intention is not to make spam here, but I came across this project in Github: https://github.com/andrewhodel/nexor
It's an algorithm called Nexor, it promises encryption with unlimited key sizes.
The only problem is that it lacks pseudo-random permutation (PRP).
Can some advanced user or cryptanalyst tell me if it's... |
The context is iterated ciphers.
Regarding Differential and Linear Cryptanalysis, the methods seem to make a cryptanalyst able to do an educated guess on a partial subkey (e.g. bits from the last round key).
What I am struggling to grasp is how practically break a cipher with that knowledge.
Is perhaps that one could o... |
Let's assume we have a ton of users, and each user has a list of fruits they like - Those will be keywords. I want my users to be able to encode any data they store (Let's say, the location of their favorite fruit trees), as well as decode it: Therefore, I want to be able to generate a public/private key pair based on ... |
I am trying to figure out if there is a known construction of a post quantum secure EUF-CMA secure signature scheme for which the signature procedure is deterministic.
It seems that it is possible to "determinize" a randomized signature scheme which uses a bounded amount of randomness by means of a post quantum PRF: sa... |
While reading A course of Mathematical Cryptography by Baumslag et al., I have trouble understanding parts of the proof of Theorem 2.3.3, namely the necessary condition :
Let $n\in\mathbb{N}$ with $n=2^m,m\geq1$ and let $a,b\in\mathbb{Z}$ such that $f:\mathbb{Z}_n\to\mathbb{Z}_n, x\to\overline{a}x+\overline{b}$ is a li... |
Let's suppose I took a high resolution photo full of entropy and I want to convert in a key with 2048-bits of security.
Practically all the known hash algorithms have maximum 512-bits of security.
Is there a mode/scheme to generate a 2048-bit key with a hash function with its internal state/security of 512-bits (or 256... |
Fujisaki & Suzuki's Traceable Ring Signature paper, which allows for a signature by one private key out of a ring of public keys to sign, and for anyone to verify that one member of the ring signed, without disclosing which member of the ring signed, unless the same member of the ring signs two different messages under... |
I'm recently studying cryptography, and I have a task for collecting the s-boxes for AES, and then implementing that s-boxes for encrypting & decrypting, but most of the S-boxes I found are not including the inverse of it.
I know that most of it gives the calculation on how to construct the s-box and the inverse, but I... |
I searched for the algorithm of the SHA1PRNG, which is implemented in Java's SecureRandom Class. Does anyone know how this algorithm works exactly? I have not found a source where the algorithm is described in detail.
My goal is to use it in JavaScript, but I didn't found any implementation, such that I has to do it o... |
I am reading about Diffie Hellman key exchange from Real World Cryptography book and came across this
For this reason, best practice nowadays is to use RFC 7919, which defines
several groups of different sizes and security. For example, ffdhe2048 is the group
defined by the 2,048-bit prime modulus.
I want to use the ... |
Pairing notation seems to suggest that bilinear pairings could be related to Clifford Algebra (ie: Geometric Algebra); and we only have an odd choice of notation that hides this fact. For example, if EC groups $G_1$ and $G_2$ are akin to vectors, then the target group seems akin to $G_1 G_2 = G_{12} = -G_{21}$. Searc... |
I found something strange while checking the inside of the envelope data.
I had plain text "plaintextplant" - length is $15$ (include lf(0x0A))`. I made a .ber file that is encrypted by AES256 and encoded DER via:
openssl cms -encrypt -in plain -aes256 -recip certificate.pem -outform DER -out enveloped-data.ber
Then,... |
I keep searching online and asking in different cryptographic communities whether there is a similar threshold signature schema (or a close one) to what Gennaro and Goldfeder proposed for ECDSA?
Requirements for this Ed25519 threshold signature schema am looking for is:
Each party generates a key share secretly and in... |
I am currently writing a math paper regarding the importance of prime numbers in RSA encryption. I understand that generating q x p = N (where p and q are prime numbers) is simple for a computer however factoring N into its two primes is improbable within a reasonable amount of time.
As mentioned before I am addressing... |
As I studied, Salsa20/Chacha20 is basically a hash function that accepts a 64-byte input and returns a output of the same size of input.
128-bits of the input are filled with four "Nothing-up-my-sleeve numbers", 64-bits with the nonce and the other 64-bits field with counter. The rest, 256-bits, are filled with the key... |
This may be nit-picking, I’m not sure so feel free to say so.
In RSA-KEM as described e.g. in Wikipedia or this answer, we choose a secret $x : 0 \leq x < n$, and send $x^e \bmod n$ for public exponent $e$.
But isn’t this “textbook RSA”? For example, if $x^e \bmod n < n$ then it won’t wrap, and $x$ can be obtained dire... |
I am self-studying by using "Introduction to Modern Cryptography: Principles and Protocols" (2nd edition).
I am looking at the following problem.
Prove that, by redefining the key space, we may assume that $Enc$ is
deterministic without changing $Pr[C = c | M = m]$ for any $m$, $c$.
The question seems to be asking "P... |
I think from what I studied that I had the correct reasoning, but I would like a double check. Here is the thing:
Given two matrix: A and B
I calculate the hashFunction(A, B) = C
Now I calcultate the eigenvalues of B: µ and the associate vector x
Now is the following equation correct:
C * x = hashFunction(A, µ) * x = h... |
I'm trying to solve problem 2.4 in "Introduction to Modern Cryptography" (2nd edition) for self-study.
The problem asks to prove that perfect secrecy
$$
Pr[M = m | C = c] = Pr[M = m]
$$
implies
$$
Pr[Enc_k(m) = c] = Pr[Enc_k(m') = c]
$$
The solution goes as follows:
Fix two messages $m, m'$ and a ciphertext $c$ that oc... |
I am working on a project that uses ElGamal cryptography using multiplicative notation. The project is an internet voting implementation that uses the cryptosystem to encrypt the received ballots, re-encrypt and shuffle them, and then finally decrypt them. I am basing the project on this paper (https://www.usenix.org/c... |
From Stinson's book, during the demonstration of the following Theorem which says:
$H(X,Y) \leq H(X) + H(Y)$, with equality if and only if $X$ and $Y$ are independent random variables.
The author says to assume $X$ to take the values $x_i$, $i$ in the interval from 1 to m, and $Y$ to take the values $y_j$, $j$ in the... |
$y^2=x^3+9x+17$ over $\mathbb{F}_{23}$,
what is the discrete logarithm $k$ of $Q=(4,5)$ to the base $P=(16,5)$?
One (naïve) way to find k is to compute multiples of $P$ until $Q$ is found. The first few multiples of $P$ are:
$P=(16,5)$, $2P=(20,20)$, $3P=(14,14)$, $4P=(19,20)$, $5P=(13,10)$, $6P=(7,3)$, $7P=(8,7)$, $8... |
I'm reading the book The Joy of Cryptography by Mike Rosulek.
When reading Chapter 11, on the hash function, I found a very interesting exercise. Does anyone have ideas on how to prove this?
Please see the image below for full details of the question.
|
It is known that you must not reuse k in ECDSA; doing so will leak your private key. That's one of the reasons RFC6979 deterministic signatures were invented.
Now, RFC6979 sec 3.6 specifies a possibility of using additional data k' which would feed entropy to the deterministic scheme.
It suffices that the additional d... |
As part of an exercise in a cryptography course, I want to come up with a one way function for which it is "easy" to find a collision from a given OWF. To achieve this, I tried the following: given a OWF $f$ (it can be assumed to exist), construct $f'$ as follows: $$f'(x)=\begin{cases}f(y), &x=x^*\\ f(x),& \text{else} ... |
Three different versions of the Advanced Encryption Standard (AES) have been standardized, which use keys of bit length 128, 192, and 256 respectively. They also use different numbers of rounds: 10, 12, and 14 rounds respectively. But my understanding is that the three versions of AES are otherwise extremely similar.
... |
As far as I understood, in Regev's initial paper, the error distribution was first constructed as follows:
Then rounded in the following way:
Using this distribution, the reduction in the theorem below can be achieved:
I don't understand how in many applications in literature, they use the LWE problem with the usual... |
Why is $h(k,m)$ not second-preimage resistant? Let $E_k$ be a block cipher where the message space is the same as the key space.
$$h(k,m)=E_k(m\oplus k)\oplus k$$
I've been reading about second preimage resistance and attempting to try this example.
What I currently know is that given an input $m$, and therefore the ha... |
When I look at the Montgomery Ladder algorithm, I don't find anything that is specific to the Montgomery curve. We are dealing with the points all the time i.e. we are either adding two points or doubling a point. For all I know, those points can belong to any form of elliptic curve. Why is it that in many papers, it i... |
I am quite confused about the security definition of blind signature schemes in the concurrent setting. I have found a paper as follows showing that most of the previous blind signature schemes cannot satisfy unforgeability property if they are deployed in the concurrent setting.
Benhamouda, Fabrice, et al. "On the (in... |
Im playing with implementing SSLv3 in Go according to rfc6101.
I can deserialize ServerKeyExchange until ServerKeyExchange.signed_params.
The cipher suite is TLS_RSA_EXPORT_WITH_RC4_40_MD5 (0x0003).
The Certificate signature algo: 1.2.840.113549.1.1.5 (sha1WithRSAEncryption).
According to the RFC the structs should loo... |
Essentially, I am looking for a way for user A to create a signed message that user B can 1) verify user A wrote (ie using ecrecover) and 2) the content of the message can be read by user B without needing user A’s private key.
I know it is possible for user A to use asymmetric encryption to sign a message that can be ... |
I've seen some people putting their public key's (I'd suppose they refer to a PGP PK) fingerprint on powerpoints and alike so that they can be reached out to using a safe channel.
From my POV, it's obvious that there should be a way to get the original PK from the fingerprint (if there wasn't, I don't really find the p... |
I am self studying using "Introduction to Modern Cryptography (2nd edition)"
I am trying to understand how the solution to the following problem is valid:
Prove that a scheme satisfying Definition 2.5 must have $|K| \geq |M|$ without using Lemma 2.4. Specifically, let $\Pi$ be an arbitrary encryption scheme with $|K| ... |
I am trying to design a VCS like program that determines if the files are the same by comparing their MD5 hashes.
Then I read about MD5 collisions here, and I wonder if I can work around that by doing a secondary check by hashing only parts of the file if the first check led to a collision.
What are some issues with th... |
Let's say that I want to encrypt the file plain.txt. The very first step is actually to turn the contents of that file (lets say it only contains the string "Hello") into an int. I see python codes like this:
from Crypto.Util.number import bytes_to_long
with open('plain.txt', 'rb') as f:
flag = f.read()
m = bytes_... |
Suppose that we have a game with $I$ players and each of them has a private secret say $e_i$. Every player wants to share her secret with the rest of the players but in such a way that she will not be cheated. We have the following formulation
$$p_i:E_i\times Y_i\to X_i$$
where $|Y_i|\geq|E_i|$ and $p_i(\cdot,y_i)$ is ... |
I'm trying to understand how secure S is from an attacker. Let's say in an instance where they have enormous hashing power available to them, as would be the case where they own cryptocurrency mining rigs.
In other words, the attacker must not be able to find out the secret S:
S = "my secret phrase"
But the attacker ... |
I read the rfc5652, and I made enveloped data via openssl:
openssl cms -encrypt -in plain -aes256 -recip certificate.pem -outform DER -out enveloped-data.ber
Then, I check the public key.
First, here is the certificate's public key.
And, it is the enveloped data's public key.
So, I understand that enveloped data co... |
Is there a key derivation/hashing function (that has any real value) that fulfills both of these criteria:
Slow to compute the hash
Fast to verify the hash based on the input string (not given a second, existing copy of said hash)
I know in general key-derivation is used to prevent brute-forcing of passwords, but tha... |
Just started learning about RSA cryptography so forgive me if I made any mistakes or misunderstandings.
M = 20 be the message that i want to encrypt
N = 5*7 , p = 5 and q = 7
φ(N) = (5-1)(7-1) = 24
Let e = 5 as it is a coprime of 24
To encrypt the message, E = M^e mod(N)
This works out to E = 20^5mod35 , which equates ... |
Linear Congruential Generators, that class of pseudo random generators with recursive rule
$x_{n+1}\equiv a\cdot x_n +b\ \ (\mod m)$, $a,b,x_n\in Z/mZ$, $m,n\in N$
are considered inapt for use in cryptography, as the constants $a$, $b$ may by deduced from a small set of outputs $x_n$. Now, when you choose $m=p-1$ for ... |
Suppose that $m$ is a message that someone player $i$ wants to send to a network of other players $j\neq -i$. The player to prevent his message from cheating by others uses an encyrpstion scheme. Say $$g:M\times Y \to X$$
denotes a cipher where $Y$ is the key and $X$ a code that makes the message to look random. The st... |
Suppose that I want to use a "poor man" password management working as follows:
1. I choose and remember one single master password (for example "78HK+jm?329");
2a. for any bank, site, etc. that I need to access I build a password by encrypting with AES ECB the name of the bank, site, etc. (for example "bankmyne") usin... |
Diffie-Hellman can be used for key exchange, and can be used as part of an integrated encryption scheme ("DLIES"). Schnorr signatures are possible by relying only on the discrete-log problem, and without resorting to using RSA.
Since RSA implementations are more complicated because of the need for padding schemes, why ... |
In Elgamal signature scheme $\text{sig}_{k_{pr}}(x,k_E)=(r,s)$, $s=0$ is not allowed. How does this lead to finding the private key $d$?
|
Assume an operating system uses digital signatures to ensure executable files can be authenticated and can't be modified; where the digital signatures are constructed by creating a hash of the executable file (e.g. SHA256), encrypting the hash with a private key (e.g. RSA), then attaching the encrypted hash and public ... |
A proposed California law contains the following definition:
(i) “Electronic signature” means an electronic sound, symbol, or
process attached to or logically associated with an electronic record
and executed or adopted by a person with the intent to sign the
electronic record.
Suppose a person chooses to use an RSA ... |
I came in contact with an algorithm that deals with SPN in an example, first I'd like to give a definition of what it is:
Let $l, m, $ and $N$ be positive integers, let $\pi_s: \{0,1\}^l \to \{0,1\}^l$ be a permutation, and let $\pi_p:\{1,...,lm\} \to \{1,...,lm\}$ be a permutation. Let $P = C = \{0,1\}^{lm}$ and $K \... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.