instruction stringlengths 32 27.2k |
|---|
Please bear with me on this, I'm not learnt in this field, just trying to ask questions about the security of my encryption method.
I'm trying to create a mentally computable human password manager method that can generate strong passwords using a set of operations and a master password, so that you only have to really... |
This Wikipedia article discusses one drawback of quantum key-distribution:
The main drawback of Quantum Key Distribution is that it usually relies on having an authenticated classical channel of communications. In modern cryptography, having an authenticated classical channel means that one has either already exchange... |
I am often confused by Poly-LWE and Ring-LWE, always thinking that they are different names for the same thing. In some literature, Poly-LWE is a simplified version of Ring-LWE? What is the difference?
|
I read in our university lecture on hashing that it would be good (even though it is way to space intensive) if we could take the set of all function from $U \rightarrow V$ to satisfy the following universal hashing condition: for all $\forall x,y\in U$ so that $x≠y$, we have $Pr[h(x)=h(y)]≤\frac{1}{|V|}$
I actually ... |
Seemingly, Niederreiter cryptosystem is faster than McEliece, and it can also be used to implement digital signature. Why isn't this scheme appear in NIST post quantum competition?
|
This paper proposed a new attack on the initial white-box AES implementation of Chow et al.
In order to determine the good solution, we use the
particular structure of the function $S_{0}$.
$S^{-1} \circ S_{0} \left( \cdot \right) = P_{0}\left( \cdot \right)\oplus k_{0} $
By definition of $P_{0}$, the above
function h... |
Do I understand correctly that XSalsa20 + Poly1305 provides authentication without a tag? If so, then how does that work?
I came to that conclusion by reading http://nacl.cr.yp.to/secretbox.html, "Secret-key authenticated encryption", where it states (as far as I understand) that the ciphertext has the same length as t... |
I am studying classical ciphers and have the following doubts:
Is the row and columnar transposition cipher the same?
It is similar since the process of encryption and decryption is the same for both(my opinion).
How did the author get the ciphertext using row transposition cipher? (link: http://williamstallings.com... |
Suppose you have the following set up for RLWE: $K$ is a cyclotomic field of degree $n$ over $\mathbb{Q}$, and $p\in\mathbb{Z}$ is a prime integer that splits as follows in $R = \mathcal{O}_K$: $p\mathcal{O}_K = \prod_{i=0}^{n-1}\mathfrak{p}^{e}_i$. Let $R_p = R/pR$ and $R^\vee$ denote the dual lattice. Let an RLWE sam... |
Assume given $g^X\equiv h\bmod p$ where $g$ is of order $\frac{\lambda(p)}2$ where $\lambda(p)$ is Carmichael Lambda function applied to prime $p$ (so $2$ is invertible in exponent) we can compute $X$ in polynomial time on an assumption $2$ is invertible in exponent (we can assume we take square roots and make the gene... |
Question:
Suppose that there are 10000 = 10^4 banks and 10 payment card organisations (PCOs).
How many secret keys will be needed if each PCO shares a unique secret key with each bank?
How many extra secret keys will be needed if every two banks share a unique secret key?
For question 1, I figured that if there are 1... |
This question Can Elgamal be made additively homomorphic and how could it be used for E-voting?
says ElGamal can be made homomorphic over multiplication. So you can have $(g^r, h^r g^m)$ (i.e., encrypting $g^m$) vice $(g^r, h^r m)$.
Then in this question Difference between Pedersen commitment and commitment based on El... |
SQUARE attack on AES128 requires a single delta set for 4-round variant, or I assume single delta set is enough since keyspace is reduced to few keys which can be easily brute-forced. However, as we increase round number to 5, we need 5 delta sets approximately, as proposed by AES proposal. And further, for 6-round var... |
Say Alice publishes $t$ unique signed messages with her private key $d$,
$$
m_1^d, m_2^d, m_3^d, ... , m_t^d \mod n
$$
For $t = 2$, we have $m_1^d, m_2^d \mod n$ and if we let $x \equiv m_1m_2 \mod n$ then we can produce a valid signature,
$$
x^d \equiv (m_1m_2)^d \equiv m_1^d\times m_2^d \mod n
$$
For $t$ signatures, ... |
Many lattice IBE scheme follow the scheme outlined in ABB10.
In ABB10, the ciphertext is
$c_0 = u^\top s + x$, where $u$ is a public parameter. (No consider message here.)
I want to ask:
Is it possible to make sure the ciphertext is generated following the scheme?
That is, can the sender provide a zero-knowledge proof ... |
In One-way Transport Layer Security (TLS), client who initiates the connection verifies the identity of the server or entity it is connecting to, but server not necessarily validates client identity.
In Two-way TLS connections, both client and server validates each other's certificate (public key) to achieve mutual aut... |
Given some input plaintext and output ciphertext, is there a group of crypto algorithms that mean that a change in the ending x bytes of the input plaintext makes some y change at the end of the ciphertext as well? The point is to conserve the visual pattern, but to still be encrypted.
|
There is an elliptic curve El Gamal digital signature scheme. Alice fixes an elliptic curve $E$, a prime $p$, a point $A$ on $E$, a secret integer $a$, and computes $B = aA$. She makes $(E, p, A, B)$ public. To sign a message m (which is an integer), she computes a point $R = (x, y)$ on $E$ and an integer $s$... |
Can every CCA-secure cryptosystem be used as a CMA-secure MAC?
I know that every CCA-secure system is CPA-secure, but I'm not sure about CMA. From what I understand: for a system to be CCA-secure, it must be both CPA and CMA-secure. So I feel if it is known that the system is CCA-secure then it might be used as a CMA-s... |
How to formally argue that there exists no efficient $A$ who can come up with a $e$ such that $$\begin{align}x&=PRF(e,0) \land \\ y &= PRF(e,1) \land \\ x &= H(y)\end{align}$$ where $H$ is a secure hash function and $|x|=|y|=\ell$?
Note that it's easy to argue that if $A$ just guesses randomly, the success probability ... |
I was reading my professors slides, I understand how meet in the middle works, but I have a few confusions. So we need two $\{(P_1, C_1), (P_2, C_2)\}$. Let $\lg{(k_1)} = \lg{(k_2)} = 56$, we generate $2^{56}$ of the $X = \{x_i = E_{k_{1,i}}(P_1)\}$ and $2^{56}$ of the $Y = \{y_i = D_{k_{2,i}}(C_1)\}$. So far it took u... |
Assume $S$ is a domain. $S' \subseteq S$ and all elements in $S'$ are invertible. $H:S'\rightarrow S$. If $H(x)$ is a one-way function, is $f(x)=H(x)\cdot x^{-1}$ a one-way function?
|
I was looking at this Nano ID page where they generate a 21 characters long ID and it would take 149 billions years to find a collision, so that seems secure enough.
However I found that most APIs use much longer tokens for authentication. For example, Dropbox uses a 64 characters long token (made of complete alphabet ... |
I didn't find a direct solution for it. Can I modify encrypted data without accessing it?
If there is an example, I would appreciate it.
|
I can not understand why collision resistance of a cryptographic hash function is not required for some applications. for example, if we store the trusted hash of a file or program, and later when we open the file and recalculate the hash and compare it to the trusted one, do we need it to be collision resistant?
|
I am wondering if someone can point me toward a block cipher that provides unconditional security for only a bounded number of encryptions. For example, you can encrypt $h > 1$ length $n>1$ blocks with unconditional proof of security, but encrypting more than $h$ blocks will break the security of the whole system (or ... |
Suppose I have a Pedersen Commitment $cm(x,r) = g^xh^r$ where $g,h$ are generators of group $G$ of prime order $p$. Based on $cm$, I want to create a commitment $cm' = (10\cdot x,r')$, without of course opening the original commitment, while knowing that $x$ is a relatively small value (e.g. less than 1 million) throug... |
Suppose a researcher discovers that $P=NP$, and has an efficient algorithm for some common $NP$-Complete problem. Given the implications for cryptography, what would be the most ethical way for them to reveal this knowledge to the world, without causing the downfall and destruction of technological civilization?
|
I am using the method presented in this paper to find the nonlinearity of the function
$$ f: \mathbb{F}^1_2 \to \mathbb{F}^1_2 \\ f(x) = x$$
The truth table is $f = [0 \space \space 1]$. Now, I read from the paper by Terry Ritter that
Nonlinearity is the number of bits which must change in the truth
table of a Boole... |
I have been doing some research on security, and I am confused on the bits of security vs collision resistance, and I was wondering if someone could clarify my understanding.
For instance, if you have an AES has a 128-bit block, being used with a 256-bit key, that provides 256 bits of security, because the key length d... |
I have been given a task to explain if - given a public key and a portion of a private key (over 300bits) with a remain unknown of 80 bits - the private key can be broken with an algorithm faster than with brute force.
I have been checking some stuff like index calculus and baby steps, but I don’t see any apparent diff... |
Securing and authenticating messages is easy thanks to computers. Lately I've been thinking about something like Vigenère cipher with a OTP, how secure it is, and how easy it is to implement without the aid of computers. However, one thing it doesn't provide is any authentication. Decrypting a Vigenère cipher with pen ... |
This post on geeksforgeeks.org about block cipher modes of operation, says that one of the advantages of the CBC is that it works well for input greater than b bits. I also saw that in the book "cryptography and network security by William Stallings". But neither of them said what exactly is that b bits. Can anyone exp... |
I have a rough idea of what is symmetric and asymmetric encryption, but I can't apply the idea to the SET protocol (Secure Electronic Transaction
Specification), so how the symmetric and asymmetric encryption are used in the SET protocol? Also I want to know more about the Preq messages.
|
By hand, I computed $f(x,y) = x \oplus xy = (0, 0, 1, 0)$ since, in ascending (lexicographical) order,
$f(0,0) = 0 \\ f(0,1) = 0 \\f(1,0) = 1 \\ f(1,1) = 0$
However, using the following code on sagemath
R.<x,y> = BooleanPolynomialRing(2)
B = BooleanFunction( x+x*y)
B.truth_table(format='int')
The answer is (0, 1, 0, ... |
In key management, one of the topics is key storage, I want to know where and how these keys(long-term and short-term) are stored?
For example I read that android password apps use KeyStore api to encrypt the the user passwords. I found the following steps for these kinds of apps:
1.Generate a random key when the a... |
So I'm trying to design/make my own encryption algorithm and I believe it to be ok. I'm not saying it's extra secure but I know it's not useless so, what I was wondering is if there are any specific tests I can carry out in order to try and get a better representation of how secure my algorithm is.
Here is some data fr... |
I've been looking all over the internet for an answer, and I must not know how to search because I've been really surprised that I haven't been able to find one. I'd also love to know what makes a block cipher a good candidate for being the basis of a hash function.
Thanks!
|
I am trying to do a known plaintext attack on DES-OFB through crack.sh. I have been having trouble lately. I keep getting blank text file back with no keys returned. Does anybody know if DES-OFB is supported by Crack.sh? I tried contacting them but did not get a response. Here is what I have last submitted.
$ ./des_kpt... |
To avoid the dummy padding block, CMAC uses 2 separate keys K1 & K2. If padding is required, the final block is padded & then XORed with K1. If no padding is required, then it's XORed with K2. I understand how this avoids the extension attack. However, at the verification side, how does Bob know whether the final block... |
In various messengers, we have end-to-end encryption, making it hard to know what the message said.
But do these messengers have to pad the message to some maximum length every time, in order to hide the length of the message?
In a block cipher, there is a minimum length that you have to pad to, right?
My question is h... |
(E,D) is a CPA-secure cipher defined over (K,M,C).H: C → T is collision resistant hash functions.
E(k,m):=E(k,m), H(c)), D=(k,c1,c2):=D(k,c1) if H(c1)==C2 otherwise Reject.
ps:the question is from the book <A Graduate Course in Applied Cryptography[Boneh]> exercise 9.2
can use cpa and cca to proof
|
One could use Falcon-512 for establishing a private and public key for an asymmetric context. Whereas in a symmetric context, we could use firesaber/saber/variants in order to obtain a shared secret that can later be used in an AES-GCM context. My question is: what encryption algorithm do we use when we want to encrypt... |
I’d like to decrypt a Playfair ciphertext; however, I need to find the key word first. Is it possible to use the Friedman test here to find the length of the key word?
My cipher has no J’s in it would this mean my Ni for J would be 0, or would I just leave the J column out?
|
According to Wikipedia block cipher modes of operation, simplified CFB supports random read access. but what about the real CFB where we have a shift register? below are pictures extracted from the book "Cryptography and Network Security by William Stallings" for CFB.
And
Does it support random read access? if yes, h... |
I need to sign some data using RSA. I have the digest that I can sign but the signature turns out different from the signing source data.
There is data in data.bin and its sha256 digest in digest.bin
$ xxd -p -c32 digest.bin
19d512fc649e1668eb84741284ad95ec03f3225719a83e40389dbade4eabe5ed
$ sha256sum data.bin
19d512fc... |
i'm studying RFC 5652 in order to know exactly how to encode/decode PKCS#7 ASN.1 data.
I don't understand how one can create a signature when the field "signedAttrs" is present:
The result of the message digest calculation process depends on
whether the signedAttrs field is present. When the field is absent,
the resu... |
EDIT:
My original problem was that if I have to encrypt large amounts of data, AES would expand the data even more, but this is not the case. This question states that AES does not expand data at all.
ORIGINAL QUESTION:
I have a list of data URIs containing image data that I need to encrypt and save to a file. On avera... |
In this article https://www.mdpi.com/2073-8994/12/10/1687/htm, specifically in the section 4.1 of the initialization phase,the following cryptographic hash functions have been chosen:
\begin{align}
h_1&: \mathbb G\to\mathbb Z_q^*\\
h_2&: \{0,1\}^*\times\{0,1\}^*\times\mathbb G\to\mathbb Z_q^*\\
h_3&: \{0,1\}^*\to\m... |
I have an exercise that says the following:
Let $p$ be an odd prime, and let $a$ and $b$ be generators $\mathbb{Z}_p^*$. Suppose that we have an efficient algorithm $A$ for computing discrete logarithms with base $a$. Show how this algorithm can be used to efficiently compute discrete logarithms with base $b$.
With co... |
I understand why $e$ must be co-prime to the totient of $N$, but I see in many explanations of RSA that $e$ should be less than $\varphi(N)$. Is there a reason for this? Is it for ease of a small number or is there some law in play here?
|
How the value of prime integer taken in Shamir's Secret sharing scheme. I have taken p which is greater than my secret and the no of shares. When i do calculation without modp then secret reconstruct happens successfully but when i do calculations modp then secret reconstruction is not happening.
Below is my example
Se... |
RSA as defined by PKCS#1v2.2 allows public exponent $e=n-2$. And textbook RSA was born with $e=n$ (see second bullet here).
Are these variants essentially as secure as (textbook) RSA with fixed $e$? With random $e$? Can we reduce the security of one to the security of the other, or of another variant of RSA?
Note: as ... |
I have a python project and for this project, I need to use Weierstrass-based ECDSA. On the web, I've found two libraries;
Library 1 is called fastecdsa:
Library 2 is called ECPy:
I couldn't see any security analysis and performance metrics for those libraries.
Is there any security and performance analysis of these... |
In cryptography, a block cipher mode of operation is an algorithm that uses a block cipher to provide information security such as confidentiality or authenticity. A block cipher by itself is only suitable for the secure cryptographic transformation (encryption or decryption) of one fixed-length group of bits called a ... |
If one have files $x_1, x_2, .., x_n$. What are the benefits of using hashing trees $-$ also known as Merkle trees $-$ (for example in git) instead of computing one hash value $h(x_1,x_2,..,x_n)$ ?
|
Let e be a bilinear pairing function and $g_1$ and $g_2$ be the generators of $G_1$ and $G_2$
Given $e(a,g_2^x), e(b,g_2^y), g_2^x,g_2^y$ is there a way to find out if $a = b$?
|
I've been looking into implementing cPace, and I saw that two cipher suites defined for it refered to draft-irtf-cfrg-hash-to-curve for its protocol definition. Part of cPace requires mapping a string hash to a point on the elliptic curve, so it uses the other standard's methods for doing that, in particular its choice... |
I have problem with multiplying bytes by 3 in MixColumns (as in Cryptography And Network Security)
$$\begin{bmatrix}02&03&01&01\\01&02&03&01\\01&01&02&03\\03&01&01&02\end{bmatrix}\times\begin{bmatrix}87\\6e\\46\\a6\end{bmatrix}\mapsto \begin{bmatrix}47\\37\\94\\ed\end{bmatrix}$$
87 = 10000111 => SHL = 00001110 => 00001... |
For odd prime $p$, I have been given a group $\mathbb{Z}_p^*$ of all invertible elements from $\mathbb{Z}_p$. Basically, $\mathbb{Z}_p^* = \{1,2,\ldots , p-1 \}$. I also have $a$ and $b$, which are two generators of $\mathbb{Z}_p^*$. My question is, by what modulo calculations with the discrete logarithm are performed ... |
I am trying to understand the security level of TinyJAMBU-128.
As shown in Table 4.1 page 12 of this document, TinyJAMBU-128 claims 112-bit security. However, it has a 128-bit key. How have we lost 16 bits of key? What is the obvious attack that has $2^{112}$ time complexity?
|
I was looking at the proof of a change of base formula for the discrete logarithm in this paper (page 6, 4th bullet indent).
In the intruduction, the paper states:
Let $F_q$ be a finite field of order $q$, where $q=p^n$ ($p$ prime), and let $F_q^* = F_q -\{0\}$. Given $g$, a primitive element of $F_q$, and an arbitrary... |
In NIST's Submission Requirements and Evaluation Criteria for the Lightweight Cryptography Standardization Process document it is stated that:
3.1 AEAD (Authenticated Encryption with Associated Data) Requirements
An AEAD algorithm shall not specify key lengths that are smaller than 128 bits. Cryptanalytic
attacks on t... |
The SIGMA protocol proposed in 2003 and used in TLS 1.3 and IKE stands for "SIGn-and-MAc" and can optionally protect identity using encryption.
The SIGMA-I variant illustrated below indicates that it uses a MAC-then-encrypt approach:
Here $\{\dots \}_{K} $ denotes encryption of the information between the brackets und... |
Reading through the NodeJS API docs I came across IV for the first time. From what I can tell it has the same role as a salt in password hashing? Are they equivalent?
|
I want to use AES CTR with a random IV, as this would be the easiest way for me. I have a cryptographic module, that supports true random number generation. Due to compatibility, I must use AES CTR. The module also supports a monolithic counter, but its max value is quite low and might be too low for my use-case.
RFC 3... |
Supposing a secure hash function $f(\cdot): \{0,1\}^* \rightarrow \{0,1\}^n$ satisfies pre-image resistance.
That is, given a hash value $y$ it should be difficult to find any message $x$ such that $y = f(x)$ within $O(2^{n})$ efforts.
The question is:
Given $y \in \{0,1\}^n$, if we find $x_1,x_2$ such that $f(x_1) + R... |
I want to implement AES-CBC mode with PKCS#7 padding, along with a way to validate a correct padding given the ciphertext. My initial understanding was that for an input of size n (where n is less than 16) PKCS#7 pads 16-n until the input becomes divisible by 16 (or equal to 16 in this case). But later I realized that ... |
I am wondering why CMS (PKCS#7) Signed Data contains always a different signature of the original data when the SHA256withRSA signature algorithm is used. (using Bouncy Castle by the way)
The SHA256withRSA is using the SHA-256 as a message digest algorithm and EMSA-PKCS1-v1_5 for encoding the message digest before sign... |
Let F be a secure pseudorandom function with 128-bit key and 256-bit block length. Which are the following functions G are secure pseudorandom generators? (Select all that apply.)
A. $G(x)=F_x(0...0)$, where $x$ is a $128$-bit input.
B. $G(x)=F_x(0...0)|| F_x(0...0)$, where $x$ is a $128$-bit input.
C. $G(x)=F_x(0...0... |
Stream ciphers are usually used for streaming data encryption, such as voice, and also for low layers data encryption. For example, MACSec uses AES-GCM encryption.
In L3 ad L4 security protocols (IPSec and SSL) block ciphers are preferred (AES-CBC).
Why are stream ciphers considered to be better than block ciphers in ... |
Consider the following ElGamal encryption (using a generator of $\mathbb Z^*_p$):
Key gen:
find a big prime $p$ and $g$ a generator of $\mathbb Z^*_p$.
choose $a\in \mathbb Z_{p-1}$ randomly and calculate $A\leftarrow g^a \bmod p$
the private key is $(p,g,a)$ and the public key is $(p,g,A)$
Encryption:
choose $b\in ... |
I apologize if this is in the wrong section. I am completely new to Cryptography. I was presented with the following problem and I am trying to find something that will explain to me how to proceed.
Demonstrate the Diffie-Hellman key exchange using an elliptic curve y^2 = x^3 + ax + 9 mod p, where p = 223. Use XA = 8, ... |
This is from Dan Boneh's book
4.5 Constructing block ciphers from PRFs
Let F be a PRF, defined over $(K, X, X)$, where $X = \{0, 1\}^n$. We describe a block cipher $\varepsilon = (E, D)$ whose key space is $K^3$, and whose data block space is $X^2$.
Given a key $(k1, k2, k3) \in K^3$ and a data block $(u, v) \in X^2$, ... |
In general, $O(1/\epsilon^2)$ queries are required to distinguish between two distributions that are statistically close at most $\epsilon$.
This informal state deals with the required number of queries to distinguish between two distributions. However, I cannot find any statement that when we have $Q$ queries, then we... |
Currently there are only 4 direct candidates left that provide KEM. Generally performance seems to be "OK" for those candidates. However, the key and encapsulated key sizes (i.e. the output size of the algorithm) may require some interesting tweaks in the protocols.
I could not directly find these sizes on the Internet... |
Say one is doing some cryptography around the set of congruence classes, namely: $$\mathbb{Z}/n\mathbb{Z} = \mathbb{Z}_n = \{[0]_n, [1]_m, \dots, [n-1]_n\}.$$
Sometimes we use to write $a \leftarrow_R \mathbb{Z}_n$ to denote that we are sampling an element from $\mathbb{Z}_n$. But, what exactly means to perform such a ... |
I would like to know whether these two problems are equivalent or not, namely:
$SIS_\alpha$: Given $A \in \mathbb{Z}_q^{n\times m}$ find $ e \in \mathbb{Z}_q^{m}$ such that $ Ae = 0$ and and $\|e\| \le \alpha$.
$ISIS_\alpha$: Given $A \in \mathbb{Z}_q^{n\times m}, y \in \mathbb{Z}_q^{n}$ find $ e \in \mathbb{Z}_q^{m}... |
I see that in many applications stream ciphers are common than block cipher - whether is Salsa20, AES-GCM, etc. In which cases would a stream cipher be preferred over a block cipher and vice versa?
Also, why will we prefer to use a block cipher at all if we can use a stream cipher - which is faster, errors are not cumu... |
I've observed that when you view only the LSB of an image it is typically random looking, but often has areas that correlate with the over all structure of the image. It's common for there to be large sections of the image that are solid 1s or 0s. There are often blocky patterns. Complete randomness of the LSB would th... |
When we consider the security of a cryptographic hash function with $n$ bit output, we simply say that it must have at least $\mathcal{O}(2^{n/2})$-time security against the (generic) collision attack due to the birthday attack / paradox.
When we talk about the attacks from an educative perspective, one needs to demons... |
I created my random numbers and I saved them into a txt file. My input file includes just 0 and 1. Here is the link of my file
And I of course read some answer before asking that question but I could not understand how can I create an input file for diehard. Do diehard have some prepared comment for converting our inpu... |
In many cryptographic protocols design like this one, I have seen the statement 'Choose a Hash function for example:
\begin{align}
h&: \{0,1\}^*\times\mathbb G\to\mathbb Z_q^*\\
h_2&: \{0,1\}^*\times\{0,1\}^*\times\mathbb G\to\mathbb Z_q^*\\
\end{align}
in which it takes as input a binary string and a random element ... |
I want to make it as hard as possible to brute force data I hash. How can I make hashing take X seconds?
|
I was not able to mathematically prove that all permutation and substitution ciphers satisfy H(X)=H(Y) if we say that Y is the set of ciphertexts while X is the corresponding set of plaintexts in Shanon Entropy?
More generally, how is it possible to mathematically prove that Shannon entropy does not change when applyin... |
We know that for the last step of QRNG: we need to separate quantum and classical noises from each other so we use extractors, after extractor we need privacy amplification step. At this point: if extractor is a strong extractor we can use it as a privacy amplification too. However I could not understand differences be... |
What exactly is the difference between Zero Knowledge Proof & Challenge Response Authentication?
I searched online and the best I could find are these:
techtarget.com
Zero-knowledge password proof systems depend on cryptographic methods
that enable both parties -- client and server -- to authenticate to
each other. ... |
I understand on a conceptual level that a certificate is nothing more than just a verified public key. The next question I have, is how exactly do I see the contents of a certificate? Apart from the public key it verifies are there other information that the certificate contains? Does the certificate also contains the ... |
For a DH parameter prime, if the generator $g$ is 2, how do I get the order $q$?
|
I want to know if there is any mathematical or brute force approach to decipher simple black box
A: Is only one digit (0...9)
B: Is 2 digits (00..99)
C: Is a result of a linear function between A & B, for example it could be C=A2+8-10B or C=A*A-B ...
we have this table:
How can we find C ?
What if there is non-liner f... |
In the AES encryption process, there are various sub-operations, like SubByte, MixColumns, ARK etc. My question is which of these operations is more expensive? In a video lecture by Dan Boneh, it is mentioned that the lookup table implementation of AES is faster than the implementation where the MixColumns function is... |
Let we have a finite (small compared to 2256) set $T$ of 257-bit numbers.
Need a function $f: T \to 2^{256}$ such that it's almost of zero probability that $f(n)=f(m)$ for two different numbers $n,m\in T$.
Computation of $f^{-1}$ must be constant (at worst logarithmic) on the size of $T$.
Computation of $f$ must also b... |
The idea of the Bellare-Micali Oblivious Transfer Constructions is the following:
Informally, the receiver is required to generate two public keys $y_b$, $y_{b-1}$ such that it knows only the secret key paired with $y_b$ (where $b$ is its choice bit), indicated with $k$.
In order to prevent the receiver from cheating,... |
I was wondering how is it possible to mathematically prove that Shannon entropy does not change when applying any bijective function to X? For instance H(X) = H(f(X)) assuming that f is invertible and X takes only finitely many possible values. In addition, I saw that this holds for block ciphers also but I could not f... |
I thought of a way to produce trustless card game in a flexible way. One feature that I want is it should be flexible (It should work for any type of card game, though I indeed started it as a solution for mental poker) and scalable (the number of players should not be limited by anything other than the rules of the pa... |
I used to saw a lot of encryption papers that have small significance in security improvements especially in terms of entropy, histogram and coefficient correlation especially in image encryption. Why is this happening?i mean why still publish a proposed method that have 0.001 or so on improvement in terms of entropy o... |
Let's consider 128-bit cipher. Now let's consider example keys $k_1$ to $k_{128}$:
$k_1$: 10
$k_2$: 1100
$k_3$: 11110000
...
In general every key $k_n$ can be some binary number which is consist of $n$ zeros and $n$ ones. This keys are mapping some encryption scheme. If $k_1$ is 10 it means that all least significant b... |
I will write this question using a database example, but please note this detail may be irrelevant.
Let's say I have data belonging to N clients stored in a single column of a database table. Each client has their own AES key used to encrypt/decrypt their own data.
In this setting, I have the understanding that if some... |
With reference to this question:
First, when using padding (PKCS or OAEP), if the ciphertext has errors in transmission we'll always get an error at the decryption process?
where the answer is:
Yes, with extremely high probability. This is basically a chosen-ciphertext attack and RSA-OAEP is fully immune to them, so... |
I stumbled upon a paper that proposes local DP around this argument:
A user $u_i$ generates a sequence $s_{i}$ of observations at certain timestamps:
$$
s = ((t_1, x_1), (t_2, x_2), \dots, (t_n, x_n))
$$
The authors apply $(\varepsilon/n, 0)$-DP to each sequence by adding Laplacian noise
As widely known, Laplacian m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.