instruction stringlengths 33 27.2k |
|---|
Suppose that:
$\widetilde{E}: \mathcal{K} \times \mathcal{T} \times \mathcal{PT} \rightarrow \mathcal{CT}$ and $\widetilde{D}: \mathcal{K} \times \mathcal{T} \times \mathcal{CT} \rightarrow \mathcal{PT}$.
$\widetilde{E}(K, T, X) = E(K, T) \oplus E(K, X \oplus E(K, T))$ and $\widetilde{D}(K, T, X) = E(K, T) \oplus D(K,... |
I have a question that I can't answer:
A plain text has been encrypted 3 times in a DES method with 3 different keys 56 bit each, after it the text was encrypted for the forth time using a AES method using a 128 bit key, an attacker is planning to decrypt the text using meet in the middle method, how many encryptions ... |
I have been doing some test on password strength using arabic passwords and try to crack it using hashcat and when i used a non salted hash like a custom generated md5 hash and tried using --hex-charset parameter and it works like a charm but when i try it on pdf files it is not working i even decreased the password to... |
I'm studying about Signal Protocol and I had a doubt in Double Ratchet Algorithm. This section describes how to derive the receiving and sending key messages. But in this scenario, only Alice can send the second message.
The X3DH Protocol establishes a shared key between Alice and Bob where Alice is the initiator and s... |
Wikipedia reports:
A 2011 attack breaks preimage resistance for [...] 52 out of 64 rounds for SHA-256. Pseudo-collision attack against up to 46 rounds of SHA-256.
I am having trouble determining/understanding whether the "Message Expansion" of SHA-256 is the one reduced (splitting the 512-bit message block into 16 wo... |
I am solving a example with Blakley's scheme problem. The issue that I am having is using the row operation to determine the secret $x_{0}$. So what I have so far is:
Given three planes: $z = 7x + 84y + 41$, $z = 17x + 5y + 3$, and $z = 37x + 46y + 66$. Then I set up the matrix:
$$
\begin{equation}
\begin{pmatrix}
... |
I have read a few tutorials in regards to this.
My understanding is that Diffie-Hellman is a key exchange concept that is being use everywhere in our daily lives, which is also known as the public-private key exchange.
In a real world example. when I want to send an email- keys would also be exchanged.
For example -
m... |
My company wants to generate new primes for every Diffie-Hellman key exchange. We are thinking of using the prime generation scheme in GPG’s libgcrypt library.
The code documentation says that the scheme that libgcrypt uses is based on a paper from Crypto 97. It is entitled, ”A Key Recovery Attack on Discrete Log-ba... |
As I understand this process is done in the client device for generating a unique key per transaction:
inject generated IPEK to client device;
generate set of future keys (actually 21 future keys) using IPEK+KSN and delete the IPEK;
generate session key using transaction key + KSN;
use this session key per transaction... |
I'm studying the Pollard's rho algorithm to solve discrete logaritms on the Handbook of applied cryptografy but I didn't understand one part of the theory and looking at the example gets me more confused.
This is the example
The first thing that I don't understand is how do you know that an element is on $S_1$ or $S... |
Is it possible to do the following?
Generate symmetric key $K$
Encrypt data $D$ with the symmetric key : $E_k{(D)}$
Encrypt the symmetric key and the encrypted data using homomorphic encryption scheme (e.g. Paillier) with FHE key : $E_{paillier}(E_k{(D))}$ and $E_{paillier}(K)$
Send both $E_{paillier}(E_k{(D))}$ and $... |
I understand that there are three main security requirements for hash functions, pre-image resistance, second pre-image resistance and collision resistance.
I need to write about a hash function that allows the user to identify if the original hashed items are identical, but I am a little confused to which security fea... |
I'd like to get just the mechanics of multivariate-quadratic cryptography, so I'm trying to understand the definitions involved. From Wolfram's website, I get that a quadratic map is for example a recurrence of the form $x_{n+1} = 2 + (x_n)^2$. I will need an initial value too, right? I choose $x_0 = 3$. What's the... |
So here's my problem: I have 3 files. One is ciphertext.enc, which is a text encrypted using AES 256. The second one is key.cipher, which is ciphertext.enc's key. This key.cipher was encrypted using a public RSA key. The third file is pub.key, the public RSA key used to encrypt key.cipher.
Is also known that openssl w... |
This is probably one of those embarrassingly simple questions, but here goes. Consider the following two constructs:
CSPRNG made out of a block cipher (AES) with a counter such as
CSPRNG made out of a secure hash function with a counter (Java SecureRandom's SHA1PRNG) such as
The common denominator is the pro... |
Why still we are using Diffie-Hellman idea rather than BB84 or B92 like
quantum protocols for key exchange?
|
I'm researching on using Argon2 on a JavaEE server-side application.
I'm a bit reluctant to set the parallelism parameter larger than 1 on a JavaEE environment where threads are supposed to be managed by the application server etc, etc.
One idea is to use the low-level API and set lanes to -lets say- 4 and threads to ... |
Is NIST's public calling:
https://csrc.nist.gov/news/2016/public-key-post-quantum-cryptographic-algorithms
...for a post-Quantum Cryptographic Algorithm a public calling for a public key distribution method (ex. Diffie Hellman) or a public key encryption method (ex. RSA)?
|
I'm trying to understand this:
[AES_128] REQUIRES the same 16-octet Initialization Vector (IV) to be
supplied when encrypting and decrypting. Varying this IV increases
the strength of the cipher.
An IV attribute on an EXT-X-KEY tag with a KEYFORMAT of "identity"
specifies an Initialization Vector that can be used whe... |
How is the server's public key used to encrypt the symmetric key in a way so that only the sever's private key can decrypt the cipher?
The client uses the server’s public key to encrypt the symmetric key and send it securely to the server, and the server uses its private
key to decrypt it. Anyone can encrypt using ... |
I have an ECDSA Public Key in DER Format.
I viewed the file in an ASN1 Editor and there's the OID 1.2.840.10045.1.1 whose superior (1.2.840.10045.1) is ecdsa-with-SHA1. So I thought that SHA1 is used here. But it turns out that a signature generated with the corresponding private key could only be verified with openss... |
In advanced encryption standard,in mixed column step,how those fixed matrix values came? The values are (02 03 01 01),
will these values will be the same for 192 bit plain text?
|
In SEC 2: Recommended Elliptic Curve Domain Parameters curve secp112r1 has $0xDB7C2ABF62E35E668076BEAD208B$ as the order of the finite field and as the $a$ coefficient in the equation $y^2 =x^3 +ax +b$. Wouldn't that essentially make the $a$ coefficient $0$? If so then why not just say that that's what the coefficient ... |
Is there a quantum algorithm to find private keys generated using elliptic curves ?
|
What is the minimal angle between two LLL reduced vectors?
It seems it should be 60 degree as $|\mu_{i,j}| \leq \frac{1}{2}$.
If we make the upper bound of $\mu_{i,j}$ by 1/3, can we get better reduction?
|
As mentioned in this StackOverflow CodeGolf question, prime numbers can be redefined:
One of my favorite definitions of the prime numbers goes as follows:
2 is the smallest prime.
Numbers larger than 2 are prime if they are
not divisible by a smaller prime.
However this definition seems
arbitrary, why 2? Why n... |
There is generally a push to make algorithms and components constant time to be resistance to side channel attacks. For instance, AES-NI instructions take as many cycles as rounds; however, I can lower the CPU voltage and increase the clock speed until I see errors on the result. The circuits are only constant time i... |
I want to know how the Threefish cipher can be used to encrypt and decrypt. I tried to find out by searching the Internet but can't find a concrete answer. The only answers are theoretical in nature which is not usable to me.
|
A few days ago I asked a question about the security of the Lim-Lee Prime Generation algorithm used by GNU Privacy Guard’s libgcrypt library. L. Carvalho provided a good answer to that question.
As a follow up question, I am wondering whether one could use Lim-Lee Prime Generation as a means of creating a “Nothing U... |
I'm having trouble solving the Shamir's Secret Sharing scheme for the following problem that states:
Problem: A certain military office, which is in control of a powerful missile, consists of six generals, five colonels, and four desk clerks. Describe how they would set up a Shamir scheme so that any five generals or ... |
After reading about RC4, it seems that it's nothing else than:
the plaintext stream is just XOR'ed with a pseudo-random sequence that
is initialized/seeded with the key
Is there something else in the algorithm?
Is there a general name for stream ciphers that use a XOR with a (pseudo-random) sequence seeded by key?
|
I'm looking to know whether or not this PRF is secure :
$$F'(k, x) = F(k, x) ⊕ 1^n$$
knowing that $F$ is already a secure PRF for
$$\{0, 1\}^n × \{0, 1\}^n → \{0, 1\}^n$$
with, for example, $n= 128$.
I would do it like this: knowing that $F$ is already a secure PRF, therefore an attacker cant know if the output of $F$... |
I am planning to use the RSA for encryption my data and I am wondering - I've generated the keys pair with some limited expiration time and I will use this private and public keys for the purpose of encryption and decryption and in one time the certificate will be expired.
How can I use the new certificate? What is the... |
DESX uses whitening to strengthen against brute force attacks. What is an attack one could use to recover DESX's pre-whitening key with only two known ciphertext/plaintext pairs, given that the attacker can successfully disable the post-whitening step?
So far I have come up with this:
The attacker could use an active ... |
It seems that Shortest Vector Problem in a lattice is NP hard. Then how Ajtai-Kumar-Sivakumar (AKS) algorithm solves it? I mean, what is the witness?
|
Why do we want the factors $p,q$ of $n$ to be of size half the bit length of $n$ in RSA?
I know $p,q$ need to be large so that it is harder to factor $n$ and if one of $p,q$ is small, then it is more likely to find a factorization by brute force. But why half the bits of $n$ (i.e., $p,q$ must be in range $[2^{(n-1)/2} ... |
Suppose the following PRG $G : \{0,1\}^n \rightarrow \{0,1\}^{n +l}$, I want to prove that $G$ is one way function (and not building one), for:
$l = \omega (\log n)$
$l = 1$
For $l = \log n$, suppose that $G$ isn't OWF, so there's an inverter $A$ which succeeds w.p. $\geq 1/p(n)$, trying to build a distinguisher $B$... |
I was wondering, if I want to calculate the intra distance of a PUF, and I have already measured $n$ times a response to a challenge. Do I choose one reference value and compare the hamming distance of it to all other values $n-1$ comparisons? Or do I compare each response to each other $(n \times(n-1))/2$ comparisons?... |
Here is the details: I found a web api while pentesting for a company which I cannot disclose and while doing so I found a API which signs a request of the users choice, but it adds a tag to the top then SHA1's the message then signs it with RSA textbook scheme with no padding. And I'm trying to attack another API that... |
I want to know how the nonlinear function of KeeLoq works.
Here at Wikipedia it says that:
The NLFSR feedback function is 0x3A5C742E
I understand that F(a,b,c,d,e) = 3A5C742E.
Now, he did not say anything about encoding of a, b, c, d, e. I consider them as in ASCII. But each letter will have 8-bit. So total would be ... |
The substitution-value of input byte $\mathtt{C2}$ is $S[\mathtt{C2}]=\mathtt{2F}$. This comes from applying the Euclidean algorithm to $A(x)A^{-1}(x)\equiv 1\pmod{p(x)}$, where $A(x) = x^7+x^6+x$ (from $\mathtt{C2}$) and $p(x) = x^8+x^4+x^3+x+1$ (the $AES$ irreducible polynomial). On finding remainder $r=1$ we apply t... |
For detecting double spending, secret splitting is used. If a user duplicates the coin, then there will be two different transaction items in transaction list. What is the probability of catching a user who duplicates the coin using this technique?
To clarify:
https://www.cs.bham.ac.uk/~mdr/teaching/modules03/security/... |
For trying ECIES, I need to derive keys for MAC and AES from the shared secret using ANSI x9.63 based KDF. The information on key derivation I got it from Section 3.6.1 of http://www.secg.org/sec1-v2.pdf.
What is the standard procedure to extract/separate the keys for MAC and AES from the Key derived using KDF?
|
In a PHP project in which fool-proof encryption is fundamental, I'm using the Libsodium library.
Hope you guys can shine some light on the following questions.
For all of the following functions, it looks like the length of the encrypted message is directly proportional to the length of the unencrypted message:
sodiu... |
RFC8032 (section 8.7) states that IUF (Init, Update, Finish) should not be used in Ed25519 API:
Avoid signing large amounts of data at once (where "large" depends on the expected verifier). In particular, unless the underlying protocol does not require it, the receiver MUST buffer the entire message (or enough informa... |
I am building an app that pits one party against another party in a gambling transaction – both parties have competing interests and have an incentive not to cheat the other party.
I am looking for a cryptographic solution for this. It includes card games but not Poker (so this includes baccarat, blackjack, and other ... |
The construction of Rijndael's S-box starts with the multiplicative inverses of each number over a finite field. It seems like this is the main source of its non-linearity. I figured that modular multiplicative inverses could be used as well. In this case, determining the value of $S(x)$ starts out with finding $y$ suc... |
Let $pk=(N,e)$ (resp. $sk=(N,d)$) denote the public (resp. private) key in a plain RSA signature scheme. Define the function $\textbf{Int}: \{0,1\}^* \to \mathbb{Z}_N^*$ as follows: on input string $x=(x_1\parallel \dots \parallel x_n)\in\{0,1\}^t$ we set
$$\textbf{Int}(x_1\parallel \dots \parallel x_n)=\sum_{i=1}^{n}... |
I'm studying about Signal Protocol and I had a doubt in Double Ratchet Algorithm. This section describes how to derive the receiving and sending key messages.
Alice is initialized by Bob public ratchet key but what if Bob is offline? For example:
Alice starts the X3DH with Bob sending the first message but Bob is off... |
I asked this in the Ethereum StackExchange yesterday but I figured it would be more appropriate to ask it here.
I am looking into implementing some operations for the BLS signature scheme in Solidity, using the new precompiled contracts for pairing operations released with Ethereum Byzantium, but I am not sure whether... |
I have a text that was encrypted twice with two Vigenere keys.
However, I know the seven first characters of the decrypted text.
I have already implemented a function displaying for the five first characters the two keys that were possibly used but there are so many possibilities (265 if I am correct)...
I think the an... |
AES-128 is considered weak against quantum computers because Grover's algorithm effectively halves its key length to unacceptable 64 bits.
XTS-AES-128 as described in IEEE 1619-2007 doubles key length to 256 bits by using distinct 128-bit keys for block and tweak encryption, which is sometimes remarked as unnecessary c... |
Suppose $m_0, m_1, m_2 \in \mathbb{N}$ such that $m_0 = m_1 + m_2$, $m_i > 0$ (none of them can be 0 or lower)
Under a Paillier cryptosystem, set
$e_0 = E(m_0, r_0)$ for a public key $(g_0, n_0)$
$e_1 = E(m_1, r_1)$ for a public key $(g_1, n_1)$
$e_2 = E(m_2, r_2)$ for a public key $(g_2, n_2)$
Can I prove (to a 3rd ... |
In complexity theory, how do you interpret multi-argument poly notation, such as $poly(a,b)$ or $poly(a,b,c)$?
Does it mean $poly(x)$ for $x=\max(a,b,c)$?
|
I am going through the course http://u.cs.biu.ac.il/~lindell/89-856/main-89-856.html, as it has a good lecture notes. I found exercise 2 solution a puzzling statement: it says that $G^\prime (x_1 , x_2 ) := G(x_1 ) ⊕ G(x_2)$ is a PRG, though I'm not sure why it is always the case. I get the intuition that xoring pseudo... |
My company builds an encrypted data transfer app that has two layers of encryption. There is an outer layer of TLS encryption using ECDHE with Curve 25519 that runs between app clients and servers. There is also an inner layer of encryption that encrypts data end to end between clients using a 1024-bit Diffie-Hellman... |
I'm an undergraduate math student, and I'm thinking about topics for an undergraduate thesis. I have an interest in topological spaces and number theory, but I'm having trouble identifying a relationship between those and cryptographic theory. In On Post-Modern Cryptography, Goldreich talks a lot about rigorous analysi... |
The Wikipedia article on big O notation says that performing a lookup is a constant time operation. So why are lookup tables susceptible to timing attacks?
|
So I am a newbie to this. Has anyone experimented implementing a stream cipher for full disk encryption?
EDIT
With the caveats that come with using a stream cipher over a block cipher of course! I am thinking in the context of mobile storage. I keep reading about these block ciphers but never stream ciphers.
|
Imagine the following scenario: Alice is a well-respected chef. She is famous for reviewing recipes. Anyone can send her a recipe. If she likes it she'll add her famous line of approval to the end: "This is delicious, y'all". Cryptographically signed with her public key of course. Alice-approved recipes are universally... |
Consider a block cipher $E_k$ where $k$ is an arbitrary key. $E_k$ takes input messages from $\{0,1\}^n$ and outputs a ciphertext $c\in\{0,1\}^n$. Let $m$ be an input message which is uniformly drawn from $\{0,1\}^n$ and let $c = E_k(m)$.
My question is simple - is $c$ also uniformly distributed in $\{0,1\}^n$?
Note:... |
I'd like to create a simple file-cipher, which provides seekable encryption (so I can decrypt any part of the encrypted message, without the need of decrypt from the start).
Here's my current idea: I generate a 128-bit IV, that will be the first 16 byte of the encrypted file. Then I use AES CTR, and encrypt the file. T... |
I read the paper "Provisions: Privacy-preserving proofs of solvency
for Bitcoin exchanges" which is available for download on http://crypto.stanford.edu/~dabo/pubs/abstracts/provisions.html and have some questions about it. For discussing the single question I want to address here, having read the entire paper is not n... |
Suppose that Alice has a secret bit $a$ and Bob has a secret bits $b_1,b_2$ and that Alice and Bob want to compute the function $h(a,b_1,b_2)=b_1 \wedge (b_2 \oplus a)$ using Yao's Garbled Circuit protocol.
a) Suppose that Alice selects two random permutations $\pi_1, \pi_2: \{(0,0),(0,1),(1,0),(1,1)\} \to \{(0,0),(0,1... |
byte *key;
String skey = "abcde"
If I convert skey to bytes and uses it to encrypt AES 128 bit, 192, and 256 bits. How AES would work with small key sizes or large key sizes? Is it key expansion or key round that would make it work or it would break? What actually happens behind?
|
If we have an array of ciphertexts based on the same data encrypted with different keys (e.g. sharing the data with different persons using different 128 bit keys), then is it easier to an attacker to guess the data without knowing any of the keys? If so, then is there a way to harden this kind of encryption? (To be mo... |
Assume, there is a certificate authority whose public key: $pk$, is known. Also, the certificate $c$ is known, but not the signed certificate.
I want to encrypt a message: $m$, such that whoever has a signed certificate can decrypt the message. Note that the signed certificate may not be present at encryption time. To ... |
The question is exactly what it says on the tin. If $n$ is the block size in bits of a block cipher, then why does outputting $2^{0.5 \times n}$ block in counter mode become a problem when there is no repetition of the keystream until after $2^{n}$ blocks have been output?
|
I know that we need some sort of sensitivity(global, local) to calculate noise that needs to be added for differential privacy. The noise is the maximum difference between two neighboring datasets. However, if I am working in probability spaces, i.e. my values are bounded by 0,1. My sensitivity would be 1, which seems ... |
I read about MAC-then-encrypt vs encrypt-then-MAC and I understood why MAC-then-encrypt is better but what if we have two parties that needs to know who signed the message before read it?
Example:
A and B want to communicate but they don't want to open suspicious files, B needs to know that the message received was sen... |
I see on eprint that there are many papers suggesting ways to compute parameters for LWE. How can those be used to compute parameters for ring-LWE (assuming that known algorithms solving LWE are the best for solving ring-LWE)?
Specifically, consider the ring $R_q = \mathbb{Z}_q[X]/(X^n + 1)$. How can an R-LWE instance ... |
I am doing probabilistic decryption, I was given that A and E had the highest frequency count in the plain text. H and X have the highest frequency in the encrypted text. So in solving for a and b I got a=4 and b=7, but that a won't work because there is no inverse of 4 in mod 26 (which I need for the decryption parame... |
I'm thinking about using a cipher, which uses AES CTR+SHA-3. My basic idea is this:
IV|AES-CTR(PLAINTEXT_SIZE|PLAINTEXT|SHA-3(KEY|PLAINTEXT_SIZE|PLAINTEXT))
So, basically, the encrypted data contains the following:
IV for AES-CTR
AES-CTR encrypted of the following:
size of plaintext in 64-bit little endian encoding... |
When the term "XEX" or the phrase "XOR-encrypt-XOR" is used, does it refer only to the scheme $CT = E_{K}(PT \oplus T) \oplus T$/$PT = E_{K}(CT \oplus T) \oplus T$ (where $T$ is the whitening/tweak value), leaving out how the value of $T$ is changed between blocks if it is even specified to be changed at all? Or does i... |
Assume that:
$P(X): \{0, 1\}^{\ell_{X}} \rightarrow \{0, 1\}^{\ell_{X}}$.
$Q(X): \{0, 1\}^{\ell_{X}} \rightarrow \{0, 1\}^{\ell_{X}}$.
$E(K, X): \{0, 1\}^{\ell_{K}} \times \{0, 1\}^{\ell_{X}} \rightarrow \{0, 1\}^{\ell_{X}}$.
$D(K, X): \{0, 1\}^{\ell_{K}} \times \{0, 1\}^{\ell_{X}} \rightarrow \{0, 1\}^{\ell_{X}}$.
$\... |
In CBC mode I know that if i get a corrupted Ci* block than Pi and Pi+1 will be wrong during the decryption, but i believe that this happens only when Ci* is not envolved during the feedback stage at the encryption, my question is what happens if the corrupted block is a feedback at the encryption stage, will it have t... |
I'm trying to understand known plaintext attacks and since I best learn by doing I broke out Python and did the following:
I have a plaintext string s and a key k:
s = 'Lorem ipsum dolor sit amet'
k = 'key'
As I'm doing this with xor, this is my xor method:
def xor(s, k):
return ''.join(chr(ord(a) ^ ord(b)) for a, b... |
I would like to encrypt a file by XORing the source message with a prng of my own.
The prng is streaming a flow of sha512 hashes. Each hash is produced from the previous hash plus constant string plus a password given at the start of encryption ("plus" meaning "concatenated with"). The first million of bytes is skipped... |
I am trying to understand the non-optimized known plaintext attack on A5/2 from Barkan, Bikan and Keller.
I don't understand the construction of the equation system:
$$S_{R4_1} * S_1 = k$$
Where $S$ is the system's matrix and $k=k_1||k_2||k_3||k_4$.
How do I create the system's matrix $S_{R4_1}$ and $S_1$?
|
Can entropy being used as data removal verification in data wiping ? How we can implement the entropy calculation in a data wiping tool? The wiping tool will used overwriting method using single pass.
|
I am writing a small personal project where I would like to use AES to encrypt some documents. It seems to work pretty well, but I was wondering about one point of my code. The current structure is user inputs password -> key = sha256(password) -> compress(key) -> AES(document, key). Where compress XORs the key with it... |
Suppose that I have a chunked stream. Each chunk is to be encrypted separately. The structure is basically this:
([LEN][DATA])[MAC]([LEN][DATA])[MAC]([LEN][DATA])[MAC]...
How should one handle the LEN field? If I encrypt the whole thing in a (), this encrypts the LEN field as well. So at decrypt, LEN field must be firs... |
I'm using secp256k1; in normal scenario alice.privateKey and bob.publicKey (or vice versa) is used to derive the same secret.
Is it safe to use alice.privateKey and alice.publicKey to derive secret as a key for encryption for alice's personal information - where alice.publicKey and encrypted blob is publicly available?... |
What I basically need is a way to encrypt and decrypt symmetrically an ID which is a string. Both version of the ID will live and work in different domain and I need a way to switch domain without hold in memory a mapping table. My requirements are:
both kind of IDs must be human readble (alphanumeric).
plain IDs hav... |
Could someone please explain, in simple and easy terms, how the creators did (or should have) derived the N, order of G for SECP256k1?
Its my understanding its derived from
p = FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE FFFFFC2F
aka
p = 11579208923731619542357098500868790785326998466564056403945758... |
Let's suppose that for a crypto protocol a 32-byte-to-32-byte one-way function is needed. Proposals are:
$\textrm{sha256}(x)$
$\textrm{hmac}(\textrm{sha256}, x, x)$
$\textrm{hmac}(\textrm{sha256}, x, f(x))$, where $f$ is a 32-byte-to-32-byte function whose inverse is easy to compute, e.g. bytewise reverse (whose inver... |
I would like to create a server that would verify a public/private key pair where the private key is encrypted with a key unknown to the server.
The server should reject the keypair if the encrypted content is not the private key belonging to the public key.
Is there a way to cryptographically prove that the content of... |
Is there a asymmetric encryption scheme that allows for multiple private decryption keys?
where m= plaintext message and c= cyphertext message
c = Ek(m) where K is the public encryption key.
and
m = Dj(c) where J is the private decryption key.
nothing out of the ordinary here, RSA satisfies this basic scenario.
In add... |
The ciphertext $c$ corresponding to plaintext $m$ is given by
$c= mK + w$. $K$ is the invertible matrix and w is the uniformly distributed random vector.
If $w$ is changed during every encryption, will this affine Hill cipher satisfy IND-CPA?
If $w$ is generated using a PRNG and this type of encryption is used as homom... |
I am quite new to this stuff so this question might be trivial. I was reading about bb84 and, as I understood it, after Alice sends $\psi$ Bob chooses a random sequence $b'$ and makes a measurement in either $X$ or $Z$ according to $b'$. After Bob does this he announces that he has received $\psi$ and both him and Alic... |
If in Rabin cryptosystem we have $n = p \cdot q$ where $p$ and $q$ is prime we have four solutions (roots) - exist four solution of $x^2 \equiv b \pmod{n}$.
However, when we have:
$n = p \cdot q \cdot r$
where $p$ and $q$ and $r$ is prime or:
$n = p \cdot q \cdot r \cdot z$
where $p$ and $q$ and $r$ and $z$ is prime
Ho... |
I want to generate random elliptic curves (over $\mathbb F_p$ and $\mathbb F_{2^m}$) using OpenSSL, that's my task.
At first curves over $\mathbb F_p$. Now I am able to generate prime $p$, $a$ and $b$. Then I need to get random point and measure time of adding and multiplying points.
To get random point:
I need to kno... |
what is the minimum number of keys one would probably use in his brute force attack, Given info- The Algorithm uses a blocking technique where the ciphertext from one block becomes the key to the next block. Size of the block is not known.
|
I have an input of 288 bits (comprising 4 × 32-bit and 10 × 16-bit integers). I need to hash this to 96 bits with as few collisions as possible.
I'm aware that CRC is a bijective hash, thus ensuring 100% even distribution (as I understand it). In my view, I should be able to run 3 parallel CRC paths through the input, ... |
(tldr: see last paragraph)
Although SHA-1 is vulnerable to collision attacks, it is still resistant to pre-image attacks. SHA-1 was designed to be resistant until a brute-force attack of $2^{160}$ is possible, as 160 is the block size of SHA-1.
(Round-) Reduced pre-image attacks are attacks that try to find pre-images ... |
SET and SSL are usually used as secure payment protocols. What are the major differences between them? Which one is better?
|
I'm looking for a special Pseudo Random Function (PRF) $F_k()$ which follows the below.
For fully homomorphic encryption (FHE), $\mathit{FHE}(F_k(x)) = F_k(\mathit{FHE}(x))$.
Or is there any homomorphically evaluable doubling pseudorandom number generator algorithm? (because Goldreich-Goldwasser-Micali PRF construction... |
I ran into an issue with my server that made me ask a question - is AES-256 encryption reliably consistent?
So my node server, to avoid DDOS vulnerabilities while keeping user data anonymous, takes an IP from the request, encrypts it, and stores the number of times it has made a request in the last 24 hours.
It checks ... |
I have created an app which collects data in sets which may contain up to 20000 XML files of an average size of about 5 KB, and all with the same header and XML structure, so that only the data they contain differ.
For certain reasons I've decided to encrypt these XML files so that the data they contain cannot be exp... |
Assume Alice and Bob are communicating using 'MAC then Encrypt' paradigm.
Specifically, they are using HMAC with SHA256 as the hash function and the output is truncated to 40 bits. They are using AES-128 in CTR mode as the blockcipher. Specifically, they do the following:
C=<IV, ENC(M II MAC(M, IV PAD) II PAD)>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.