instruction stringlengths 32 27.2k |
|---|
this question arised because I'm working with Windows' CNG library and it has 4 functions for RSA:
BCryptEncrypt (private key, message)
BCryptDecrypt (public key, message)
BCryptSignHash (private key, hashed message)
BCryptVerifySignature (public key, signature, hashed message)
So I was wondering, is there any differ... |
I'm trying to understand the DER-encoded signatures for the secp256k1 (ECDSA) curve better, so I have the following data array: 000102030405060708090a, which is a hex-encoded version of an array containing the numbers 0 to 10.
Also, I have the signed it with the following private key: fabb33890c65b059996546344a7e8c5ad... |
I want to be able to have a private user key (system generated) which, if destroyed, effectively renders all user data unrecoverable. This key would be used across the entire system to protect the user's data. Instead of having to implement and maintain integrations across all systems to delete a user's sensitive data... |
In DES, I'm given the following exercise.
- How can I find out which part of the plaintext each ciphertext message corresponds to, and which mode they were each encrypted with?
|
A lot of good information on Kerbero's encryption methods discussed here, but I there is a second question that arises. Does use of SHA-1 in the overall algorithm weaken Kerberos? If so, will security scanners potentially block certain Kerberos tickets that use it?
|
I was trying to understand the Bleichenbacher attack. I went through the paper of Bleichenbacher to understand it a bit more. However, I tried to get some test vectors to simulate this attack locally but couldn't find any.
Can someone please help me in getting smaller test vectors so that I can do some hands-on testing... |
I'm working on a solution where JWE is needed between an Android app and a backend written in Node.JS, using node-jose. I've been struggling a lot since it seems there is no out of the box compatibility between Android - if you want to use the HW backed keystore - and any node JWE library when it comes to the RSA key, ... |
I'm reading Jean-Philippe Aumasson's book Serious Cryptography to learn more about cryptography. On page 37, the author gives an example of Cryptocat's off-by-one error in its PRNG implementation in 2013, as shown below:
Cryptocat.random = function() {
var x, o = '';
while (o.length < 16) {
x = state... |
I'm studying cryptography for my university course, but some doubts arose from reading a book.
In this book the author says:
"Now we present another equivalent definition of perfect secrecy. This is base on an experiment involving an adversary $\mathcal{A}$ and formalizes $\mathcal{A}$'s inability to distinguish the en... |
I have to generate a signature for concatenation of multiple independent values say A | B | C. Two options are :
concatenate all attributes and generate the hash. Then Sign hash.
$$ signature = Sign\big(Hash(A\mathbin\| B \mathbin\| C)\big)$$
Use hash of previous value along with current value to generate the hash. ... |
I am looking at the primal attack against schemes in the second round of the NIST Post-Quantum Standardization Project. The cost of primal attack usually comes from an estimate described in NewHope which says that the error vector $e$ can be found if
$$\sqrt{\beta}\sigma\leq \delta^{2\beta-d-1}\text{Vol}(\Lambda)^{1/d}... |
The random oracle model seems to be criticized a lot as lacking practical relevance, making wrong predictions, being programmable, etc. However, I have never heard such criticism about the ideal cipher model even though the random oracle and the ideal cipher are equivalent. Therefore, the random oracle model and the id... |
If I correctly understand RFC 6979, there is an error in the ref implementation section 3.2.
In the step H2, RFC specification says
2. While tlen < qlen, do the following:
V = HMAC_K(V)
T = T || V
but in Java implementation in the RFC appendix, we found the comparison with rolen
That does... |
In DH key exchange, first, both parties need to agree on a generator $g$ and prime $p$. After that each party computes its key (party A: $g^a \bmod p$) and (party B: $g^b \bmod p$), then they exchange these values to compute the shared secret. Can you please clarify which of these numbers should be random for each sess... |
I am very interested in pursuing a research where I can show an application of Hamiltonian cycles in Cayley graphs of some group such as reflection groups to the field of cryptography.
But currently I can't figure out where the existence of such a cycle will become important in cryptography and how to develop any usefu... |
The NIST and TLS standards for Diffie-Hellman key exchange over a finite field all work in a subgroup of ${\mathbb Z}_p^*$ having prime order $q$, where $p = 2q+1$. On the other hand, DSA has a larger cofactor, i.e., it works in a subgroup of ${\mathbb Z}_p^*$ having prime order $q$, where $p = rq+1$ and $r \gg 2$. The... |
I am on the verge to understanding RSA, but suddenly a question popped into mind. When we are calculating $U(N)$ i.e $U(PQ)$, we are taking invertible elements that are co-prime to $N$. For example, $U(5\times2)$ becomes $\{1,3,7,9\}$. We are ultimately never using the inverses in $U(N)$ in either key generation or enc... |
In a traditional Ceasar Cipher, you pick a specific offset such as "plus three" so that to encrypt each character of a message you count three letters up from the input and to decrypt you count three letters down from the input. For example, "APPLE" would become "DSSOH" where D is A+3, S is P+3, and so on.
I saw a vari... |
I am new to the field of cryptography and security so spare me with this question. What is the general idea of duality and homomorphism of an encryption algorithm? And how one may prove those two properties of a real-world encryption algorithm (e.g:- say for RSA encryption).
|
Lets prime factorize $30$:
$$30 = 3 \cdot 10 = 3 \cdot 2 \cdot 5$$
We see that the number $30$ is a product of $3$ primes. But in RSA, when factorizing huge numbers, we always seem to only get two primes. Why is this??
|
According to this article HTTPS and RSA is the same thing: https://tiptopsecurity.com/how-does-https-work-rsa-encryption-explained/
From other sources I learn that they are both asymmetric encryption methods.
What is the difference between the two?
|
I am trying to understand how E0 Bluetooth algorithm exactly works. I know that $y_t$ is the sum of $x_1$ to $x_4$ and can take values $0, 1, 2, 3, 4$. Also $S_{t+1}$ = $(y_t + c_t)/2$ and can be $\{0,1,2,3\}$. But I don't understand what $z^{-1}$ and $T_{1,2}$ means.
According to the Bluetooth core specification:
$T... |
Since antiquity (and, for ceremonial purposes, up to the present day), physical documents have had seals affixed. In principle, these seals enable anyone, if he knows what he's looking for, to judge the authenticity of a document without consulting the authority that issued it. (In practice, there are ways of producing... |
Say I have a shuffled list that was shuffled in Python using random.shuffle(). The shuffling was performed using a seeded random number generator. Is there a way I can get the original list back, i.e. un-shuffle the list?
eg list1=[1,4,2,5] after seeding random and shuffling list2=[5,2,1,4] is there a way to get back l... |
Given $N(=pq)$, but not its factorization. Somehow you manage to know, that $k$ divides $\phi(N)$. Is it possible to come up with an integer $N^{*}$, for which $\phi(N^{*})=\phi(N)/k$, without factoring $N$?
|
The questions https://security.stackexchange.com/questions/1696/if-someone-breaks-encryption-how-do-they-know-theyre-successful and https://security.stackexchange.com/questions/119887/how-to-know-if-a-file-is-decrypted-or-not on Information Security SE both ask how someone can verify whether they've successfully decryp... |
I used histogram attack on image with embedded text ASCII(LSB-method) and found the chi square value. All observed frequencies more than expected frequencies, that is tipical for empty image, and have almost the same difference. Also the p-value is too big, though the data is embedded. Why do we observe this phenomen... |
I have a couple of questions on ZK-SNARK:
Based on what I understand, a ZK-SNARK is an "Argument of knowledge". That means that it should be equivalent to Sigma Protocols like Fiat-Shamir and Pederson committments, RSA Accumulators, and even attribute-based encryption, correct?
I've read in a few places, like Prof. Bi... |
I am reading the paper - "RAPPOR: Randomized Aggregatable Privacy-Preserving Ordinal Response".
I don't understand how the averaging attack works.
I searched for "average attack" but couldn't find a related explanation.
Can someone explain it to me?
Thank you!
|
lets suppose we have the public keys $(n,e_1)$ and $(n,e_2)$, such that $\gcd(e_1,e_2)=d>1$, and the same message encrypted with these two keys.
I'm trying to see if common modulus attack on RSA can be adapted to these problem where $e_1$ and $e_2$ are not coprime, but I always get stuck at some point where I should c... |
I'm designing a circuit that uses many $GF(2^{10})$ inverters. Normally for this sort of thing I use lookup tables. (Itoh-Tsujii is not efficient for these smaller fields.) This application is for an ASIC so the 1024-deep ROM will be optimized by the synthesizer. However, I recalled that when I built an AES encrypt... |
I know that if $(n,e)$ is the public key in RSA and we also know $d$ the private key, then there is a probabilistic algorithm to factor $n$.
I'm reading the proof from Fact 1 on here.
I understand the proof until it says
"A straightforward argument shows that if $g$ is chosen at random from $\mathbb{Z}^*_N$ then with ... |
I am trying to understand what is the cost of non-membership verification for a universal accumulator?
More specifically, how can I compute it?
Whether using an accumulator is more efficient than the Merkle Hash tree?
|
In the original paper of Pollard's Monte Carlo Methods for Index Computation (mod p):
When the epact is reached, i.e. $$x_i = x_{2i}.$$ then the following equation is formed
$$q^m \equiv r^n \pmod p,$$ where where $m=a_e- a_{2e} \pmod{p - 1}$ and $n = b_{2e} - b_e \pmod{p - 1}$.
with ext-GCD, the Bézout's identity ca... |
I recently discovered shamirs secret sharing scheme. Pretty interesting stuff. I noticed that a common case is to split a secret which is used to encrypt/decrypt something else. For example Vault is sealed with a master key that is split using shamirs scheme.
I thought it might be interesting to split a whole file into... |
When searching by using the Merkle tree, the time complexity is $\mathcal O(\log n)$ but I don't understand how space complexity is $\mathcal O(n)$. In my opinion, it should be also $\mathcal O(\log n)$. Can somebody explain it to me?
|
I'm reversing a cryptographic algorithm. This is part of the encryption function translated to python (starting from assembly code):
cleartext = [ 0x24,0x11,0x33,0x63,0xbc,0x59,0x07,0x5b,0x96,0x4b,0x07,0x15,0x2d,0x23,0x4b,0x70 ]
clearlen = 16
# Init the dictionary
cdict = [ 0 ] * 256
for i in range(256):
cdict[i] = ... |
The problem I'd like to solve looks like this:
There are two plaintexts which differ in length and letters, but contain a few common strings. The first few words and the last few words are the same, and there are some common words in the middle as well (sometimes in the same order). The two texts have pretty much the o... |
I want to use AES-CBC for secure firmware upgrades on a microcontroller, with AES-CMAC for checking the integrity of the firmware image. The AES-CMAC algorithm needs a AES-128 encryption funtion. For the firmware upgrade, I need decryption only. Thus, I'd like to replace the AES-128 encryption by AES-128 decryption to ... |
I'm building an encrypted logging application. Log entries are encrypted with AES-256-GCM, using password-derived keys with PBKDF2.
The application must support log rotation, and I would like to make each log entry "self sufficient". This would allow me to discard previous logs that have already been processed/are too ... |
Suppose I want to encrypt data, send it over the network, and decrypt it on the receiver side.
I know the elegant way to do this is by using a symmetric key to encrypt the data and an asymmetric key to send the symmetric key to the receiver so he can decrypt the data.
But I just read about another way which is to use a... |
If you are encrypting some secrets (database passwords, access tokens, etc).
When it comes to key rotation, you'll need to store those encrypted values twice, for a short period of time (under the old and new keys).
Could the encrypted secrets be stored in two files named after the hash of their keys? maybe sha256?
Or ... |
Here is the quote from P. Rogaway,The security of DESX
"the effective key length of DESX with respect
to key search is at least 55 + 63 - lg(m) bits"
where m is the number of chosen plaintext/ciphertext pairs.
So how can I attack DES-X with roughly $2^{64}$ DES operations assume we have unlimited storage?
I know t... |
In the official documentation for the Noise Framework there is a section with an overview of the identity hiding for each pattern. The numbering of properties there, obviously, from weaker properties to strong ones, and the last property is:
An active attacker who pretends to be the initiator and records a single pro... |
Which security feature is more important in security protocols being used in different applications? Forward Secrecy or Backward Secrecy
|
Suppose a totalitarian government (in the name of anti-terrorism / protection of intellectual property):
has outlawed encryption itself - encryption is only approved for cases where the state has reviewed the design and made sure it can decrypt/inspect the message, and made any unapproved encryption a criminal offense... |
Why the ChaCha20 - IETF algorithm that generates 512 bit keystream per 32 bit counter (that gets incremented), considers "the input words" that form the internal state as little endian ? What will happen if it was considered "big endian" ?
Moreover, we read the byte strings for key, nonce, etc in such a way that we get... |
What is the name of the mode in which we simply change the tweak for each block without the need for complex chaining modes? Is this mode secure?
Are there any other recommended modes for native tweakable block cipher like Threefish?
|
This question is theoretical, but will help with my understanding.
All of my passwords are securely generated using 64 random letters (both uppercase and lowercase) and numbers.
Using the argon2i password hashing algorithm, if I supply this long random password for both the message and the salt, will it still remain re... |
If I use a hash function to construct the commitment scheme, can I say it is perfectly hiding?
$m$ is the message
$r$ is a random value
In commit stage,
$$ c = C(m, r)$$
In reveal stage, by revealing $r$ and verify
$$c = C(m, r)$$
Because there is $m'$ and $r'$ exist for $$C(m, r) = C(m', r')$$
So it is perfectly hi... |
Imagine an $n$ bit to $n$ bit hash function defined as follows: Let $K$ and $K'$ be two random predetermined $n\times n$ matrices. Then the hash function $h$ of an $n$ bit number $a$ would be:
$$h(a)=K\cdot a\oplus K'\cdot \bar{a}$$
Note that addition in matrix multiplication is done on one bit, so it's equivalent to ... |
Some literature about lattices set $\mathbb{Z}_{q}$ in $[-\frac{q}{2}, \frac{q}{2})\cap \mathbb{Z}$ but not $[0,q-1]$ such as "lattice signatures without trapdoors" and "lattice based blind signatures", I don't know the reason. Thank you for explain the reason for me if you know it.
|
Here is my use case:
I need to keep encrypted data in Hadoop. The data is encrypted with symmetric key that is being changed every half a year.
When data is retrieved it should be decrypted.
Lets say that data from 1/1/19 until 6/30/19 is encrypted with key1, and data from 7/1/19 until 12/31/19 is encrypted with key2... |
I have a double-SHA-256 of some text $$ h_2 = \operatorname{SHA256}(\operatorname{SHA256}(m)).$$ I don't need the plain text ($m$), but somehow I need to get first $$h_1 = \operatorname{SHA256}(m).$$
Can I have it ($h_1$) by keep hashing the second one ($h_2$)?
$$ h_1 = \operatorname{SHA256}(\operatorname{SHA256}(...\o... |
Perform DES encryption on the first 64-bit plaintext only, what are these 0's and 1's? Do they mean that I need to use this value 111101 to derive $K$?
I want to know how to use initial permutation to derive $K$ using permuted choice 1 and permute choice 2.
|
I'm supposed make some reductions but don't even know where to start. Any help would or explanation on how to do this would be much appreciated.
|
So I have been reading this book called "Implementing SSL/TLS using Cryptography and PKI" While going through it, this snippet of code got me baffled
static void compute_key_schedule (
const unsigned char *key, int key_length, unsigned char w[ ][ 4 ] ) {
int i; int key_words = key_length >> 2;
unsign... |
I want to implement it on the intelligent contract and then do the development,because use paillier i cant genereate 1024bits key,so i try to find if there is exit a public key encryption system based on elliptic curve with the property of multiplication and addition homomorphism。
|
Is there a way to prove that two ElGamal ciphertexts encrypt the same message with different public keys without knowing the private keys?
The prover is the producer of both ciphertexts.
|
I try to generate other S_BOX for AES but I don't realize how to choose additive constants for S_BOX from decryption if for encryption it is 0x63 why is 0X05 used for decryption?
|
I'm new to blind signatures, trying to understand security notions of it: blindness and one-more unforgeability.
I found out that in the security game for blindness property, the adversary $\mathcal{A}$ interacts with two users (each with messages $m_0$ and $m_1$). Without knowing who signed first, $\mathcal{A}$ gets a... |
I'm creating an implementation of the DCT Steganography algorithm in Java and I'm having a slight problem. When I embed a message into a cover-image, I am doing so by initially obtaining the DC Coefficients of that image for a particular 8*8 block and then replacing the last coefficient equal to either a 0 or 1 dependi... |
I heard that one can predict the output from Math.Random() of JavaScript, but another day I had an idea to combine Math.random() with Math.floor() to make it harder to predict, but a week ago I saw one user claimed that he can predict even if I used Math.floor() and that only takes 14 sample values to do that.
How is ... |
Just a quick question about DCT Steganography. Do you embed the data before or after you send the 8*8 block through the quantization table?
|
I have a question from Stinson: 7.14. The question states:
Suppose that $p > 3$ is an odd prime, and $a,b$ is an element of $\mathbb Z_p$. Further, suppose that the equation $x^3 + ax + b$ is congruent to $0$ ($\mod p$) has 3 distinct roots in $\mathbb Z_p$. Prove that the corresponding elliptic curve group $(E, +)$ i... |
I was watching this class about AES in this LINK and I was trying to grasp the concept of prime fields, which is a finite field with prime order $p$.
The non-prime field part (order is $p^n$) is where it gets harder for me. The teacher jumps into "extension fields", and does not explain the link between it and non-prim... |
In a CL-based or CKS-based anonymous credential system, how can a verifier $V$ prove that a credential holder $H$ has presented it a credential that has been issued by an issuer $I$ without identifying $H$? I could not come up with a simple solution using the anonymous credential.
I think that an additional mechanism ... |
When using RSA-PKCS#1v1.5 to sign and verify a message-digest, is there a compulsory relation between the sizes of message-digest and the key/signature ?
For example, If I use key/signature length of 3072 bits, do I have to use message-digest of 384 bits (like SHA-384), or 256 bits (SHA-256) is sufficient ?
|
I am building an app in which I would like to encrypt user data and support offline login.
From this answer about using passwords for encryption:
Best practice is to use a PBKDF to generate a 'key encryption key' (KEK), then a full entropy random key is used to encrypt the data, and the KEK is used to encrypt that key... |
I am studying the Schnorr Protocol, and I just come up a case.
For example, I am a Prover and have a secret $x$. By using the Schnorr Protocol, I create $h=g^x \bmod p$ and save $h$ to a public place.
When a Verifier needs to prove to the Prover,
Prover sends a commitment to verifier $c = g^r \bmod p$ where $r$ is a r... |
I am wondering if there is any reason to regularly update cryptographic keys, that are used for authentication purposes in a real-time system.
A key should be updated if it is weak, broken, compromised, or leaked. Another valid reason would be a weak authentication scheme. For instance, CBS-MAC is prone to message for... |
I am trying to understand the simulation-based security proofs (as well as the UC framework), I find that there is a basic assumption when proving the security, i.e., the simulator could extract the secret input of corrupted parties, even if the corrupted parties' input is encrypted or in secret shared form. I have two... |
I recently had a variant of the following problem in my cryptography course and I had trouble solving it and was looking to get some help.
Given the symmetric key cryptosystem: $\text{KG, Enc, Dec}$ where $\text{KG}$ is a key generator that produces a random key in the space $Z_n = \{1, 2, 3, \ldots, n-1\}$, $m$ is a ... |
There are server programs and client programs.
Prepare two keys (A, B) for AES.
The A key creates an encryption table in advance with WhiteboxAes.
The B key creates a decryption table in advance with WhiteboxAes.
The client uses the A table, encrypts the data with WhiteboxAES, and sends it to the server.
The server de... |
I want to make a Diffie Hellman key exchange code using Python, but I'm afraid of just randomly picking $g$.
I read on the answer of Thomas Pornin to this question How does one calculate a primitive root for Diffie-Hellman?, that if you use a strong prime, then every number on the group (except $1$ and $p-1$) would hav... |
I asked this on Stack Overflow but I was told to ask here.
I'm writing a program that decrypts text encrypted using a Vigenere cipher. It's been working very well so far, but my current issue is that I need an effective way of checking if a string is decrypted. So far, I've been checking how many times the string conta... |
I'd expect a 192-bit nonce derived from a 256-bit nonce by computing the SHA-256 hash and then truncating it to 24 bytes to behave like an approximately uniformly randomly generated 192-bit nonce and hence be good enough for using it e.g. as a nonce for XChaCha20-Poly1305 encryption. Is this correct? If yes, could mayb... |
I'm planning to use ChaCha20 just as a CSPRNG. Key is random (taken from strong initial entropy source) and will be constantly replaced via DJB's fast key-erasure scheme. What should I use as the nonce? Does it matter? Is it safe to just use zero?
|
In the wiki article, it says "An ASG comprises three linear-feedback shift registers, which we will call LFSR0, LFSR1, and LFSR2 for convenience. The output of one of the registers decides which of the other two is to be used; for instance, if LFSR2 outputs a 0, LFSR0 is clocked, and if it outputs a 1, LFSR1 is clocked... |
Packing multiple plaintext messages into a single ciphertext block is known to increase the effeciency of homomorphic encryption. Can someone let me know if this technique can support large data ? For example, there is packing technique 1 that transform a binary vector to a polynomial of ring. However, the packing tech... |
Security of lattice-based schemes in the NIST Posto-Quantum Project often relies on the complexity of dual attack. Complexity of this attack depends on the running time of lattice basis reduction algorithm like BKZ$-\beta$, where $\beta$ is block dimension of BKZ-like algorithm.
I am looking at candidate CRYSTALS-Kyber... |
Let F be a deterministic compression function that takes fixed length 128 bit inputs and outputs 8 bits. Each input to the function has 128 bits of entropy, does that mean that the output byte has 128 bits of entropy ?
|
In an application we need some way for a user to authenticate, but have the challenges of very restricted functions to use.
Each user has got a 16bit-number he can't change. We want to calculate some individual "secret" for some of the numbers that allow users to have higher access rights. The aim is to make it as hard... |
I have code encoded in GF(7) with primitive 5
Сf(4,1,0,4,5,5). (last four symbols is redundancy)
While decoding using DFT we use formula
$$
С_k=N^{-1}*c(z^{-kj})
$$
example:
$$
C_1 = c(5^{-1*j})/6 = (4*5^{-0*1} + 1*5^{-1*1} + 0*5^{-2*1} + 4*5^{-3*1} + 5*5^{-4*1} + 5*5^{-5*1})/6 = (4 + 3/15 + 24/750 + 20/2500 + 25/1562... |
I've been looking for a fast, powerful and robust algorithm for encrypting large files with authentication .
I would like to implement the algorithm on my own without using third party software. I've used different modes of AES but the software implementation is prone to side channel attacks. Besides the most commonly... |
Pardon me if this question seems a bit obvious, but if someone has a key to your encryption, knowing what type of encryption you are using (or running outputs against a lot of common encryption types) gives them the opportunity to reach your data using said key. So wouldn't it be better if you encrypted according to a ... |
If I feed 128 bits of randomness into AES-CTR as its IV / nonce / initial counter, what will happen if I feed in a random 128-bit integer that overflows and wraps around?
I've written a test for this and found that at least some CTR implementations do the expected thing and wrap the entire uint128 around, but is it pos... |
This may be a naive question:
LWR assumption states that for ${A} \stackrel{$}{\leftarrow} \mathbb{Z}^{m \times n}_q, s \stackrel{$}{\leftarrow} \mathbb{Z}^n_q$, given $(A, \lfloor A\cdot s \rfloor_p$), it is indistinguishable from $(A, u)$ with $u \stackrel{$}{\leftarrow} \mathbb{Z}^m_p$.
There seems to be no specific... |
I am trying to understand how much the output of elliptic curve based cryptosystems (for example elliptic curve ElGamal) is smaller than the ordinary public key cryptosystems.
I know that the security of a EC key size from a moduli of 160 bits is about the security of an RSA cryptosystem with a 1024 bits moduli. But m... |
When i studied the Applications where Curve25519 is used, i found out, that it is mostly used for the key exchange. Examples are the Signal Protocol and Threema.
I know, that Curve25519 has a pretty fast arithmetic, so my first idea was, that it is used to decrease the server load. Am i right with my idea? Can someone ... |
Suppose we need a PRF whose output space is 255bit.
Then, what I can do with AES with 128-bit security is producing 2 AES blocks that are of 256-bit.
Then, I will remove the most significant bit of one block so that I have 255-bit output.
Is it secure if I remove the top-bit of the one block to make it 127-bit?
|
Let's suppose $A$ is sending a message $m$ to $B$ using asymmetric cryptography.
To guarantee the authenticity of a message, $A$ encrypts $m$ with $A$'s private key: $E(m, k_A) = m_A$.
Then, $A$ sends $m_A$ to $B$.
$B$ can check that $m_A$ was sent by $A$ using $A$'s public key $p_A$, by doing $D(m, p_A) = m$.
If the ... |
The initial hash values (IV) of SHA256 are fixed. However, let's say I modify the SHA256 hash function to allow the attacker to use arbitrary IVs rather than fixed IVs. What kind of weaknesses would this cause? Would it be easier to find collisions, preimages, etc? Would it be possible to insert backdoors?
So far, I've... |
I originally asked this question on the information security stack exchange but I think it's better suited here.
I'm trying to calculating the unicity distance for a cipher applied to a language I wrote and I'm having trouble understanding the concept of redundancy in a language.
From this book
The redundancy of a la... |
I'm trying to do the following assignment:
Let $G:\{0,1\}^n \rightarrow \{0,1\}^{n+1}$ and $G':\{0,1\}^n \rightarrow \{0,1\}^{n+2}$ be two pseudorandom generators. Prove
that the function $G'':\{0,1\}^n \xrightarrow{}\{0,1\}^{2n+3}$ defined
by $$G''(s_1, \dots, s_n) = (G(s_1,\dots,s_n),G'(G(s_1,\dots,s_n)))$$
is... |
So I'm trying to understand how the key exchange with Curve25519 works. I read the original Paper from Bernstein "Curve25519: new Diffie-Hellman speed records", but I still got some questions. First of all, this is graphic, how the key exchange should work:
So Alice and Bob create their own secret key by randomly choo... |
I dont know is this question more like reverse-engineering or cryptographic.
Why governments are hunting for encryptions keys? Aren't they delievering by the network the same as the encypted messages? What doing it end-to-end encrypted?
|
In several countries there are currently ideas to track the spread of HCoV-19 by use of mobile location data. A good knowledge of the virus' spread throughout communities and countries will certainly be a huge benefit to everyone, as it provides data that allows fast and decisive, but ultimately localized, action. Howe... |
I am looking for a primitive or a construction that meets the following requirements. Is such a construction (a) theoretically possible, and (b) in existence right now?
Given are:
a long secret $X$
a authenticated cipher that takes a key $K$ with encryption function $\mathcal{E}_K$ and decryption function $\mathcal{D}... |
I have been looking for a concrete example of GMW protocol for two parties. I was trying with the following example for computing $XOR$ of two parties:
A's secret bit is $a = 0$, B's secret bit is $b = 1$.
A chooses a random string of length 2, namely $a_1a_2 = 00$, so that $a = a_1 \oplus a_2 = 0 \oplus 0 = 0$. B doe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.