instruction stringlengths 32 27.2k |
|---|
Given an encrypted file, the original unencrypted (cleartext) file, and knowledge of which AES encryption algorithm was used, is it possible to determine the key that was used to encrypt the data in a reasonable period of time?
I am not looking for details on how AES works, just a simple answer.
|
I'm just a bit confused about the nonce/IV in AES-CTR ... it seems the suggested way to go is have a 64bit random nonce, and use the last 64bits as the counter, "starting at 0".
I'm just wondering why not PRNG initialize all 128bits? Still using a 'static' 64bit nonce and still with the least significant 64bits as the ... |
I am using ElGamal and Paillier schemes to encrypt a large number of short messages: typical 4-byte integers. I do this for the homomorphic properties of these schemes.
However, the way the encryptions work, with, say, a 1024-bit key a 4-byte integer will blow up into two values of overall size of 4096 bits or 512 byte... |
The dieharder tests give a clear PASSED, WEAK, etc and I'm wondering what those thresholds might be for the ent tests. While I'm sure a subjective and holistic reading of results is also helpful (especially for someone who knows a lot about RNGs and their tests), are there values that could be considered passing?
I kno... |
I've been told that prime-number factoring is based on a "russian-doll" sequence of matrices, where a seed matrix of height Y and width X exists consisting of all zeros except for a single 1 at row Y column X. For every x columns added, the matrix grows by y, and two closely related formulas sum the column vectors and... |
I am aware that,(in theory) in order to proof that a scheme is secure using simulation based proof we replace an adversary in real world with a simulator in ideal world. Then we try to show that their view are (computationally) indistinguishable (if the scheme is secure).
What I need is some simple examples (in zero ... |
We are all aware of Google's approach to introduce ChaCha/Poly1305 as TLS cipher suite. The rationale seems clear: ChaCha is newer and seems to provide better security (and maybe speed?) gained from the experiences of the design of Salsa20.
But in his "recent" paper McBits: fast constant-time code-based cryptography (b... |
Consider the following scenario:
Sender S sends a message to receiver R. He uses a hybrid encryption scheme with RSA as key-encapsulation algorithm and AES-256-CTR (4byte-counter) and SHA256-HMAC. These algorithms are specified and already known by the receiver → the receiver knows the encrypted key length:
32byte AES-... |
This is a question I had in my exam today, and I'll be glad if someone can help me to find the answer.
A student built an encryption algorithm (something between DES and 3DES), in which the encryption is based on 2 keys, $K_1$ and $K_2$, and calculated this way:
$$Cipher = E_{K_1} (E_{K_2} (plaintext))$$
where $E_{K_i}... |
As we know, breaking a Transposition Cipher is quite trivial and can be easily done by either exploiting single letter frequencies (not $d$-gram frequencies though, given that $2 < d < L$), or by employing a simple CPA, thus deriving the snippets length $L$ and the transposition matrix (key).
If we imagine to encrypt t... |
Suppose Bob has a DSA key pair, and Alice has Bob's public key. Is there any secure way that Alice can send Bob a message only he can read if Bob can not send any reply?
I think the answer is no, since DSA is only for messaging signing, so can only be used for things like authentication and Diffie-Hellman key exchange.... |
Maybe this is a newbie question:
Stream cypher, will XOR message bits with one-time pad bits.
Suppose I have a pseudorandom number generator, like a Mersenne Twister or something similar. I could use the pseudorandom string to XOR the message.
Use the password as the seed of the generator. Same password = same pseudora... |
In “Randomness Condensers for Efficiently Samplable,
Seed-Dependent Sources” by Dodis, Ristenpart, and Vadhan (PDF), I have seen the statement that:
any tuple of distributions $(X,Z)$ is $\varepsilon$-close
to $(X′, Z)$ such that $$H_\infty(X′\mid Z) ≥ H_2(X\mid Z) − \log (1/\varepsilon)$$ offering a bound on min-en... |
If I have a poor PRNG, could a cryptographically secure hash function make a better output?
Say the PRNG can produce as much numbers as you wish, reasonably random, but not good enough to be used in crypto applications.
If I split the PRNG output into chunks, say $128..512$ bits, and feed those to a cryptographically s... |
I'm working on an implementation of Krawczyk's Hashed MQV (HMQV). I'm using Crypto++, which is a C++ library.
C++ has some features where classes that represent the crypto objects can be combined even if they don't have matching security levels. As an extreme example, imagine a P-160 curve is coupled with SHA-512. Or i... |
I am trying to consider the feasibility of implementing an encrypted file sharing system, which both provides forward secrecy but also allows public key verification. I am stuck on the marriage between these two requirements that hopefully someone can help me out with.
In order to provide forward secrecy, I think a new... |
As a font designer, I was thinking that it would be very easy to design a special font that could either jumble characters of a language (or of a code) or simply (with the features offered by the OTF format) overlap into a complex design that only the other user (the reader) would be able to unscramble...
Is this somet... |
I'm quite new to this topic and have several questions concerning HMAC and NMAC:
Why does NMAC need two keys? How can it be attacked if we just used some sort of initialization vector instead of the first/second key?
What is the purpose of ipad and opad in HMAC?
What if the key is longer than the block size?
Can the ... |
I'm not sure how to word this... I'm working with a HMAC (I think of it being a "salted hash"). I know the entire string being hashed, I do NOT know the salt. I also know the first 8 characters of the resulting hash. I can also, repeatedly, generate new hashes by changing the input string, and retrieve new first-8 char... |
i cant understand the meaning and the difference between linearity and affine and non linearity equations and what is the meaning of the free term in affine form and how it make the equation non linear and why this form "affine" used?
|
I need a simple PRNG function of type:
Integer = PRNG(n, maxval)
as I would like to count from 0 to maxval, not in a linear manner, but in a pseudorandom manner where I still use every value, but only once. For example, "0 to maxval=9" might result in "3,8,4,5,1,9,0,2,6,7", and if I asked the function for "Integer =... |
I am planning to develop a more secure version of the RC4 algorithm. Since I´m not an encryption expert, I´ld like you to help me find answers to the following questions:
Does the value of the key array(T) have to be in this range [0-255]? If the answer is “yes”, could you please explain why?
Why did they use s[t] to ... |
In Montgomery reduction, when calculating $a \times b \mod N$, it is required that $a \lt N$ and $b \lt N$.
I think $0 \le T \lt N \times R$ is enough for the Montgomery Reduction.
Rationale:
Let $a' = a \times R \mod N$,
let $b' = b \times R \mod N$, and
let $T = a' \times b'$.
Then $T \times R^{-1} = ((T + ((T \times... |
I am looking for some standard conversion from any hash function $f$, which has pre-image resistance, to another hash function with second preimage resistance. Is there such a standard conversion?
|
Can CFB mode of block cipher be used as a commutative encryption?
Is it possible to use CFB mode of AES block cipher to create commutative encryption?
With CTR it is possible but not secure.
|
I'm trying to figure out whether pseudorandom secret sharing (as described in this paper) requires a central dealer, i.e. one party who doles out keys to the other players and thus who would be able to generate all the pseudorandom numbers on their own.
I'm new to this, so the paper is almost completely opaque to me, ... |
I have been working on a project involving visual cryptography and I am stuck with the following problem.
My question is related to this paper, AN IMPROVED VISUAL CRYPTOGRAPHY SCHEME FOR SECRET HIDING, by R.Youmaran, A. Adler, A. Miri.
Can someone explain how one obtains the values for the matrix $O_{11}^{1'}$? Which... |
This question is about the approximate GCD problem which is defined as follows: Given any number of the approximate multiples $a_i = p \cdot q_i + r_i$ of $p$, where $p$, $q_i$ and $r_i$ are integers, the problem is to find the hidden common divisor $p$. Note that $q_i$ and $r_i$ change in each $a_i$.
I've recently rea... |
I would like to design a cryptographically secure, key-dependent s-box, but I am not sure how. Mainly, because I am unsure about the difference in design compared to a random s-box.
What is the difference between the methods of S-box construction of “key-dependent s-boxes” and “random s-boxes”?
|
Definition 1 on Page 7 of “An Efficient System for Non-transferable Anonymous Credentials with Optional Anonymity Revocation” by Camenisch and Lysyanskaya, uses the term “simulator” in defining the security of a cryptographic credential system, which I'm finding a little confusing.
In particular, the sentence says:
CS... |
This question is rather simple.
I've recently read the paper
"Automated Analysis and Synthesis of
Authenticated Encryption Schemes".
On page 17 of this paper the authors provide three figures of encryption modes for
tweakable block ciphers. However all I can see is that the box representing the block cipher
only has... |
I have read about the speed performance of AES_128_GCM on specific processors Intel and AMD that support AES New Instruction set. As compared with CMAC and HMAC is it relatively slow for other processors such as ARM9 board or cryptographic hardware?
|
After collecting approximately $2^{n/2}$ message-tag pairs a collision can be observed. So two different messages (m1 and m2) will have the same tag.
This paper states:
Then, for any string x, (m1,x) and (m2,x) have the same tags (with high probability in the case of HMAC, and with certainty in the case of CMAC). The... |
I was wondering how decryption would work for FPE in the case of cycled Feistel ciphers. I understand that simply reiterating through the networks with reversed key order will generate the ciphertext inputted at the beginning of the network.
The ciphertext is a bit representation of some number, so I'm just expanding t... |
I am currently learning about RSA since I didn't understand the public-key-system but now I am… kind of. So I am writing the numbers as follows:
$p = prime\ number\\
q = prime\ number\\
N = Public\ Key\ (p \times q)\\
Z = \phi(N)\\
E = Public\ exponent\\
D = Private\ key$
Now, to calculate $D$, the private key, you ... |
I have to change local administrator passwords on machines. I don't want to store password in a database. I have to generate a password that I can find later to connect to the machine again. So I periodically generate a secret random string (stored in a database) and make a hash of it with the machine name. At this po... |
I don't understand the proof of equivalence I've read everywhere (e.g., in Rabin's paper or on Wikipedia).
Here's my objection: let's say you have a Rabin decryption oracle that takes n and c and returns one of the square roots of c mod n. It always returns the same square root for a given n and c, but the choice of ou... |
I got stuck in trying to find a solution to the 3.7 exercise of the Katz-Lindell book. The exercise also assumes the existence of a pseudorandom function. The problem is that a multiple messages encryption scheme has to be non-deterministic in order to be indistinguishable. So how is it possible for such encryption sch... |
I am not exactly sure if this is for math stackexchange or crypto:
A TRNG outputs numbers in $[0,1]$ in a Gaussian distribution. I would like to convert them into uniform random bytes ($[0,255] $) to perform byte operations. What is s cryptographically secure method of doing this?
Here is an example distribution from m... |
Both crypto.SE and security.SE have excellent Q&As about how TLS generates session keys (I have linked some at the bottom).
In reading these threads I'm having troubles with terminology since the following terms seem to be used with overlapping contexts, though they are clearly different concepts. Reading definitions i... |
If we take some randomly generated key of AES-128 and we change any random 1 byte of that 16 byte key, will this make huge difference in the AES cipher text generated over same input string?
Does this 1 byte change makes output look like uniformly random? Does it have an effect on security?
|
Alice uses an ElGamal signature with base the group $Z^*_{107}$ and parameter $g=3$ of order $q=53$.The private key of Alice is some $x \in \{0,1,.....,52\}$ and the public key of her is $y=10$. To sign the message m, she calculates $r=g^k \bmod107$ for $k \in \{0,1,......,52\}$ and $s=(k \cdot h(m)+r\cdot x) \bmod 53$... |
Blinding is often used to mask private key operations when the underlying problem is integer factorization. For example, it's used in both RSA and Rabin-Williams signature schemes. This presumes integer operations are not constant time.
I have two questions:
Is blinding used in schemes other than integer factorization... |
I am currently enrolled in a cryptography course, which uses the book by Katz and Lindell. I'm struggling with the exercies which ask for proofs, like the following one:
Let G(k) be a PRG with |k| = n, and G'(k) the output of G(k) truncated to the first n bits. Prove that $F_k(x) = G'(k) \oplus x$ is not pseudorandom... |
Please, consider two honest parties $A$ and $B$ outsourced their private data to a malicious server $S$. So the parties store their data in the server. Then at a later point in time they want to ask the server to run some computation on both parties data and return a private result back to a party.
In order to prove t... |
Given the natural number $n$, which is in the form $p^2 \cdot q^2$ with $p$,$q$ prime numbers. Also $\varphi(n)$ is given. Describe a fast algorithm (polynomial time) that calculates $p$ and $q$. Apply your algorithm to calculate $p$ and $q$ when $n=34969$ and $\varphi(n)=29920$.
I found this problem on a mathematical ... |
I am developing a new key schedule, and there is this article (Enhanced Key Expansion for AES-256 by Using Even-Odd Method) where the authors also propose a new algorithm and one of the objectives is to eliminate "weak keys" of the AES. The authors call weak keys those in which all bits are 1 or 0, or those in which th... |
Let $q$ prime number, $G$ a cyclic group with order $q$ and let $g \in G$ be a generator of $G$. Suppose that you have an algorithm $A$ who takes input the element $g^a$ of $G$ and gives as output the element $g^{a^2}$ (i.e., it solves the Square-DH problem). Describe a fast (polynomial time) algorithm who takes as inp... |
Both Salsa20 and ChaCha basically work like this:
Put the key, the nonce, the sequence number and a constant into a 4x4 matrix of 32-bit words.
Transform the matrix invertibly with a number of ARX rounds.
Add the initial matrix into the current state to produce the output block.
Now, as discussed e.g. in this current... |
It is possible to convert a pre-image resistant function $f:\{0,1\}^{n}\rightarrow \{0,1\}^{n}$ to a second-preimage resistant function? I am thinking to use a pseudo-random generator and construct that second pre-image resistant function in this way:
$$F(x)=f(x)+\text{PRNG}(x).$$
What kind of tests I need to make to v... |
I've recently read "Fully Homomorphic Encryption on Octonion Ring" by Yagisawa, which is based on octonion rings over finite fields.
Personally I've never encountered octonion rings in cryptography before. Is there any example of them being used in previous work?
Please don't mention the mentioned previous version of t... |
I have seen some examples in "Foundation of cryptography" and "Efficient two party computation", in which simulator can do some things that in the real world model the parties cannot do, for instance:
In "Foundation of..." page 660, Coin Tossing protocol, the simulator first receives the result from trusted third part... |
I have a project that I have to use cryptosystem and signature scheme for it.
I've read about Cramer-Shoup cryptosystem and I want to use it since it is more secure the ElGamal cryptosystem, but, I need a signature scheme based on it which I did not find. Is there such a signature scheme?
If it does not exist I thoug... |
I am studying the NP-Problem of the codes Syndrome Decoding. The formulation is show below.
Input: a binary matrix $H$ of dimension $r \times n$ and a bit string $S$ of length $r$.
Property: there exists a set of $w'$ columns of $H$ adding to $S$ (with $0 < w' \leq w$).
I understand that this problem is hard if the c... |
In NaCl and libsodium, the crypto_scalarmult function implements the operation $Q = kP$ (scalar/point multiplication). There doesn't seem to be a function for point addition $K = P + Q$ though.
Something like point addition must be implemented somewhere I think, as part of the implementation of scalar multiplication. I... |
Let $F$ be a pseudorandom permutation, and define a fixed-length
encryption scheme $(Gen, Enc, Dec)$ as follows: on input $m \in$
$\{0,1\}^{n/2}$ and key $k \in \{0,1\}^n$, algorithm $Enc$ chooses a
random string $r \leftarrow \{0,1\}^{n/2}$ of length $n/2$ and
computes $c = F_k(r||m)$. Show how to decrypt, an... |
Is there a known algorithm to recover the sender's messages in ElGamal $\mathbb{F}_p^*$ if the ephemeral key is held constant in two or more transmissions, assuming the messages are always distinct?
Say Alice picks a prime $p$ between $2^{1000}$ and $2^{1001}$ and chooses a $g \in \mathbb{F}_p^*$ with large prime order... |
Assuming a randomize encoding scheme that takes as input a secret key $\mathsf{sk} \in \mathbb{Z}_p$ for a large prime number $p$. Then the algorithm outputs $g^{\mathsf{sk}x}, x \in \mathbb{Z}_p^*$. Analyzing the privacy of the scheme where we can reduce its security for dinstinguishing encodings of $x$ based on an in... |
Imagine we have a set $S$ of $m$ elements and we wants to permutes the set elements. Thus the original position of each element should be unknown after permuting. If we define a permutation function as $\pi: \{0,1\}^n \rightarrow \{0,1\}^n$, then the set elements are permuted securely if $n\le|S|$ where $n$ is the secu... |
I need a short addition chain for a number $n>2^{100}$ in order to implement a fast exponentiation. The memory footprint is not important.
Finding an optimal chain for a large number $n$ is difficult (and considered by some to be an NP-complete problem). However, many heuristics to find good but suboptimal chains have ... |
I'm researching cryptography for a school project, came across the above two ciphers, and something occurred to me. Would combining these two schemes give a considerably stronger encryption than either one individually?
Consider two encryption schemes: one in which only the Vigenère cipher is used (which I'll call $E_1... |
I understand the need for the hash function to be collision resistant and second pre-image resistant. For what reason, exactly, does a hash function need to be pre-image resistant?
If this property is not useful for signatures, what is the origin of this requirement, maybe privacy?
|
AES has the following steps in encryption: SubBytes, ShiftRows, MixColumns, and AddRoundKey and the following steps in decryption: InvSubBytes, InvShiftRows, InvMixColumns, and Inverse of AddRoundKey.
My question is: in which step of encryption and decryption is the key used to encrypt and decrypt data?
|
In this protocol:
A → B : { <[A, {K}pk(B)]> }pk(B)
B → A : { <[B, {K}pk(A)]> }pk(A)
I'd like to determine why this is insecure. How can the attacker learn the key K if A and B are both honest agents?
This is what I have started with:
A → B : { <[A, {K}pk(B)]> }pk(B)
An attacker M can intercept this, however M cann... |
Let $p$ prime number $q/p-1$ prime and $g\in (Z/pZ)^*$ element of order $q$.Also $a\in \{1,...,q-1\}$ the private key and $y\equiv g^a\pmod p$ the correspoding public key.For each of the following systems ElGamal give the verification(authentication) algorithm of signature $(r,s)$
$r\equiv g^k\pmod p$ ,$s\equiv k... |
I'm looking for a way for someone to prove to me their geographical location without a trusted third-party. Imagine wanting to prove to someone you're actually physically in a specific place. I'd imagine you'd need something like perhaps a receiver of some kind to triangulate the location of a satellite that could perh... |
In the BGV paper [1], the authors say in §5.4 that you can have $\mathbb{Z}_p$ as plaintext size with a large $p$.
What is the impact of the size of $p$ on the ciphertext size and computational work of the cipher's algorithms?
I would need this to decide how big my plaintext space can be before it becomes impractical.
... |
Are there any examples of practical attacks on cryptosystems set over elliptic curves which utilize the easiness of DDH for certain choices of curves $E(\textbf{F}_q)$, and as such their lack of semantic security? I'm looking for something along the lines of using the Jacobi symbol to narrow the set of possible plainte... |
Alice uses an ElGamal signature in group $(Z/pZ)^{*}$ without using hash function. To sign the message $m \in (Z/pZ)^*$ calculates the signature $(r,s)$ as follows: choose random $k \in \{0, 1, \dots, q-1\}$ where $q/p-1$ is prime number and the order of the base $g$ and then calculates $r\equiv g^{k}\pmod p$ and $s\... |
I know there already is a very similar question. However, I can't understand why $G'(s)$ is not a PRG. If $G(s)$ is a PRG, then why $G(s||0)$ can't also be a PRG? How can the distribution over $G(s||0)$ be distinguished from a truly uniform distribution of the same output range?
|
Is it possible to solve the Hidden Number Problem in extension fields? In particular in $GF(2^n)$?
Let's suppose an attacker knows some least/most significant bits of $r_i = a_i \times k$ in a given field $GF(2^n)$, for many uniformly distributed and known $a_i$ and a fixed and unknown $k$. Is it possible to recover $k... |
I'm looking for a way to prove that a certain amount of data was stored, through some easily verifiable piece of information. Similarly to how proof-of-work can prove through a hash that a certain amount of work was done to generate such hash.
I don't need this "proof" to tell me whether that data is currently stored s... |
Let $N=p \times q$ where $p$ and $q$ are two primes.
Compute $\Phi (N) = (p-1)(q-1)$.
Choose $e$ s.t. $1 < e < \Phi(N)$ and $gcd(e,\Phi(N))=1$.
Compute $d = e^{-1}(mod \ \Phi(N))$.
Set $pk = (N, e)$ and $sk = (N, d)$.
Let $m \in Z_N$ be a plaintext message. A random $r \in Z_N$ is selected, such that $|r|=|m|$, and... |
This exercise comes from Coursera's "Cryptography" course.
Let $F$ be a PRF, is the following $G(x)=F_{0…0}(x)∥F_{0…1}(x)|| ... ||F_{1…1}(x)$ a PRG?
$F$ is a PRF with $n$ bit key, input, and output length. I know the answer is “NO it isn't!”, but I can't understand why.
Is that because on any input $x$, the keys for... |
What is the advantage of AEAD ciphers? Why is the TLS working group pushing for them? I thought modern cipher suites require SHA256 for authentication. What advantage is there to including Poly1305?
Slight additional question: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 has GCM and SHA256. What is GCM used for, and what is S... |
The official docs of AES have several example of how hexadecimal or byte input can be encrypted. I have some problem about the input text and cipher key. My question is:
How can encrypt string input in AES or how AES treat string input? If I use a string input [example: "Admin"] than how AES encrypt it? If I use the f... |
Commonly there are four ways to "break" a secrecy-focused cryptosystem:
Recover the secret key
Recover the message
Distinguish an encryption from random noise
Distinguish the encryption of two different messages
The practical implications of the first two breaks are obious: They allow arbitrary message recovery (more... |
If $p$ is an odd prime and $n$ natural,it is known that the group $Z^*_{p^n}$ is cyclic.Explain why the selection-choice of the group $Z^*_{{3^{1000}}}$ for the construction of a cryptosystem ElGamal it's not good.
Can anyone explain me why this happens?
|
In order to achieve very high security for privacy, would it be cryptographically secure to use one time pad ciphers in emails? The distribution of the keyword would pose no problems since I would distribute it to other people in person, therefore avoiding interception.
Just to avoid confusion, by keyword I mean a ran... |
I'm somewhat new to encryption. When looking at encryption programs for big data, I frequently see a maximum of 256 bits.
Why do we generally restrict our (symmetric) keys to 256 bits? Can more powerful encryption algorithms be used practically, or is there a specific reason for that 256 bit maximum?
|
Are there any paper/human executed crypto systems that have reasonable strength?
I am aware of a few candidates so far
Solitare from Cryptonomicon https://en.wikipedia.org/wiki/Solitaire_(cipher) (54! unique keys)
Off the grid https://www.grc.com/offthegrid.htm (ridiculous amount of entropy, but having plaintext + cip... |
Is the GOST cipher broken or known to be weak and insecure? Please try to simplify your answer since I am a programmer and not a cryptographer and please consider this web page and tell me if the claims made there are true.
|
After the introduction of McBits, I was interested what security notions are neccessary for IND-CCA2 security of integrated encryption schemes (IES, following the key encapsulation mechanism / data encapsulation mechanism KEM/DEM approach). Now I've recently answered a different question and stated that the DEM and th... |
I'm trying to understand how certificate signing and verification works conceptually. I know the classic example with asymmetric cryptography- the sender encrypts data with public key of receiver, data goes over unsecure channel, receiver decrypts with private key.
When it comes to certificate verification that's where... |
I currently try to implement Ed25519 following this draft. I have implemented every field operation except the reduction by the group order $q$ (in chapter 5). I looked for a reduction algorithm and found montgomery reduction and barrett reduction. Because Barrett reduction seems to be more fitting I tried to understan... |
Since I am new to the Cramer-Shoup algorithm, I would like to know: Is it possible to have two different private keys for a public key due the key pair generation algorithm that Cramer-Shoup uses? I know that in public key algorithms, this is not possible in all cases, but I want to make sure what the answer is for Cra... |
I've implemented this algorithm, which, working from the end of the message backwards, creates a valid CBC ciphertext from any plaintext, using the block cipher's decryption operation instead of the encryption operation.
I bet this is described in the literature, somewhere. Possibly as a bad idea.
My questions:
What ... |
According to the Ed25519 paper, the (potentially long) input message is hashed twice (see Section 4 page 12 steps 1 and 3). This webpage has a nice diagram toward the bottom that illustrates this, and I confirmed it in the reference code on Supercop (see supercop-20141124/crypto_sign/ed25519/ref/sign.c, function calls... |
I'm pretty familiar with using ssh-keygen to create groups that go in the /etc/ssh/moduli file for the Diffie-Hellman Group Exchange in openssh. Reading over the man page, it says "By default, each candidate will be subjected to 100 primality tests. This may be overridden using the -a option." I'm making an educated ... |
In SSL and TLS, why is there a separate Change Cipher Spec Protocol rather than
including a change_cipher_spec message in the Handshake Protocol?
|
http://cr.yp.to/antiforgery/cachetiming-20050414.pdf states the following:
So what went wrong? Answer: NIST failed to recognize that table lookups do not take constant time. “Table lookup: not vulnerable to timing attacks,” NIST stated in [19, Section 3.6.2]. NIST’s statement was, and is, incorrect.
Sections 10 - 15 ... |
If Alice and Bob both start with a shared OTP $P_0$, which is 256-bytes long, and Alice wants to send a 512-byte message, would it be secure to send the first 256 bytes with standard OTP ((a+b)%256 or the like), then generate another 256 bytes of true randomness ($P_1$), run that through the OTP and send the encrypted ... |
I would like to know if there is any research work using CP-ABE for threshold cryptography?
I want to know also if applying CP-ABE for threshold cryptography would overcome other techniques.
|
We recently had the question whether it's possible to have multiple private keys with one public key for the cramer-shoup cryptosystem.
There it was stated that finding such "secondary" private keys is possible if $log_{g_1}(g_2) \bmod q$ is known. However computing this discrete logarithm is infeasible as both $g$s ne... |
So, I was having this weird thought. If the checksums(MD5 or SHA...) are unique to any file and are modified if any part of the file is edited, why cant the checksums be decoded back to get the original file? That is if I want to send a large(say 700MB) video, instead I could send just the hash and the file be decoded ... |
I am designing a user registration protocol for a system where I control both clients and servers. The aim is to establish a symmetric key for subsequent authentication, while minimizing the work load on the server side. The security concerns are less about privacy than about integrity of the system and resistance to... |
I want to set up the following:
An untrusted server should host user sessions and authenticate users without knowing their passwords or being capable of creating a fake user session in the user's name.
This is accomplished by making all sessions publicly verifiable by making public the information necessary to prove t... |
Several companies offer customized cryptographic algorithms, for example Crypto AG (www.crypto.ch/en/company):
The individually created customer algorithms are unknown to anyone
else and are not used by anyone else. A cryptographic attack is not
possible, even from an identical unit.
Only the customers know the a... |
Per “Can non-assembly crypto libraries truly be secure against timing attacks?”, array lookups are vulnerable to timing attacks. Like, if you do cresult[map[i]] and map is an array and cresult, is a string then map is vulnerable to timing attacks because it's an array but is cresult?
|
From what I have learned about RSA encryption, the message M and the modulo n must be coprime because Euler's theorem only holds for coprime numbers? for example, what happens if I choose p = 3, q = 11, n = p*q = 33, ϕ(n) = 20, e = 7, d = 3, and I choose the message M to be 66? when I try to encrypt the message : m^e m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.