instruction stringlengths 32 27.2k |
|---|
Given an elliptic curve with generator $G$, is it possible to generate a random point on the curve $Q = a \cdot G$ without knowing the secret value $a$ that generated it? Note that just using an $a$ to generate $Q$, and then "throwing away" $a$ (forgetting about it) isn't a valid solution. Also note that $Q$ should be ... |
Is it possible to optimize/precalculate some results in SHA-256 if the input starts with fixed values? My input is always 1111||message. Can I precalculate the 1111 in SHA-256 to save some cycles?
|
When exporting a private key with PyCryptodome, DER format, PKCS#8 and a suitably strong passphrase, is the resulting exported key secure enough to place somewhere that you would not normally want sensitive information stored, such as a database or on a hard drive?
From PyCryptodome.readthedocs.io:
For ‘DER’, the PBKD... |
Suppose I have a password, in which I use Argon2ID with 1GB memory to derive an encryption key. Then, I encrypt my data using XChaCha20 using that encryption key. The problem with ChaCha is that any encryption key "works". If you use the wrong password to decrypt, you won't get an empty output or error like AES, but in... |
In the Digital Signature Algorithm, is there a reason why the larger prime parameter should be an $N$-bit prime where $N$ is a multiple of 64 ?
Is this strictly necessary for proper working of the algorithm?
|
How to decode Playfair when only a small part of key is available?
What is the plain text for this message?
Can someone explain how to recover the plain text for this message?
Is there a program that I can download and execute on my PC to test possible keys in bulk to solve the following problem?
The cypher used is Pla... |
(1) Alice wants to send Bob a physical letter.
(2) Alice also wants Bob to be confident that she sent the letter and not an imposter.
(3) Alice is confident that a potential imposter will not be able to intercept any letter she sends.
(4) Alice has previously in-person provided Bob a RSA Public key.
Can Alice use a RSA... |
This is my understanding of Synthentic IVs
You have 2 keys $K_1$ & $K_2$.
$F$ is a PRF
Instead of choosing a separate IV, you instead generate the IV from the PlainText.
$IV = F(K_1, m)$
$c = E(K_2, m, IV)$
You don't need a separate Tag/Hash for authentication. Because the IV is generated using the PT itself, after de... |
The Digital Signature Algorithm (DSA) uses $L$-bit prime $p$ and $N$-bit prime $q$ with $q| p-1$, i.e., $p = r\cdot q +1$ ( Schnorr group if $r>2$ and safe prime if $r=2$).
In a way, the security of DSA relies on the hardness of the discrete logarithm on $\mathbb{Z}^*_q$ that is given by $ y = g^x \bmod \mathbb{Z}^*... |
In ECDSA, $f(G)=r$, where $r$ is the $x$-coordinate of group element $G$. My question is, how to prove this $f$ is not uniform? In other words, how to prove that, given a random element $G$ with different x-coordinates on an elliptic curve, $r=f(G)$ is not uniform over $\mathbb{Z}_q$? I would like to stress that here w... |
I am a noob to cryptography in the sense that I have only little understanding as to how RSA encryption schemes work in practice. However I do understand the theoretical foundations of RSA cryptography and also Chaum's Blind Signature scheme as described in the wikipedia article on RSA Blind Signatrures.
I did find an ... |
In RFC 8032, section 5.1.7, it is prescribed that an Ed25519 signature is verified if
$[8][S]B = [8]R + [8][k]A'.$
The text then says
It's sufficient, but not required, to instead check $[S]B = R + [k]A'.$
What is the point of the first criterion, if the second one also works and is arguably simpler and less comput... |
In Table 12 (page 23) of the GIFT paper, the "Division property" table is given. I could not understand how it has been computed.
My questions:
May I have an algorithm on how to compute the table?
Is there any public implementation available? For example, Sage seems to have several SBox related implementations, but no... |
I am pretty sure that what I am asking for is impossible, but on the off chance it might be possible, here is my question/problem statement :
Is there any known algorithm/protocol or does it even sound possible that such a thing can be devised, such as it allows you to encode data using a "private" key and then issuing... |
Is the symmetric key derived for AES only dependent on the passphrase?
Is it possible to generate the encryption key such that it is based on my primary GPG private key and temporary passphrase? In this case, the attacker would have to know the passphrase as well as my GPG key to decrypt the text.
|
I‘ve argued for quite some time with a friend about wether or not this C# method can be qualified as a Hash Function.
public override int GetHashCode() {
return X.GetHashCode() * 31 + Y.GetHashCode();
}
My argument is that this simply returns a 32-bit integer value, using a fixed input size of 2 variable 32-bit in... |
For example: Given an elliptic curve $E$ over $\mathbb{Z}_q$, and $\#E(\mathbb{F}_q) = p^2$, where $p$ is a prime. Now given a subgroup $\langle G \rangle$ of $E$, and the order of the subgroup $\langle G \rangle$ is $p$. If we randomly sample group element $P$ on $E(\mathbb{F}_q)$ and find that $[p]P=\mathcal{O}$. Can... |
say there is an homomorphic cryptosystem on elliptic which allows unlimited addition and only one multiplication.
So in order to same the mult operation for a later functionality, I need to add a scalar to a ciphertext.
That is not a defined function. Still, is there some way to go about it ?
|
Given a non-uniformly distributed set of 32-bit values (for example), is there a way to reversibly encode each one as a 128-bit value (for example) where they'd be approximately uniformly distributed in that larger 128-bit space?
Block ciphers do this as I understand it but they require a key and are computationally ex... |
Given HKDF and a master input material key $k$, I would like to derive ephemeral keys that cannot be linked together. If I understand correctly, the specification of $HKDF$ adding a unique random $salt$ while generating each new ephemeral key should randomize the output. Is it the case?
An example: I have a master inpu... |
Since the Fermat primality test is not very reliable, most applications use it for pretesting only. Wikipedia says that PGP still uses it:
Another well known program that relies only on the Fermat test is PGP where it is only used for testing of self-generated large random values (an open source counterpart, GNU Priva... |
Assume a Schnorr-signature scheme in an elliptic curve setting with a publicly known generator base point $G$ where the the discrete logarithm is hard. That is, given $x \cdot G$, it is hard to find $x$. I am curious to know if this signature scheme can be used to perform public key validation in the following sense:
... |
Is this problem still hard?
Given $$(g,g^a,g^b,c)$$ decide if $c=a\cdot b$?
If there is an adversary that solves the standard Decisional Diffie-Hellman Problem then it can solve my new problem. But I can't understand that my new problem still hard or not.
Did anyone see this problem or similar to my problem? Can anyone... |
I discovered what appears to be a good quality pseudorandom number generator, but I have not subjected it to any statistical tests beyond bit frequency, bit pair frequency, and least-significant bit frequency tests. It generates a block of bytes by evolving deterministically, starting with a seed state. I'm new to Stac... |
Bob is holding a secret-bid auction using ElGamal encryption. He chooses a “safe” prime $p$ of sufficient size, a generator $g$ in $\operatorname{QR}(\mathbb Z_p)$ and a value $b$ in $[1, p]$. He then calculates the value $B = g^b\bmod p$, and publishes the values $g$ and $B$.
Alice wants to place a bid with value $m$.... |
I have a problem with EC public key reading from smartcard using pkcs11 library.
With the secp256r1 EC algorithm, I always get 65 or 67-byte length public key with different smartcards. But with the ePass2003 token, the length of the public key is 61 bytes. Using the pkcs11 library all sign and verify methods work fine... |
I can't find what is vec_sel() in this optimization from Wikipedia:
Instead of the formulation from the original FIPS PUB 180-1 shown, the following equivalent expressions may be used to compute f in the main loop above:
Bitwise choice between c and d, controlled by b.
(0 ≤ i ≤ 19): f = d xor (b and (c xor d)) ... |
The recommended hash length for post-quantum security seems to be either 384-bits or 512-bits. 512-bits gives 256-bit collision resistance, and 256-bit security is obviously ideal for post-quantum security.
A 256-bit authentication tag offers 128-bit collision resistance, but it's not clear whether that's sufficient fo... |
I am looking for references for the following problem:
Consider we have a DSA with the keypair $(sk, pk)$ and a message $m$, such that its signature is $s = sig(m,sk)$ and the verification result is $v=ver(s,pk) $.
Now, I would like to have a threshold DSA with 2 players (for simplicity) with keypairs $(sk_1, pk_1)$ an... |
Given the increase in hash rate since the rise of numerous block chains, I wonder how this affects the security of many hashed password systems.
Is a standard linux /etc/shadow file still regarded safe or does it somehow need to be updated with another algorithm or bigger salt or in some other way?
Are hashed password... |
The reference uses treeHash algorithm everytime a signature is generated, thus generating authentication path AND the root, which is not necessary, as the root has only to be generated once. Generating root with every new signature is not efficient, but are there more efficient ways to generate the authentication path ... |
Suppose $F(k,x)$ be a secure PRF over $(\mathcal{K},\mathcal{X},\mathcal{Y})$ where $\mathcal{K} = \mathcal{X} = \mathcal{Y} = \{0,1\}^n$
$$F'(k, x) = F(F(k, 0^n), x) \; $$
Trying to get the intuition to prove it is secure PRG else given will be not by contrapositive...
but cannot from the reduction of it. How to formu... |
Someone I know showed this to me, and I can't put a finger to why it's happening. Am I missing something?
They encrypt the text, and the output is really guessable. $u\to t$, $i\to h$ (it's one letter behind), the $?$ are just spaces.
|
I wrote a library which uses AES-GCM-128 to perform encrypt and decrypt operations. This library uses EVP functions that provide a high level interface to OpenSSL cryptographic functions.
To verify my library implementation is correct or not, I did the below test.
I took already known nonce, key, aad, plain text which ... |
In second lecture of cryptography, we had a lecture "Block cyphers" and teacher gave me permuted array of numbers 1...10 and letters "a"..."f" and asked me to find XOR profile. But I do not have any idea what I need to do and do not get what XOR table,s-box is. Could you give me a fundamentals(basics) to understand, w... |
I am building a passwordless auth scheme, and would like to avoid storing temp passwords in memory, so I wanted to derive them rather than store them. A valid password looks something like 'amendable-goofiness-ahead' (a warning which could also be appropriate for this question).
I was thinking we could generate a seed ... |
I found the following code snippet from the Bouncy Castle C# library, which seems to claim that it's constant time, even when the arrays have different lengths.
/// <summary>
/// A constant time equals comparison - does not terminate early if
/// test will fail.
/// </summary>
/// <param name="a">first array</param>
//... |
Interactive zero-knowledge arguments are proven to be secure in three parts:
completeness (the verifier accepts if the prover is honest)
soundness (a dishonest prover cannot convince a verifier)
zero-knowledgeness (the proof does not leak any information to the honest verifier)
Soundness is usually proven using some ... |
I've read that Blum Blum Shub is a CSPRNG, defined by $x_{n+1} = x_n^2 \bmod M$. I didn't understand that, and couldn't find any sources on how big $M$ should be.
Are 32 bits enough? 64 bits? Or are even more bits required?
|
In cryptography, for a polynomial time-bounded adversary $\mathcal{A}$, given a scheme $\Pi$, the success or probability of succeeding $\mathcal{A}$ is the likelihood for $\mathcal{A}$ to break $\Pi$, and its advantage is the absolute value of the difference between its success and a set in stone knowledge. For instanc... |
I am trying to understand XL algorithm and F4/F5 algorithms for solving multivariate polynomial systems.
Is XL related to the Grobner basis?
I would be grateful if anyone could suggest me the topics (related to solving degree, groebner basis?) I need to read to understand these algorithms.
Thanks!
|
I have been provided an RSA encrypted private key which was generated in NodeJS (crypto) using the following:
generateKeyPairSync( "rsa", {
modulusLength: 4096,
publicKeyEncoding: {
type: "spki",
format: "pem"
},
privateKeyEncoding: {
type: "pkcs8",
... |
On July 11, 1994, the NIST proposed an interesting revision to FIPS 180, about the Secure Hash Standard:
A revision of Federal Information Processing Standard (FIPS) 180,
Secure Hash Standard (SHS), is being proposed. This proposed revision
corrects a technical flaw that made the standard less secure than had
been tho... |
I am interested in understanding public-key encryption using RSA. On the Khan Academy website, I noticed an anomaly when testing out the tutorial.
I created the following public/private keys:
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCYIpH5BT9+1MPf+xqI7khDJZmhMLVltXPf0JJY0mk3gXMQtOar
IocOlKmtWDhz+24KZHa6LuK6edpehKo... |
In ECDSA, we use a prime order group $\langle G\rangle$ for cryptographical use. Assume $\#\langle G\rangle = p$. Is there another subgroup in the curve used for ECDSA whose order is also $p$?
|
I studied this paper a while ago, but now I'm confused by the paper Trapdoors for Lattices:Simpler, Tighter, Faster, Smaller by Micciancio and Peikert. Page 24 and 25, they present an algorithm that explains how to sample a pseudo random matrix $\mathbf{A}$ with a trapdoor.
Short presentation of this section
Basically,... |
From this, it is clear that Encrypt-then-Mac provides more complete security than Mac-then-Encrypt but some schemes use Mac-then-encrypt to provide nonce-misuse resistance such as SIV (AES-GCM-SIV, AES-CCM-SIV) or DEOXY II, ESTATE by generating a tag and use it as IV for the encryption part.
Q. How is the use of Mac-... |
What is the main difference between anonymous authentication and the use of an anonymous credential? And when we should use them?
|
As we know any input to SHA-256 will be returned as 64 hex length output. Is it possible to create a hash that can do the same thing as SHA-256 but can be reversed, so if we have the output of 64 length of hex number, we can reverse it and get started input like "i love programming"? This will be such a cool way to com... |
I'm trying to learn how to go about cracking RC4 ciphers (nothing illegal, its an old, i.e., not active challenge for a job application, so no cheating).
I have nine md5 hashes with their own ciphers.
One cipher is significantly shorter than the rest.
Two "ciphers" are blanks with only MD5 hashes.
Six ciphers are of th... |
Consider a probability distribution $D$ over $n$ bit strings. Consider a next bit predictor $A$ as follows.
\begin{equation}
\underset{X \sim D}{\text{Pr}}[A(X_1X_2.....X_{k-1})=X_k] \geq \frac{1}{2} + \frac{1}{\text{poly}(n)}.
\end{equation}
Here, $X_i$ indicates the $i^{\text{th}}$ bit of $X$. Consider that this pred... |
I am in exactly the same situation as described in this post. I must be able to encrypt data from a client workstation then send it to an untrusted server (encrypted at rest), then decrypt it only on the same client workstation. However, the client must be able to continue to do "encrypted" searches based on the cipher... |
I'm trying to figure out how to do a mapping between elliptic curve points and Zq without breaking homomorphic properties.
Sorry, I'll write the problem in multiplicative notation because it's easier.
I've got $a = g^bh^r \in \mathbb{G}_1$, where $g$ is a generator of $\mathbb{G}_1$, $h = g^s$ and $r, s, b$ are some va... |
From what I understand, a cryptocurrency mine needs to store a copy of the entire blockchain in order to be able verify transactions, which is why most wallet owners are not miners. The more centralized a decentralized consensus is, the more likely it is that its participants will 'defect' and screw over other particip... |
I have some very sensitive family files that I want to store in the cloud on multiple providers for maximal reliability and redundancy. It's essentially a large archive of all our family photos, documents, and confidential photos. I'll be needing them in about ~20 years, but I won't access them or update them during th... |
Let's say we have some very sensitive personal files. At all costs, we do not want any other pair of eyeballs to gaze upon them. We need these sensitive files to be secure and available.
So, we have a bright idea: encrypt them and put them in the Cloud.
What side-channel attacks, if any, are specific to Cloud storage... |
In Bleichenbacher's paper on his attack against PKCS #1, we find:
If the oracle says that $c'$ is PKCS conforming, then the attacker
knows that the first two bytes of $ms$ are $\mathtt{00}$ and $\mathtt{02}$. For
convenience, let $$B = 2^{8(k−2)}.$$
Recall that $k$ is the length of $n$ in bytes. Hence, that $ms$ is
P... |
Suppose Alice and Bob have specified an elliptic curve, for example, secp256k1. Alice has a secret number $s$ (can be seen as secret key), Bob choose a point $g$ on the curve and send it to Alice. After receiving the point, Alice computes $g^s$ and sends it the Bob.
$\text{Whether the interaction will reveal Alice's s... |
I would like to encrypt some text and display part of the encrypted text alongside the clear text as a means to prove that I generated it.
For example, let's say I have the text ABCDE that I want to prove that I generated. Using RSA encryption with a private key, I encrypt this text and display the last few characters... |
While reading specsheets for NXP processors (example mention in this PDF) the other day I saw the mention of the Indexed Code Book mode (ICB) for their AES acceleration hardware - the only mode they claim side-channel resistance for.
However, my search attempts have failed me and I could not identify a definition of th... |
I just read about the AES MixColumn step, which can be calculated as:
$$b(x)=c(x)a(x) \pmod{X^4 +1}$$
$a(x)$ is the column to encode and $c(x)=3x^3+x^2+x+2$
My question is: how did they calculate $c(x)$?
|
We have a system where two devices communicate. Due to restrictions on one of them, we can only use AES-128 (so no AES-256) for encrypting the communication. However, new requirements on these kinds of systems have recently come up where > 200 bits encryption is required for the data communicated between the devices. S... |
As far as I know PRGs get an input (seed) and generate a larger output value than the input. Therefore is it possible that some outputs will never be generated? based on the fact that input is smaller than the output.
|
Does the following proposition hold for any deterministic, symmetric cryptosystem $(\mathcal{M}, \mathcal{C}, \mathcal{K}, Enc, Dec)$?
$$\forall C \in \mathcal{C}: |\{M'| \exists K \in \mathcal{K}: Enc_K(M') = C\}| = |\mathcal{M}|$$
My reasoning until now is that this should be equivalent to
$$\forall C \in \mathcal{C}... |
I think there's a msg in the parachute of the mars lander , the guy in the vid seems to hint at it
I converted this to binary with red=1 and white=0 starting from the three all-red sectors in the top left.
That file is here .
So what's the message?
|
Say Bob and Alice are trying to figure out the fruits they like, but don't want to reveal the fruits they dislike. How could they compare their list of liked fruits and reveal only the common set to the other person?
In this scenario, each party knows the full list of possible fruits to pick from. (It's shared informat... |
I am trying to solve the following puzzle from CryptoHack involving two images encrypted with the same key:
I've hidden two cool images by XOR with the same secret key so you can't see them!
lemur.png
flag.png
If I compare both images using an online image comparison tool I can see traces of a new image containing ... |
Given "①②③④⑤⑥⑦⑧⑨⑩⑪⑫" as plain text and a 4 rows Scytale inscription with 3 as the length of the longest row, the original plaintext is back after 5 runs:
①④⑦⑩②⑤⑧⑪③⑥⑨⑫
①⑩⑧⑥④②⑪⑨⑦⑤③⑫
①⑥⑪⑤⑩④⑨③⑧②⑦⑫
①⑤⑨②⑥⑩③⑦⑪④⑧⑫
①②③④⑤⑥⑦⑧⑨⑩⑪⑫
Given "Juliet is still alive!!!" as plain text and a 4 rows Scytale inscription with 6 as the length ... |
Given a weak entropy private key and its associated public key. Can we predict low entropy from the private key by examining the public key?
In other words, is the low entropy from the private key in some ways 'reflected'
in the public key?
What signals a public key can give in case of a weak private key?
|
In hash-based signature schemes that use Merkle trees (e.g. XMSS), what is exactly the purpose of the multi-tree variant? Seems like the same number of keys can be represented by a single larger tree? Am I missing something?
|
I've been reading papers on secret sharing schemes and came to two different terms, namely, multi-linear secret sharing schemes and multi-secret sharing schemes. As an example, the term multi-linear is used by Beimel et al. in Multi-linear secret-sharing schemes publication. On the other hand, the term multi-secret is... |
Can someone explain me the meaning of 1024 and 768 in Dilithium-1024x768 in the algorithm? And the meaning of 2 in Dilithium2 in the algorithm?
|
ChaCha20 along with Poly1305 provides confidentiality and integrity. Now suppose I cascade AES on top of ChaCha20. Is it safe to assume that the Poly1305 MAC is still secure, even if I cascade multiple ciphers? In other words, is one MAC enough to secure both ChaCha20 and AES?
Problem solved: Is Poly1305 an information... |
Suppose I cascade cipher A and cipher B to encrypt a message. Both ciphers use the same key. I know that theoretically, the security of the setup when used correctly is at least as secure as the most secure. In other works, if cipher A or cipher B is broken, there is still cipher B or cipher A protecting the data. Is i... |
I have a unique 6 digit number that I am generating a IV from. I am trying to make it as unique as possible. From my programming, I am able to get it down to only have 100 duplicate IVs per unique 6 digit number.
Now I have read that reusing IV's is a big no no because it leaks information.
My question now, assuming I ... |
Please help me understand the security strength of McEliece variants prepared for Round 3.
I looked at the specifications - https://classic.mceliece.org/nist/mceliece-20201010.pdf - it doesn't have the security strength information - normally other algorithms submitted to NIST usually carry that information in the spec... |
How many different keys can be derived with HKDF before two outputs are identical?
This question is about collision resistance, not about generating different keys with different parameters (eg. different salts/info parameters).
For HKDF with SHA-256 would it be $2^{128}$ since the collision resistance of HMAC-SHA-256 ... |
I've been trying to understand Proof Of Stake cryptocurrency systems, but I don't see how new coins are made using the Proof Of Stake system.
My current understanding of Proof Of Stake
People put up a certain amount of cryptocurrency they already hold for a chance to be the entity that creates the next block. This is... |
I am very new to the topic, I found it out only today afternoon, so forgive the dumbness of the question should that be the case.
I have tried to grasp the rationale of Verifiable Delayed Functions (whatched all the videos, read all articles), used in many blockchain-related applications. I understand that the 2 proper... |
I have been following the medium post of Vitalik, where he shows step by step how to convert program --> Circuit --> R1CS --> QAP.
I am aware of the Pinocchio protocol, where they utilize the Groth13 QAP to generate proofs. I am also aware of Groth16, which improves QAP generation.
However, besides Vitalik's post, I ha... |
I found out that the following is a working implementation of calculating an AND function between XOR masked shares, implementation at Github. It works by calculating parities, whose terms cancel each other out in a "lucky" way whenever an odd number of shares is used.
The primary advantage of this algorithm could be t... |
Linear complexity of a sequence $s_0,s_1,\ldots$ over a finite field is the shortest length $n$ of linear recurrence of the sequence such that
$s_{n+j}=\sum_{i=0}^{n-1}a_is_{i+j}$ for $j=0,1,2,\ldots$
for constants $a_i$ in the field. My question is at which $n$ should we stop computing $a_i$? Assuming the sequence is ... |
I have
$$\{a+b, a^2+b^2 \bmod N, a^3+b^3 \bmod N,\ldots\}$$
and
$$\{ab \bmod N, a^p b^q \bmod N, a^{p^2}b^{q^2} \bmod N, a^{p^3} b^{q^3} \bmod N,\ldots\}$$
The factorization of $N=(2p+1)(2q+1)$ is unknown. $p$ and $q$ are unknown too. $i \in \{1,2,...\}$ is a set of positive integers.
Can I compute any thing like $a^i ... |
This seemed like the most appropriate place to ask this question so here it goes:
I used to run a process that automatically generated a shim.key and shim.crt along with a ca.crt for safe boot signing. Using the shim versions I signd a file like this:
sbsign --key path/to/shim.key --cert path/to/shim.crt filetosign
... |
I'm currently studying the elliptic curve secp256k1 implementation.
In my understanding, it has efficiently computable endomorphisms:
We can find out a pair of number $\lambda$ and $\beta$ from the curve such that for any point $P_1=(x,y)$ on the curve, there exists another point $P_2=[\lambda]P_1=(\beta x,y)$ also on ... |
We have a python program that encrypts/decrypts plaintext given in hex to a cipher using AES CBC. We know that the IV is the same and is not going to change (it is stored in a file). How can we possibly find the IV, if found this will be the flag.
|
To compute the XMSS Tree root, one needs to compute all the 2^h keys and hash them together. The higher the height of the tree, the more keys there are and the longer the KeyGen computation. The signing and verifing is quick, but every signature creation needs to compute the authentication path, thus it needs to recomp... |
I've been experimenting with ECDSA signatures and with how the Sony PS3 private key was leaked. Specifically where:
$$k = \frac{z_1 - z_2}{s_1 - s_2}$$
$$d_A = \frac{z_1s_2 - z_2s_1}{k(s_1 - s_2)}$$
In my case I have two (and more) ECDSA signatures that have the same $r$ and $k$, but have a differing $s$ and $d_A$. Al... |
What is the security level of DSA algorithm when $q$ is a 224 bit prime?
Is it always a simple rule that the security level is the bit length of $q$ divided by two ?
|
Is there any way to derive a series of asymmetric keys, such as using a one-way hashing function, where both sides can predict the next in the sequence?
Detailed Scenario:
Imagine a chat application where two people, Alice and Bob, are sending messages -- each with the agreement to delete any messages received 7 days a... |
I was reading the following on Wikipedia, it appears that the leaf nodes are hashed. What are the benefits of this? Why is it done?. I fell like they are done so that they can be transferred securely. However, I am not sure about this, would like some points to resources
|
Unsure it's the best place to ask, anyway:
I know symmetric encryption is the best for such tasks but I am planning to encrypt large backup files (between 10 and 100GB) with my private PGP key. My purpose here is to use several layers of encryption, each of them using a different algorithm to prevent 0day exploits on a... |
E.g. given a $n$-bit message $m_0$ and an encryption function $f$
After applying the function $c$ times it will result in $m_0$ again.
$f^1(m_0) = f(m_0) = m_1$
$f^2(m_0) = f(f(m_0)) = f(m_1) = m_2$
..
$f^c(m_0) = m_c = m_0 $
On top of that an inverse function $f^{-1}$ with about equal computation time should exist as ... |
In today's world of applications, I see a lot of the time a 256-bit encryption key is used, but what about an 80 or 128? What makes 256 the one to use. Is a 80 or 128 easily decrypted?
Are comp ciphers better than others with the encryption of these keys?
|
If H is collision resistant then the following are collision resistant or not?
H'(x) = H(x) || H(x)
H'(x) = 1 || H(x)
My thoughts:
I am confused in question 1. In case of different hash function(H'(x) = H1(x) || H2(x)) we can safely conclude that H'(x) is safe through proof by contradiction if any one of them is safe... |
I recently came across an article outlining a framework for a hypothetical cryptocurrency, the article is here if you care to read the whole thing. The relevant section is the "Digital Cash" section. The main primitive seems to be the enforcement of a single owner of a private key through the use of secure enclave hard... |
I am following along some cryptography challenges:, in particular ECDSA Nonce Reuse here (second problem):
https://blog.coinbase.com/capture-the-coin-cryptography-category-solutions-fe94d82165c5
I understand all the math, except this part:
def modinv(a, modulus): return pow(a, modulus — 2, modulus)
def divmod(a, b, mod... |
Suppose Alice and Bob share two $n$-bit shared keys, $k_1$ and $k_2$, and decide to send multiple $n$-bit messages to each other. The encryption scheme they use simply sends $c_i = (k_1 + i k_2) \oplus m_i$, where $m_i$ is the $i$th plaintext. Here, the addition and multiplication are both done modulo $2^n$.
Clearly, t... |
Consider a threshold FHE scheme based on RLWE like this:
Refer to this paper
$\textbf{Initialization:}$
Every party generates his own secret key $s_i$, then uses the common polynomial $a$ to generate his public key $pk_i=(p_{i,0},p_{i,1})=(-as_i+e_i,a)$. Therefore, the ideal public key is $pk = (p_0,p_1)=(\sum p_{i,0},... |
Assume we have 2 prime numbers in form p = 2q + 1.
Is it safe to use the cyclic group of order p-1 instead of one with order q in ElGamal encryption? I couldn't find any suitable source to explain why we should use q as order of our group and avoid p-1.
Most websites and sources just say:
use cyclic group of order q
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.