instruction stringlengths 32 27.2k |
|---|
Public-key cryptography was not invented until the 1970's. Apart from the idea not existing earlier (as talked about here), is there any reason it could not have been used earlier? For example, are there forms that are easy enough to perform by hand but complicated enough to not be solved (easily) by hand?
|
Let's say I have a private key x with a corresponding public key y. If I encrypt x as E(x), is there a zero knowledge proof I can use to show that E(x) contains the private key for y?
|
I have read in many places that Fiat Shamir technique is used to convert constant round interactive protocols to non-interactive arguments. What would be the problem in applying Fiat Shamir to poly-round protocols?
|
The FLS zero knowledge protocol for graph hamiltonicity proceeds as follows.
The prover (proving graph hamiltonicity of graph G) picks a random cycle graph C, and sends its commitment to verifier.
Verifier picks a random bit b and sends it to sender.
If b = 0, then prover decommits all the edges of graph, and verifier... |
I have a one way communication from one device to another, which needs to be secure and there cannot be any feedback in the other direction. Now both sides happen to have ECC P-256 key pairs and they know public keys of each other. So, I thought it would be natural to use the shared secret which is already 256bit - sui... |
I want to present the basics of how RSA works to an audience of beginners in cryptography. The problem is that I am lightyears from being an expert.
After reading about how RSA works in wikipedia, this is the "toy" demonstration I created:
We shall assume that Bob has a secret natural number that he wants to tell Ali... |
I have two devices with hardware tokens that contain P-256 private keys, and which allow me to compute ECDH shared secrets with arbitrary public keys. I need to build a tweakable key derivation function, which deterministically allows both sides to generate the same key given their partner's P-256 public key and a twea... |
I was trying to verify the following JWT on JWT.io with the following public key:
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJFVS5FT1JJLk5MODEyNDU4ODM3IiwiYXVkIjoiRVUuRU9SSS5OTDIxOTA0ODExMyIsImNsaWVudF9pZCI6IkVVLkVPUkkuTkwyMTkwNDgxMTMiLCJleHAiOjE1NjUyNTg1MzEsIm5iZiI6MTU2NTI1NDkzMSwiaWF0IjoxNTY1MjU0OTMxLCJzY29wZSI6W... |
I have a hash that I want to sign, with the hexadecimal representation: hash_bin=0x11223344 (length 4 bytes).
The same hash also has a character representation hash_text=”11223344”, which is the binary stream {0x31, 0x31, 0x32, 0x32, 0x33, 0x33, 0x34, 0x34} (length 8 bytes).
Which of the hash versions (hash_bin – 4 byt... |
To encrypt a message
$$
P = 53, Q=59, n=PQ=3127, e =3
$$
let message M, for example, $ 89
$$
cipher = 89^{e}mod\quad n.
$$
cipher = 1394 this is the encrypted message
$$
\phi=(P-1)(Q-1)=3016
$$
$$
d=\frac{2(\phi(n))+1}{e} = 2011
$$
decrypt
$$
89 = 1394^{2011}mod\quad 3127.
$$
This is the original message
But I don't ... |
In their book, Understanding Cryptography, on page 37, Christof Paar and Jan Pelzel write:
Definition 2.2.2 One-Time Pad (OTP)
A stream cipher for which
the key stream s0,s1,s2,... is generated by a true random number generator, and
the key stream is only known to the legitimate communicating parties, and
every key s... |
Background
I am currently writing a password manager application. As usual, the passwords are put in a file encrypted using a user-entered password. I'm using the NaCl library but actually it's not really important.
Here is what I do to encrypt the file content with a user-entered password P:
First I generate a random... |
I am confused about TLS_DH_RSA_* ciphers because, for DH to work, the server certificate has to include a DH public key, but for server authentication the server certificate needs an RSA public key. Can an RSA certificate include both a DH public key and an RSA public key?
Can somebody help to explain how DH_RSA key ex... |
TFHE (Fully Homomorphic Encryption over Torus) seems to be a state-of-the-art form of homomorphic encryption.
But, I got a bit confused.
I have recently read the paper Fully Homomorphic Encryption without Modulus Switching from Classical GapSVP from CRYPTO 2012.
The author states in section 1.1 that
For technical rea... |
Is there a risk when publishing multiple signatures for the same message? For instance, an ECDSA key (using an EC key) and a RSA-PSS signature (using a RSA key).
The context of my question is the use of Web Crypto Javascript library, where the only signature algo implemented by Edge is RSA-PKCS1 (which is not the lates... |
For any SHA-family of algorithms (including Keccak) except for SHA1, would it be theoretically possible for there to exist a pre-image a whose hash digest b is the pre-image to the hash digest c which is the pre-image to a thus completing a circle (i.e. circular hash or collision of pre-image a with the digest a)?
${{... |
Has anyone done a study, assembled a snapshot, of how encryption is actually being used on the Internet at this moment?
So many companies do traffic analysis, the usage share of operating systems, etc., and one imagines that national-level agencies do this too, perhaps in incredible detail, but does any open-source inf... |
So, I've generated my GPG key pair. Created a subkey for signing and a subkey for encryption. Exported the whole thing, removed my master key pair to a secure place, re-imported only the subkeys. Now, I take my fingerprint and passport to a signing party and folks verify my identity and go pull my key off a keyserver, ... |
I am designing an application that will need an API key. At first I believed that generating a long, random token would be secure enough (say 32 chars string that includes 0-9, a-z and A-Z), and then I could store it or its hash on the server-side for authenticating clients. But after Googling some HN threads I found t... |
SHA-3 was released by NIST just over 4 years ago this week. In my experience it does not seem to be as widely used as I might have expected. I see SHA-2 and even SHA-1 more often. What are your opinions on why this is the case?:
|
Normal AES-GCM generates an authentication tag at the end of encryption. I want to decrypt it while it is still being encrypted. This would be useful to send, encrypt, receive and decrypt a large file (for example) in one go.
This would also be useful for other things like for video streams or encrypted calls. How coul... |
My task is to check if this S-BOX is an AES S-BOX. My Idear is, that you cant use it because 16 - 10 and 17 - 9 will give you the same output.
Given Matrix:
|
I've been reading up on Sigma Protocols and Fiat-Shamir Heuristic. There is a small problem I see here that is possibly already solved, but I'd like to know if it has a solution.
Peggy wants to prove to Victor that she has $x$
They both agree on a constant $g$ and a prime number $p$, as well as a "puzzle", usually in ... |
I am willing to create a server side licensing system for my commercial softwares but not really sure what cryptography method I should be using for best possible security per the standard of modern cryptography and how should I implement the method.
My first requirement for the software that I am delivering, is to alw... |
This question follows on from the question Circular hash collision where digest is pre-image: Could hash(a) = b, hash(b)=c, then hash(c)=a?
The question was answered but the issue of the number of collisions was also raised. I have moved my answer to this query as a separate question. The other question begins:
For any... |
Is there an algorithm or program that can take an image, be encrypted, still be opened by an image viewer, but is restored when decrypted?
Basically I want the ability to secure images but still have them seen as "image files".
|
I am currently working as a statistician, and I hope to do a career switch to cryptography as I have become interested in cryptography research. I currently have a bachelor's degree in mathematics as well as working experience as a statistician.
What is the best way to do a mid-career switch for a statistician? Also, ... |
I'm searching for a (preferably simple) explanation of the Cheon-Kim-Kim-Song scheme for fully homomorphic encryption.
All I did find so far is the original paper, which is rather difficult to understand for me. (Link: https://eprint.iacr.org/2016/421.pdf)
Anything is appreciated (text, videos, powerpoints etc.). Thank... |
For DH key agreement, one must begin with a generator of a cyclic group g.
However, intuitively to me at least, it seems that g may be expensive to calculate for a random cyclic group mod some large prime p.
How is this done efficiently on the fly for Diffie Hellman?
Probably this is naive, however it would seem one mu... |
Somewhat recently I learned that there's a separation between an encryption scheme being CCA2 secure and being AE secure, namely PRPs.
So if we would use AES as an encryption scheme for fixed-size messages it would be CCA2 secure but not AE secure as an adversary can simply query any ciphertext and not get $\perp$ back... |
I found multiple posts regarding the differences between HMAC and RSA. Why should I prefer one or the other?
These are some examples:
HMAC SHA256 vs RSA SHA256 - which one to use
What are the different use cases between an HMAC and digital signature?
I am designing an SSO (single sign on) scheme to enable registration ... |
According to the spec, MULx operation is defined as -
MULx maps 16 bits to 8 bits. Let V and c be 8-bit input values. Then MULx is defined:
If the leftmost (i.e. the most significant) bit of V equals 1, then
MULx(V, c) = (V <<8 1) ⊕ c,
else
MULx(V, c) = V <<8 1.
Example:
MULx(0x69,0x1B) = 0xC2
MULx(0x96,0x1B) = 0x2C... |
How can padding be disambiguated from data, when encrypting using a block cipher?
I'm by no means an expert in cryptography, but rather a programmer with a keen interest.
Suppose, I've X bytes of data, message M, that I want to encrypt using an N-byte block cipher, where N >> X.
How can M be padded using N-X bytes of... |
I have known that the vector is sampled from Gaussian distribution in lattice-based cryptography because the distribution of the vector $\mod{\mathcal{P}(\mathbf{B})}$ approximates to uniform distribution.
It is proved by below lemma.
For any $s > 0$, $\mathbf{c} \in \mathbb{R}^n$, and lattice $\Lambda(\mathbf{B})$, t... |
I'm aware that individually, each has its weaknesses (especially CRC32), but is it feasible that a file could be created to falsely match all three?
|
For some cryptographic methods you can construct them. e.g. elliptic curves (product of two cyclic groups) or Diffie–Hellman (can be product of n-cyclic groups). But they have no usage because at a possible attack you can reduce the problem to a single group.
So is there any cryptographic method which benefits (or eq... |
I am currently working on a desktop TOTP client.
From the TOTP spec at https://www.rfc-editor.org/rfc/rfc6238#section-4.1, the 6 digit OTP is generated from counter (in this case time).
But what is "time"? The spec says that the time is in the format of a Unix time epoch (seconds that have elapsed since Jan 01 1970).
... |
I am aware that when the equation $\#E(\mathbb{Z}_p) = p$ holds for prime $p$, the elliptic curve is called "anomalous" and is insecure do to "Smart's attack".
Consider the similar case that $E(\mathbb{Z}_p)$ has a proper subgroup of (prime) order $p$, so $p \neq \#E$. In this case $p$ divides $\#E$ and $\#E > p$. Thi... |
I'm currently learning cryptography at a university. I can't wrap my mind around how the involutional property of Engima reduces its possible ciphers while being poly-alphabetic. Can someone please explain this?
The German Wikipedia link says that if the plaintext is ABCD, then the ciphertext CADB is impossible.
We're... |
I've been doing a bit of reading on the use of XOR and the dangers of key reuse. I'm aware that reusing a key can open a door for a frequency analysis attack on my plain text. So far, everything that I've seen indicates that a frequency analysis attack depends on there being "plain text". The thought being that lang... |
It is a well-known fact that using the same key + nonce combination with a stream cipher twice breaks security. The NaCl library has different primitives for authenticated encryption (i.e., xsalsa20poly1305 and aes256gcm) and its website warns:
Beware that some of these primitives have 8-byte nonces. For those primiti... |
Some cryptosystems operate on the domain of the form $\mathbb{Z}_q[x]/\langle x^n-1\rangle$ and others operate on $\mathbb{Z}_q[x]/\langle x^n+1\rangle$.
What's the security impact of the two forms?
|
I'm not able to appreciate the importance of mul alpha and div alpha operations in feedback polynomial of LFSR in SNOW 3G. What problems or weakness do they help in mitigating and how ?
|
I am working on a crypto project using the secp256k1 elliptic curve.
I know that I can select a random point $P = (x, y)$ from the curve by randomly selecting the first coordinate $x \in \mathbb{Z}_p$ (where $p$ is the prime of the elliptic curve field $\mathbb{F}_p$) and computing the second coordinate $y$ using the c... |
In a system were both sides have access to a common secret, and
publicly exchange an iteration count and salt, can a PKCS#5 (Password-based Encryption Standard) algorithm
be used to generate a key suitable for use as a session
key to support AES encryption of a small stream
(<1Mb) of data?
My question is: can both side... |
Given $F$ a secure PRF with input size $\lambda$. Define $F'$ as
$F'(k,x||x') = F(k, 0||x)\oplus F(k, 1||x')$
with $x$ and $x'$ of $\lambda-1$ bits.
Is $F'$ a secure PRF?
|
In zero knowledge proofs, would it make a difference if the prover is deterministic or probabilistic?
As the verifier can simulate the prover's interaction with him, I assumed that the prover would need to be deterministic. Maybe this is a misunderstanding on my part?
|
Let's say that Alice has this information about her,
{ "name": "Alice", "age": 25, "eyes": "brown" }
which she encrypts with a key pair so that no one access this text.
Later she says Bob that her eyes are brown and Bob should be able to verify only that she has brown eyes, with other information remaining secret.
Thi... |
Consider two sets $A=\{a_1,a_2,\cdots,a_n\}, B=\{b_1,b_2,\cdots,b_m\}$;
We can calculate the hash sum of those sets:
$$HASHSUM()=(ℎℎ(a_1)+ ℎℎ(_2)+\cdots +ℎℎ(_))$$ and
$$HASHSUM()=(ℎℎ(_1) + ℎℎ(_2)+ \cdots + ℎℎ(_)).$$
Is it possible that set $$ does not equal the set $$, yet $$HASHSUM()=HASHSUM()?$$
Specifically, if $n$... |
An attacker has a hash $h$ and a message $m$. He wants to find $m^\prime$ with the same length as $m$ which hashes to $h^\prime$. However, $m^\prime$ can only differ from $m$ in the 1 bits (i.e. binary 1 can be changed binary 0, but not the other way around). Additionally, $h$ is malleable, and $h^\prime$ differs from ... |
I had a quick look at FHE libraries like SEAL, HeLib, and Palisade and they deal with addition or multiplication of encrypted data.
Is there a FHE that deals with string? If no, is that because it is computationally expensive or there is a better/simpler way to work with text/string-based encryption?
Example of string-... |
Scenario 1: SenderA sends message1 to ReceiverB
message1 is encrypted using NACL crypto_box using SenderA secret key and ReceiverB public key.
we understand that the NACL crypto_box authenticator proves to ReceiverB that message1 originated from SenderA.
we understand that ReceiverB cannot prove to a third party that ... |
I followed the description here:
Public-key authenticated encryption: crypto_box
and created an example that encrypts a message with Bob's public key and signs it with Alice's secret key :
cipher = crypto_box(secret_string, nonce, bob_pk, alice_sk);
The cipher text can be decrypted and verified with Bob's secret key a... |
I would like to develop a protocol for specific purpose. This protocol will utilize asymmetric cryptography in which one private key can be paired with numerous public keys: messages encrypted with any of those public keys can be decrypted by that one private key.
That seems to be feasible with elliptic cryptography as... |
I am new to bulletproofs. From what I understand, if I was to do a range proof using bulletproofs, both the start and end number have to be a power of 2.
is there any algorithm/approach which can be used to expand this to numbers that are not powers of 2?
Example: find if a number is in the range 18 to 65?
|
Elliptic curves are usually defined over prime rings (fields), but what if we chose a ring of composite order? Let $n = pq$ for $p,q$ large primes. Say I have elliptic curve $y^2 = x^3 + ax + b$ over the Ring of integers mod $n$. And I have two points on the curve, say $A, B$ such that $A = xB$. From this alone, it sho... |
I need to encrypt a 4-digit number. The cipher-text can be up to 11 digits long and there are no limits for the key size.
Considering that the attacker has access to both the cipher-text and the plain-text but I want the key to remain secret, what algorithm would you recommend?
|
Much of modern cryptography is based around working with boolean or arithmetic circuits. For example in Multi-Party Computation the 'famous' results allow for the secure computation of any function that can be represented as a boolean or arithmetic circuit.
I am wondering what the limits of these circuits are, what are... |
If I wanted to create a TOTP-esque algorithm that generated a string n characters long, with each character being a base64 character, generated from a user secret r Base64 characters long, every s seconds, for each of u number of users, where the probability of collision is very small, how would I calculate the length ... |
Let
$c_N = g^i \mod N$ and $N=p \cdot q$
and
$c_P = f^j \mod P$ and $P$ a prime
We assume $N,P$ has the same bit-length. $P$ is the best type of prime you can choose (e.g. safe prime). $N$ is a product of two or more primes. Those factors are also chosen as best as possible. $g,f$ generators for largest group possible.... |
I am trying to prove that El Gamal Encryption is not CCA-Secure.
If an adversary queried the encryption oracle for the encryption of $m=1$, he'll get a pair $(c_1,c_2)=(g^y,g^{xy}\cdot m)=(g^y,g^{xy}\cdot 1)=(g^y,g^{xy}).$ Then he could calculate $g^{-xy}$. Then he sends the challenger a pair $(m_0,m_1)$. When he gets ... |
Would there be any benefit to symmetrically encrypting the IV and MAC in an AEAD mode of operation? More specifically would this prevent someone from exploiting the accidental use of a duplicate IV with the same key? Normally with most AEAD modes (and XOR-based stream ciphers) same IV + same key + different message = b... |
I want to construct a hash-chain where I want to share millions of small AES-128 keys with Bob over a period of time. Bob should not be able to predict the future keys if he knows the past keys. I also want to avoid having Bob storing all these keys, but rather be able to derive them so that if they know the key from t... |
I recently read in Cryptography textbooks and online videos that compared to Textbook RSA which is insecure against Chosen
Plaintext Attacks (CPA) and Chosen Ciphertext Attacks (CCA), RSA-FDH is Existentially Unforgeable Under Chosen Message Attacks
(EUF-CMA) if the hash fuction is uniformly random.
However, to my sur... |
I want to hash a multiset to a point on the elliptic curve $y^2 = x^3 + 3$ over a finite field of some 254-bit prime order, where $P = 3 \pmod 4$. Moreover, I want this hash to be incremental, in that the hash of the union of the multisets should be the same as the elliptic curve group sum of the hashes of each multise... |
I am currently reading about how more efficient and ''light'' is ECC compairing to RSA as far as key generation is concerned. My question is simple, why does RSA continue to be used today (ex.SSL) while the ECC can be used instead, which has advantages over RSA?
|
given:
$c=g^i \bmod P$
$g$ generator for group with group size $\varphi(P)$
$g,P,\varphi(P)$,c is known by the attacker
He wants to know $i$.
Now the attacker also knows $j,k$ with $j<i<k$
$k-j$ is too big to compute them all but it is much smaller than group size.
Does this knowledge about $i$ help the attacker?
|
See equation below as I see an easier alternative, as I'm having trouble explaining it. Is there a hash function where many hashes can be combined together in a way where any single hash can be combined with a hash of the rest of the hashes to generate the hash of all hashes?
Seems to me like a hash that fits this prop... |
Let $n = p*q$, with $p \neq q$ and $x^2=1 \pmod n$, $x+1 \neq 0 \pmod n, x-1 \neq 0 \pmod n$ (So x is a non-trivial square root mod n.)
I don't see how $\gcd(x+1,n) \in \{p,q\}$ follows.
I understand that $x^2=(x+1)(x-1)$, so $n=p*q$ is a factor of $(x+1)(x-1)$, but neither of $(x+1)$ nor of $(x-1)$ (as a x is a non-t... |
There are 2 computers who are going to exchange lots of small packets of data between each other. To generate a shared secret, an elliptic key exchange takes place. If this key is hashed with the current time, and the data is then encrypted with this key via a one time pad cipher algorithm, and then the time is sent wi... |
Given the following context below, how does one show or prove the encryption scheme is NOT IND-CCA secure
The IND-CPA secure private-key encryption scheme for n-bit messages can be constructed from a pseudorandom function as follows $F : \{0,1\}^n \times \{0,1\}^n → {0,1}^n$ as follows:
$Gen(1^n)$: Return $k ← \{0,1\}... |
Suppose Alice has committed to several sets of values using Merkle trees. For example, let's say there are 2 sets of values, and each set represents leaves of a separate tree like this:
$a_0, a_1 ... a_n$ are the leaves of tree $A$
$b_0, b_1, ... b_m$ are the leaves of tree $B$
Victor wants to make sure Alice didn't... |
I have implemented a simple encryption/decryption program based on AES-256 in CBC mode1.
Actually, it is more precise to describe it as a compression+encryption / decryption+decompression program.
If one provides the wrong key to the decryption+decompression function, the decompression stage will explicitly fail, as ex... |
For this question my focus is exclusively on symmetric block ciphers (with a particular interest in AES256 in CBC mode).
I have read much discussion on various ways to pad the plaintext so that the length of the input to the encryption algorithm is a multiple of the blocksize.
The real problem here is not padding to a ... |
Let a function $f$ be one-way, if there exists a probabilistic polynomial time algorithm to find the preimage of $y = f(x)$ for uniformly chosen $x$ with non-negligible probability.
Define the function as $f(x,y) = x\times y$, where the values of $x$ and $y$ range across the integers in $[2^{n-1}, 2^n-1]$ (basically, t... |
Note that I am asking specifically for Partial Homomorphic Encryption (PHE) schemes and not Somewhat Homomorphic Encryption (SHE) schemes. I believe there are several SHE schemes that are symmetric but I am not familiar with any PHE schemes that are symmetric.
|
https://www.rfc-editor.org/rfc/rfc4418#section-3.2.1 describes the parameters for KDF as follows:
Input:
K, string of length KEYLEN bytes.
index, a non-negative integer less than 2^64.
numbytes, a non-negative integer less than 2^64.
My question is... why is index defined as "a non-negative integer ... |
I understand that if $p$ is prime then $p-1$ must be composite (at least divisible by $2$ as it is even). But how does an algorithm find a prime $q$ such that $q \cdot r = p - 1$. I thought prime factorisation is such a hard problem?
|
I know hashes can be used to construct symmetric encryption schemes (HMAC running in counter mode), signature schemes (SPHINCS), pseudorandom generators, etc.
One thing that's missing is public key encryption. Is it possible to create a hash based public-key encryption scheme?
My intuition says no. But it would be nice... |
In "Certificate details -> key usage -> CRL Signing (06)", what does "(06)" in "CRL Signing (06)" mean?
|
We are given a list of possible strings, there are $32^{16}$ ($=2^{80}$) to be exact.
We also have the unsalted SHA512 of the original target string.
How long would it take to go through those strings, generate an unsalted SHA512 hash and then check if that hash matches the target hash?
It's for a research project, we ... |
I am currently doing some reading on Homomorphic Encryption for research purposes and based on my reading using the Boolean Circuit Model of Computation specifically in regards to Fast Fully Homomorphic Encrytion over the Torus(TFHE) how is it considered fast and why is the noise growth and depth negligible?
|
I want to encrypt several files with the scrypt encryption utility. Here is an overview of its file format, which gives an indication of what it does:
scrypt encrypted data format
----------------------------
offset length
0 6 "scrypt"
6 1 scrypt data file version number (== 0)
7 1 log2(N) (must be betwee... |
Is it safe to use the SHA256 of a hard-to-bruteforce string as the key to encrypt data with AES256?
|
I would just like to ask what is the classification of both BFV and CKKS scheme are they Somewhat Homomorphic or Fully Homomorphic?
Brakerski/Fan-Vercauteren (BFV) [Brakerski12, FV12, BEHZ16, HPS18]
https://eprint.iacr.org/2012/144.pdf
Cheon-Kim-Kim-Song (CKKS) [CKKS17]
https://eprint.iacr.org/2016/421.pdf
|
This is a follow-up to a previous question about encrypting IV/MAC results from AEAD ciphers.
I have a system I'm working on that needs to use standard (NIST/FIPS) cryptography, at least for its primary security layer. This is going to be AES-256/GCM used exactly as directed. I am also going to have periodic re-keying ... |
I have read some papers that give the definition of one-wayness of PKE schemes.
Let $\Pi = (G,E,D)$ be a PKE scheme, and the security game of OW-CPA is defined as follow:
$$\mathrm{Adv}_{\Pi,\mathcal{A}}^{\text{ow-cpa}}(k) = \Pr\left[ m = m' \left\vert
\begin{gathered}
(pk,sk) \gets G(1^k) \\
m \gets \mathcal{M}_{k} \\... |
Are there any interesting connections between the fields of data science and cryptography?
Data science involves the use of statistical analysis to analyze data while cryptography also involves statistics in crypt-analysis in order to protect data. And of course both fields require a lot of math.
So I wonder if there a... |
Wondering if anyone knows a good reference for Pollard's $p-1$ algorithm's runtime? I was looking on the Wikipedia page and the runtime cited there is $\mathcal{O}(B\cdot \log B\cdot \log^2 n)$. However, I can't find any reference on the Wikipedia page to this.
Where / how is this result proven?
|
Just started reading Oblivious Transfer. I am searching for a proof of security based on RSA implementation but I can't find anything simple to understand. Can someone direct/show me to an easy to understand proof of it's security?
Many thanks
|
I was wondering how can I use NIST Statistical Test Suite to check for the randomness of output generated by a cryptographic hashing algorithm, let say SHA-256?
To be specific, how will I generate input for the suite? For block ciphers, we use key avalanche, plaintext and ciphertext avalanche, etc as inputs of the suit... |
If there is a message $m_1$ that $H(m_1) \rightarrow g^r$
and there is another message $m_2$ that $H(m_2) \rightarrow g^k$, where $g^k$ is also a generator of $G$, is this possible?
then $g^r$ could equal $(g^k)^m$, where $m < p$, $p$ is the order of $G$.
Then any message could be expressed in this form $(g^k)^m$, so i... |
I only know one way, if this group is a cyclic group, and we know the element can be expressed in $g^m$, then $g^{(m/2)}$ is the answer.
Another question, if $m$ is an odd number, can we be sure there is no answer?
Is it possible to find another generator $g_1$ and an even number $k$ that satisfy the element = $g_1^k$... |
I am new to algorithim randomness and confused at I guess a basic level question. Is it common for any cryptographic algorithim to have repetitions in its output i.e.let say 34 and D8 are two consective bytes which are repeting at random intervals.
I have got an encrypted file and it has 34 D8 at line 5 and then same ... |
Do PHE schemes in general also suffer from noise overflow problem?
|
Let $k$ be uniformly sampled from $\{0,1\}^\lambda$, $F$ be a secure PRP with block length $\lambda$ and let $Enc(k, m)$ be such that it returns $c = (F(k,r), r \oplus F(k,m))$ with $r$ uniformly sampled from $\{0,1\}^\lambda$. How to prove that this scheme is not CCA secure? In particular, how can an attack be thought... |
Would there be an efficient way to implement a function with the following signature:
unsigned long long int random_word(size_t n, size_t m)
that would generate a random machine word (64 bits here) such that exactly m bits over the n least significant ones at set to 1. For example: random_word(10, 3) would generate a... |
The multiplicative group mod $p$ is isometric to the additive group mod $p-1$, yet computing discrete logarithms in the additive group is easy and completing discrete logarithms in the multiplicative group is usually hard.
What is it about group representation that makes group representation matter so much for the comp... |
I am very interested to know in the general sense how two parties who know each other are able to continue a conversation IF and ONLY IF they both earn the same salary. For example, we have a person X who earns 75000USD, but they only want to continue speaking to person Y IF and ONLY IF person Y also earns 75000USD. Th... |
I want to implement the homomorphic encryption scheme proposed in GSW13, and make some changes to it, but seems that there is no library that has already been implemented it. Since this is a homomorphic encryption scheme based on LWE, both Helib and SEAL have implemented some other LWE-based homomorphic encryption algo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.