instruction stringlengths 32 27.2k |
|---|
I have been reading about recommendations on the correct use of crypto as a developer and I read at least two references to the obsolescence (so to say) of ECDSA.
https://paragonie.com/blog/2015/08/you-wouldnt-base64-a-password-cryptography-decoded
https://crypto.stackexchange.com/a/58382/63254
Is that it? Is ECDSA ... |
I am a student studying cryptography by reading "Introduction to Modern Cryptography".
I have some confusion about encryption using PRP (e.g., AES).
Briefly speaking, a keyed deterministic permutation $F_{k}$ is a strong PRP if no efficient adversary (who is given oracle access to $F_k$ and $F_k^{-1}$) can distinguish ... |
KDF such as scrypt is memory (cpu) demanding so that the attackers cannot quickly decrypt the key.
Why use HKDF? What's the application of it?
If the attacker knows the input space of HKDF, and since the procedure of HKDF is public, what's the extra benefit of using it?
|
Is there any known algorithm for calculating $a^{-1} \pmod{q}$, where $ q < p$ and $F_{p}$ is the prime field of the MPC, in a linear secret sharing scheme ?
I have tried using the standard algorithm, in which the parties generate $r$, then run secure multiplication on shared values to get $r⋅a$ and open it, and then e... |
For cryptography, the platforms have limited size as 32 or 64-bit operations. We definitely need big numbers to implement the encryption/decryption and digital signatures for cryptosystems like RSA, Elliptic Curve, etc.
We have seen lots of side channel attacks due to timing differences or power usages analysis.
How a... |
Quite a simple question though I can't wrap my head around it:
The key size is: $n$
Because it's brute force it tries each possible key once from $0$ to $n$, but in my head that just makes the run time $O(n)$, though it's surely meant to be a polynomial or exponential. The decryption message is of size $x$ though I'm n... |
I am using AES with GCM and a colleague told me "Repeating a VCC with the same key and a different message reduces the security of the key." He did not have any additional detail to offer.
What he meant was since the encrypted VCC is in a fixed location in a packet, bad guys could intercept the messages and correlate t... |
Consider the keyed permutation $F_k : \{0,1\}^2 \to \{0,1\}^2$ with two-bit keys defined as $F_k(x) = k\oplus x$.
Is this F a PRP? How can I create a distinguisher D and calculate the difference when using this D?
I know that $F_k(x_1) \oplus x_1$ will give me the key and that all $x$ and $F_k(x)$ in the same permu... |
We are using a 12-word scheme BIP-39 mnenemonic key generating scheme that creates an entropy of 128-bit that is then used to generate a seed that in turn derives a private key for the user. It chooses randomly 12 words out of 2048.
There are $2048^{12} = 5.444518 \cdot 10^{39}$ combinations that form the entropy for t... |
If we use upper and lower case letters, and 10 digits, we get
approximately 6 bits per character. Then, strings of 13 characters
should work.
I saw above explanation in the material, but I cannot understand how 13 characters are appeared. How can I compute?
|
I've noticed that looking random is not often listed as a requirement for a good hash function in the same way that preimage or collision resistance is.
Do we need hash functions to look random?
Specifically, suppose $s$ is a seed, and consider the PRNG that outputs $$H(s \|0) \| H(s \|1 ) \| H(s \|2) \| ...$$
Do w... |
I am actually trying to study homomorphic encryption (on lattices) but I'm facing a problem. Every paper that I have read so far talk about writing the function to evaluate on ciphertexts as a circuit, either boolean or arithmetic according to our scheme if I understood this part well. My problem is that I couldn't fin... |
I am using an ECDH key exchange to establish a shared secret between an Arduino Uno and an Android device. For this purpose I am using this library and more specifically Curve25519. This is the confidentiality part of the secure communication I want to establish.
Now, before establishing shared secret between the Ardui... |
Suppose $A(n,m,k)$ computes
for 1 < i < n do {
for 1 < j < m do {
/* some efficient cryptographic operation */
}
}
where $k$ is a security parameter and integers $n$ and $m$ are upper-bound by a polynomial in that parameter.
Algorithm $A$ has complexity $\mathcal O(n\cdot m)$, which is quadratic when $n=m... |
I understand that the entropy is the number of bits that can encode a set of messages. However, I don't understand what the min-entropy is and how it is related to entropy.
Let's describe a simple password case: if a password is 100 random bits, is the min-entropy also 100?
|
I was wondering whether given a concrete $N = p \cdot q$ whether we can find a upper bound on $\Delta = | p - q|$ as function of $N$ e.g, $N^\delta$, and thus test whether a given $N$ is vulnerable to Fermat-Factoring?
|
Nowadays the group key agreements are based upon tree-based ones such as Asynchronous Ratcheting tree. Especially the latter one is constructed upon left-balanced tree.
So I keep wondering what benefits has a left-balanced tree from any other binary tree structure to this application?
|
I have a 256bit signature and a certificate with a public key to verify it. I had little information about the signature scheme used, but I know now that it's "ECBNwithSHA256". I have never come across these Barreto-Naehrig Curves until now.
My question to the community is: The certificate contains two point pairs (eac... |
One of the important improvements introduced in TLS 1.3 is the pruning of the many previously available cipher suites to only five secure options (for symmetric ciphers), that are each supposed to have distinct advantages. For four of these, the advantages seem to be clear:
TLS_AES_128_GCM_SHA256: faster on systems wi... |
I am currently looking into a Trivium implementation available in the FELICS framework.
Parameters of the Trivium stream cipher:
Key size: 80 bit
IV size: 80 bit
State size: 288 bit
The Trivium specification states that the algorithm only shifts the state by one bit per iteration. However, in the FELICS implementatio... |
I understand that both an HMAC and digital signature are used to check the integrity and authenticity of a message. Further, I understand that a digital signature is non-repudiatible.
What I do not understand is when to use an HMAC vs a digital signature, in practice. I appreciate the help!
|
Suppose Alice wants to convince Bob that ciphertext c = (a, b) = (gr, m*hr) is some properly encrypted plaintext (not just random numbers). Obviously she can use zk-proof of discrete logarithm knowledge for the first part of the ciphertext (a = gr). But what can she do with b-part?
One of my ideas: if m belongs to subg... |
In one of the first FHE schemes by Gentry, the KeyGen algorithm is defined as follow:
For a security parameter $\lambda$, set $N = \lambda ^ 2, P = \lambda ^ 2, Q = \lambda ^ 5$.
KeyGen$(\lambda)$: Generate a random $P$-bit odd integer, $p$. A set $\vec{y} = \{ y_1, y_2, \ldots, y_\beta\}$ is generated with $y_i$ bits.... |
So if possible could someone tell me or at least recommend a book.
|
Let $f_k(B)$ denote the underlying function (a pseudo-random permutation) of a block cipher: it uses an $x$-bit key $k$ to encrypt an $y$-bit block $B$.
The question: is it possible to make use of $f_k(B)$ to construct a cryptographically secure One-way compression function that transforms any sequence of $y$ bits to a... |
I was reviewing WOTS+ scheme for consideration in our private blockchain, and noticed that it had a small overhead of calculating a checksum as seen in the following pseudocode excerpt from the SPHINCS+ submission to NIST
wots_sign(M, SK.seed, PK.seed, ADRS) {
csum = 0;
// convert message to base w
msg = base_w(... |
I have a pcap of my twitter traffic using wireshark. The cipher suite TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 method is used for for encryption data.. I have a tweet of 42 characters are traced in the pcap. How can i get the application data packet with the length of my tweet data.
|
For my class assignment, I was given this text;
Qpuvu vo vv stazpuykzh Hhycmlmv asb. Ad dhyaqva wh uyo uzb jpwww Avlw.
Tkpjllfdmbp zoatz vzjavfvna ZLHqh. Amva luy yyvlz yu bhk zua zlhvvalaz
yow llh uldu llzy yzlvao. Hzk caslyv kfzounf zayy sh pvsv. Uopz ala
yrvhbhm tk ppp Thlll jya. Blz o bblw tol Lsjay hba ljw ... |
PKG will be sending the Private key,so it may not be secure,some one may get the private key,how to overcome this problem in IBE. Please help am unable to justify.
|
When hashing a messages of size of n, does the SHA2 algorithm always produce the same sized hashed value?
The reason I am asking is that I am building an OAuth 2.0 authorisation server and I want to publish the size of the client identifier as recommended in the RFC.
|
I read this paper on protecting user privacy in smart parking management system. It talks about using zero knowledge proofs to protect privacy but I am not certain how they do it. My assumption is that the Verifier has the public key of the User and sends the User challenges that the User needs to complete with its pr... |
We're building a private computation platform similar to Zexe, where nested proofs are used to preserve the privacy of the programs being computed. We may use different proof systems for the inner and outer proofs. For the inner proofs, we're searching for a system with these properties:
Conjectured post-quantum secur... |
In one of my recent research, I need to compare the number of gates needed in Ring-LWE encryption to AES in the circuit model. For AES we can find some estimation like this site, but for Ring-LWE we can't find such an estimation.
Could anyone give me an estimation?
Is it safe to say the gate count for AES encryption ... |
I have a Paillier Cyphertext C and a counterparty that controls the keypair that was used to encrypt the data D to arrive at C.
How can they prove to me that the Cyphertext C is actually the encryption of a particular value, e.g. how can they prove that D=0 without giving me the secret key?
Equivalently, how can that c... |
Is there a difference between:
Common modulus attack
Common Factor attack
Wiener's attack
or are these just a different name for the same attack?
|
I did read some articles about the protocol but couldn't figure out what would happen. Would the two parties be unable to verify each other? Or would it be something else?
based on the international standard ISO/IEC 9798-2.
|
The description of the sponge function on Crypto.Stackexchange contains the following text
The cryptographic sponge is a construction scheme for hash functions (and other symmetric primitives) based on an unkeyed permutation.
But is it possible to make use of a keyed permutation $f_k(x)$ to construct the sponge funct... |
I'm working on an old CTF challenge where AES-128 was used on a 16 byte block. I have the round 10 key and the ciphertext. What techniques exist for obtaining the plaintext?
|
I'd like to know which strategy is adopted by an unlimited adversary to distinguish PRF's from Truly Random Functions
|
I am looking for an easily defined stream cipher to illustrate two basic principles in an undergraduate cryptography course:
not every bit of the internal state should be used in the keystream;
some non-linear operations should be used to step the internal state.
So far, my only candidate is the Geffe generator... |
Suppose for any given typical Bob, Eve and Alice encryption example where Bob and Alice exchange information using RSA. Bob encrypts his message using Eve's public key and sends his message off to Alice.
If I was Eve, suppose I attempted to brute force the private key, and kept doing it mathematically by computing the ... |
I've been puzzling recently over sortition, a democratic method of selection for public office which I find very fascinating. Basically, instead of choosing candidates like Hillary Clinton or Donald Trump through voting, under sortition citizens would be randomly selected to fill public offices (in which, under many mo... |
In effect the same 128 bit key is XORed at every round and before and after as whitening.
Would it be 2^128?
What are the dangers of such a naive key schedule and does AES suffer from them?
Edit: Fair enough, slide attack is a problem. It doesn't explain however why there is a key schedule instead of round constants.
|
A root certificate can be used to issue intermediate certificates.
The private key of the root certificate is needed in order to sign any intermediate certificates.
However, after that, we only need the public key of the root certificate to verify the signature of intermediate certificates.
Similarly, the private key o... |
I am trying to understand the sponge construction, and in the official web site I found this sentence:
The last c bits of the state are never directly affected by the input blocks and are never output during the squeezing phase.
Now I understood that the capacity is used to hide the internal state to an attacker. But I... |
This question may be a basic question but it is not clear to me at the moment.
I have an Error Correcting Code (ECC) in a key-encapsulation scheme designed for post-quantum cryptography which operates on secret data.
The ECC I am using is constant time as long as the number of errors which need to be corrected is const... |
I have an assignment to build a software which can encrypt/decrypt by RSA method. I already did it, but my teacher said that I need to find a test suite (include: modulus, public key, private key) to test if my software runs correctly.
He needs real data which has already been tested by someone else and that data needs... |
I'm trying to implement a Provable Data Posession protocol using elliptic curves, but am stuck at the $\text{KeyGen}$ phase of choosing a subgroup $G_2$. Here's an excerpt of it.
On input $\mathcal{K}$, choose an elliptic curve $E(\mathbb{F}_q)$ with a subgroup of large prime order $p$ generated by $P\in E(\mathbb{F}_... |
Assume I have a list of plaintext text and its corresponding ciphertext which was created using a specific key with AES in ECB mode.
Can I recover that key?
If, how big does the list of plaintext and matching ciphertext have to be to be able to find it in a feasable amount of time (say in 1 or 2 hours)?
|
I implemented the Diffie-Hellman Key Exchange algorithm but, I was wondering how to handle if one of the parties lost his key.
Let's take a chat app as an example, Bob and Alice they used to have a shared key, but sadly Alice changed his device, and what if Bob sent a message to her encrypted with the shared key while ... |
My crypto course proposes the following padding schemes:
$\operatorname{pad}(m) = m \mathbin\| 0^i$
$\operatorname{pad}(m) = m \mathbin\| 10^i$
$\operatorname{pad}(m) = m \mathbin\| 0^i \mathbin\| E(\left|m\right|)_l$
$\operatorname{pad}(m) = E(\left|m\right|)_l \mathbin\| m \mathbin\| 0^i$
where $E(\left|m\right|)_l... |
I've been thinking about verifiable random functions recently due to my interest in sortition (random selection of political officials). I wrote up this little paragraph below, and I'm wondering: Does this paragraph seem accurate? I'm not very confident in my thought process haha as I'm quite a newbie to cryptology and... |
Both Asmuth and Shamir are threshold based secret sharing schemes and perfectly secure.
In which point of view Asmuth bloom secret sharing scheme is better than Shamir secret sharing scheme.
Could you please give me anyone reason Asmuth bloom secret sharing scheme is better than Shamir secret sharing scheme.
|
I have been looking into the SHA-1 algorithm. I found that there are a set of functions and constants in the algorithm that have been standardized (section 5 of RFC 3174). If I want to use SHA-1, which I know is not advisable, does changing the constants and altering the functions have a positive effect on the security... |
I should be able to find a collision for a vulnerable hash function which uses AES ECB given a prefix, but I am unable to find a reasonable solution (besides brute-force attack).
The hash function is really simple, it uses AES ECB with a known IV with all 1's. The result is then bitwise XORed and used as key for next c... |
I have to send small (~10 bytes) authenticated messages over an insecure channel. I was thinking of an alternative to the "conventional" AES128-CTR-MAC, which will take 16 bytes for the CT and additional 2 or 4 bytes for the MAC. The motivation is that I'd like to reduce the message size as much as possible.
My altern... |
I want to create some software that performs diffie hellman group key agreement but I don't want to reinvent the wheel even if I know how it's done. So I came accross the NaCl library, especially the scalar_mult functions.
As far I know you can perform Diffie Hellman key agreement on elliptic curves therefore, my thoug... |
I have created a root certificate, an intermediate certificate, and a server certificate:
root (ca.cert.pem)
|
+---intermediate (intermediate/certs/intermediate.cert.pem)
|
+---www.example.com
↳ certificate: (intermediate/certs/www.example.com.cert.pem)
↳ private key: (intermediate/private/www.e... |
I'm wondering if the algorithm 1.2.840.113549.1.1.1 (rsaEncryption) is still secure to use for S/MIME encryption. I'm afraid that the scheme is vulnerable against attacks against raw/textbook RSA.
I'm considering to change to 1.2.840.113549.1.1.7 (id-RSAES-OAEP) but with no insecurity of 1.2.840.113549.1.1.1 (rsaEncryp... |
I have read in a paper that Authenticated Encryption (by this I mean those that support GCM mode or ChaCha20 ciphers) are not supported in versions older than TLS 1.2?
I could not confirm this as the paper does not provide a reference. Can any expert confirm this information?
|
There is a language called SystemVerilog that can be protected via encryption to allow sharing/licensing code for others to use, but prevents them from seeing the code contents. This is done based on the recommendations of IEEE 1735 (paywall) and through support through the Compiler/Simulation software. If the correct ... |
A company I'm consulting for has a (quite old) home grown web SSO solution based on an encrypted cookie. The auth flow looks more or less like this:
User hits protected page on integrated site
Site redirects to central logon site
User authenticates and gets sent back to originating site with an encrypted cookie contai... |
This is a historical question. In the third AES Conference of NIST (AES3), April 13-14, 2000, New York, near the end of the conference, one representative for each of the last 5 candidates sit on a table and people asked questions to them.
One interesting question was;
Except for your proposal for AES, what is your ca... |
I'm stuck on exercise 4.19 from Introduction to Modern Cryptography.
Let $F$ be a keyed function that is a secure (deterministic) MAC for
messages of length $n$. (Note that $F$ need not be a pseudorandom
permutation.) Show that basic CBC-MAC is not necessarily a secure MAC
(even for fixed-length messages) when i... |
Von Neumann extractor works as follows:
Suppose $C$ is a biased coin, with $p = P[C = 1] > P[C = 0]$ and let $b_1b_2\ldots$ be sequence of results by independent coin tosses. For $i \ge 0$ one observes $b_{2i}b_{2i+1}$. If the two bits differ then one takes $b_i'$ to be the first bit. Otherwise,one takes $b_i' = \epsi... |
In some papers (e.g. 1, 2) the authors approve that pairings are more efficient than classic zk-proofs (e.g. proof of discrete logarithm knowledge) for the described applications (threshold encryption, PVSS).
Let's see the differences between these approaches:
Proof:
Pairings: there are no additional steps.
ZK-proo... |
Both the papers GPV'08 and MP'11 present trapdoors for lattices that allow to recover $s\in\mathbb{Z}_q^n$ and the error vector $e\in\mathbb{Z}_q^m$ when given $y=As+e$, for $A\in\mathbb{Z}_q^{m\times n}$.
Also, they claim that their constructions allow to construct signatures via the "hash and sign" paradigm. That is,... |
In a Diffie-Hellman key exchange, with a generator $g$ and a modulo $n$, and two keys $k_1$ and $k_2$, why is
$(g^{k_1} \bmod n )^{k_2} \bmod n \equiv (g^{k_2} \mod n)^{k_1} \bmod n$
|
Why is $\left(g^{k_1} \bmod n\right)^{k_2} \bmod n = \left(g^{k_1}\right)^{k_2} \bmod n$ ?
Note of the editor: I used $=$ where the original question used == because $=$ in a cryptographic context is equivalent to == in many programming contexts (they both stand for equality, even if the former denotes an assertion and... |
I'm really having some trouble with this one.
Let $H$ be a MAC function. For every key $K$ we can create an unkeyed hash function (i.e.an MDC) by using $H$ to hash messages with the fixed key $K$. We denote this unkeyed hash
function by $H_K.$ (Note that every key $K$ gives a different hash function $H_K$. Therefore, ... |
I’m curious about what the secret shared input for a garbled circuit is. Essentially, a garbled circuit is a two party computation framework where each of two players has each input as bit string. In this case where is secret shared input?
If there is a case when secret shared bit string is used as input, I want to kno... |
I recently developed a new cryptographic algorithm. I just initiated with just nothing in mind. But being near to completion (though my algorithm is constantly developing. Now it is version 11.02), I am very curious about how strong my cipher might be...
So I entered the technical side of my algorithm and I step onto h... |
Is it possible to find points that are on two elliptic curves, and how?
More precisely, I'm looking for coordinates $(x,y)$ that satisfy the defining equations of two elliptic curves on prime fields $\mathbb{F}_{p_1}$ and $\mathbb{F}_{p_2}$:
$$
\begin{cases}
y^2 \equiv x^3 + a_1 x + b_1 \mod{p_1} \\
y^2 \equiv x^3 + a_... |
Are there any Oblivious Transfer (OT) protocols that don’t rely on asymmetrical encryption, public-key encryption or key-exchange?
I’m starting to wonder, as all the OT protocols I know of (and can understand how it works), rely on such an encryption layer. Are there any out there which is somewhat-standalone and does ... |
How much data can be encrypted with the same RSA key before it has to be changed?
I looking for the total amount of data that can be encrypted for a single key pair, not the maximum length of data per iteration.
As an example, let's take a 2048-bit RSA key with a PKCS#1 "v1.5 padding". We can compute that the the maxi... |
I'm a high school student doing a project about blockchain. I'm trying to figure out why hashing algorithms are crucial for the existence of blockchain and other types of cryptography wouldn't work. However I've learned about pseudo random number generators and they seem to do the job. Any reason why these would not be... |
I am learning RSA cryptography. The part I am stuck on is understanding how k and the public exponent $e$ is selected.
Given the formulas;
Decrypting: $c^d \bmod N = (m^e)^d \bmod N$
Which is equal to m the message
Encrypting:
$m^e \bmod N = c$
My question is when generating the private exponent how do we find what the... |
I have the following definition of perfect secrecy (please assume that the probabilistic version is not available):
If we consider the eavesdropping game given by:
$$\begin{array}{|r | r|} \hline Alice & Eve \\ \hline & (m_0,m_1) = E.m()\\ k \leftarrow Gen() & \ \\ b \leftarrow fair\_coin() & \\ c \leftarrow Enc_k (m... |
There is a specification, in Informational(!) RFC 6091, for using PGP keys in TLS authentication, although I don’t think it has ever been implemented outside of GnuTLS (it’s certainly not in OpenSSL).
Yet the TLS 1.3 RFC 8446 §4.4.2 goes as far as to specifically prohibit this obscure extension with a must not. Normall... |
I am trying to write a python script to access the IC in an eMRTD as per ICAO Doc 9303. Everything is going swimmingly until I come to the part where I need to calculate a MAC using ISO 9797-1 Algorithm 3 (padding mode 2).
In Appendix D-3, the MAC of E.IFD 72C29C2371CC9BDB65B779B8E8D37B29ECC154AA56A8799FAE2F498F76ED92F... |
Cheers. I'm dealing with HSM via PKCS#11 C/Python interface. I'm wondering is it possible to do some C_Encrypt/C_Decrypt in hardware. By saying "in hardware" I mean encryption/decryption without exposing the result to the caller space. This is mostly aboud decryption as I want to call C_Decrypt and leave the result ins... |
I'm curious about the homomorphic properties of Paillier. So, basically if I have $\textsf{Dec}(\textsf{sk}, \textsf{Enc}(\textsf{pk}, \alpha) \cdot \textsf{Enc}(\textsf{pk}, \alpha^{-1}))$, I will get as result $\alpha + \alpha^{-1}$. But, does it also mean that if I have $\textsf{Dec}(\textsf{sk}, \textsf{Enc}(\texts... |
I have the following setup:
An app ("client") wants to communicate securely with a device I created ("server").
The client has the public key of the server (and a hashed password) preinstalled.
I use the libhydrogen crypto library (inspired by libsodium / same creator as libsodium).
First, I do a key exchange (using t... |
I'm not really interested in this PRNG. I'm more interested in understanding what it takes to fail the security threshold for cryptographic applications. I'm taking the C PRNG as an example.
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
unsigned int random;
srand(1);
for (;;) {
random = rand();
... |
When selecting $g$ and $p$ for the Diffie-Hellman modular exponentiation:
$ s= g^x \bmod p $
Which pairs of $g$ and $p$ are considered good nowadays, are recommended by bibliography?
What I try to do is to write a simple Python script that chain calculates Diffie-Hellman Modular exponentiation:
def dh_public(secret):... |
Please note I am new to Cryptography in general. Sorry if I do not use the correct terminology/my question has some fundamental flaw.
Alice and Bob want to communicate securely over an insecure channel. They decide to use Ed25519 with both an identity key (IdkAlice & IdkBob) and an ephemeral key (EpkAlice & EpkBob) for... |
In the 2. edition of the Modern Introduction to Cryptography, by Katz and Lindell, there is a definition for MACs;
Canonical verification. For deterministic message authentication codes
(that is, where $\text{Mac}$ is a deterministic algorithm), the canonical way to perform verification is to simply re-compute the t... |
Because blockchain is decentralized, what would happen if there was no cryptography anymore to protect the blockchain? I know it would not be used anymore but why? "Hackers" could reverse transactions but I can't think of anything else...
|
What if were to use DES in the following way:
For a given plaintext x and key k we will perform: DES(DES(DES, k), k'), k), where k' is the complementary of k.
If an adversary has a small amount of text and their ciphertexts, would he still have to run 3 * 2^56 encryptions: for each key perform DES(DES(DES, k), k'), k)... |
Does encrypting with $\operatorname{DES}$ in the following way $$\operatorname{DES}(\operatorname{DES}(x,k), k)$$ make $\operatorname{DES}$ as strong as $\operatorname{2DES}$ with 2 keys?
Because we have to run $\operatorname{DES}$ twice now for each key in order to find it - first run $\operatorname{DES}(x,k)$ and th... |
There is (or at least was) a thermodynamic reasoning that any form of brute force key search would require an energy at least $k\,T$ per key tested, where $k$ is Boltzman's constant and $T$ the device's absolute temperature in Kelvin. It concludes that at the evaporation temperature of helium, our sun's whole radiated ... |
The statistical difference between two families of distributions of random variables:
Let $\mathrm{\mathbf{X}} = \{ X_{l} \}_{l}$ and $\mathrm{\mathbf{Y}} = \{ Y_{l} \}_{l}$ be two families of distributions of random variables, the statistical difference of $\mathrm{\mathbf{X}}$ and $\mathrm{\mathbf{Y}}$ is defined as... |
What is the difference between Zero Knowledge Interactive Proof and zero knowledge proof?
Nathan Aw
|
Using schoolbook multiplication (which has cost $\mathcal{O}(n^2)$) to multiply two $n$-bit numbers)
what is the cost of computing an RSA encryption with $e = 3$?
What is the cost if $e$ is chosen randomly in the range $\{3, 5, 7, \ldots, \varphi(N) − 1\}$?
|
I need to implement a HMAC signing of requests and I have read this article which explains the basics of what it is and how to achieve on theory.
https://blog.andrewhoang.me/how-api-request-signing-works-and-how-to-implement-it-in-nodejs-2/
But I have no idea how the user initially gets their public/private key pair. I... |
Let's say that there are two parties. Party $A$ has ciphertexts $c_1, c_2$ encrypting data $m_1,m_2$ respectively. $A$ does not know the secret key to decrypt $c_1, c_2$. Party $B$ has the secret key.
$A$ wants to compute $(m_1m_2)/(m_1+m_2).$ So, it chooses two uniformly random values $k_1,k_2$ and sends $k_1\cdot c_1... |
Consider the following hash function for a message x = x1||x2|| · · · ||xn:
h(x) = Mn
i=1
AES0(xi) = AES0(x1) ⊕ AES0(x2) ⊕ · · · ⊕ AES0(xn)
where the key used in AES is k = 0. Can someone explain what is wrong with this hash function?
|
For a school project, I'm trying to demonstrate a hash collision using Python.
This is the little piece of code that I'm trying to use (based on this answer):
from hashlib import md5
from binascii import hexlify
s1 = b'd131dd02c5e6eec4693d9a0698aff95c2fcab58712467eab4004583eb8fb7f8955ad340609f4b30283e488832571415a0851... |
The drawing of lines on the elliptic curve is repeated n times, where n is your private key, resulting in a point Ω. When calculating Ω, is there a short cut function that lets you skip having to actually iterate n times? If not, does not seem that difficult get n by just brute force..
|
In Introduction to Modern Cryptography first a pseudo random generator (PRG) is constructed from a one way function (OWF). After that the PRG is used to to construct pseudorandom functions (PRF). Is there a way to construct a PRF directly from an OWF?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.