instruction
stringlengths
32
27.2k
As I understand it, cryptosystems based on LWE/Ring-LWE are typically only IND-CPA, and fail to satisfy IND-CCA2. In fact, it appears that chosen ciphertext attacks could allow secret key recovery (!). What is the best known IND-CCA2 secure encryption algorithm based on (Ring-)LWE? What about key exchange?
I have the following homework question that im not sure about. Alice and bob are going to use the diffie-hellman key agreement protocol to agree on a key for use in AES. Explain briefly why they would need to use digital signatures and why they cannot use Message Authentication Codes (MACs) instead. I find the question...
Is there any existing website/code that can be used so that the user can do the following all within the browser and without transmitting raw text to any server? Paste in public key Paste in raw text (FYI it's about 40 characters long) Copy the resulting encrypted text? The ideal for me would even be that the website...
I have two, closely related questions: Can a really good attacker (hacker) use the public key for his advantage and break RSA encryption faster? My point is that in RSA "communication" public key is moving from server to client… If attacker will get this key and also encrypted data will be there any advantages or it i...
I want to run the SHA2 and SHA3 NIST algorithm test vectors provided in the zip files at the bottom of this page: http://csrc.nist.gov/groups/STM/cavp/secure-hashing.html#sha-2 I don't quite understand how the test vectors are encoded. For example, if I run the SHA2-256 algorithm on an empty string as so: import hashl...
I read that, in February 2017, a SHA1 collision was calculated for the first time. This, and earlier theoretical proof, means that SHA1 is officially cryptographicaly insecure. But, when using SHA1 in a protocol (SAML assertions in my case), both the protocol dictates a certain message format and the information in the...
Is there a specified size range for $p$ and $q$ when calculating $N$? For example, what size would $p$ and $q$ be when $N$ is 1024 bits?
In asymmetric encryption schemes, a public key is used by an outside source to encrypt data to be sent to the holder of the private key. It's my understanding that public keys are generated from the private key using a one-way, or trapdoor function, rendering it computationally infeasible to reverse-engineer the privat...
Assume I encrypt a message, A1, and save it. Later I replace the message A1 with a new message, A2. I do not trust the message storage. Now I want to read the last message. How can I verify that I've read the last message? An attacker can substitute the message A2 with A1 and I will not notice that. The first idea is ...
From what I understand, a physical source of true randomness could be achieved with a multi-core processor, by using clock drift between two or more cores. However, a processor is easier to manipulate than nuclear decay or thermal noise when it comes to true random number generation. My questions are: Are there any at...
I know that many lattice cryptosystems cannot be made $\text{IND-CCA2}$ or even $\text{IND-CCA}$ secure without substantial overhead. However, it seems that (when used as a KEM) that any $\text{IND-CPA}$ secure scheme can be converted to a secure-in-practice scheme by hashing the exchanged key before using it. The has...
I am confused to analyze time complexity of rc6 encryption. Please help me
Wikipedia has this diagram of a sponge construction. Why is this better than just cycling the output to the input? Like this, assuming $p$ is a list of blocks that are equal to the size of $f()$, and $z$ is the corresponding output. $$c_{-1} = 0\\ c_{n} = f(c_{n-1} \oplus p_{n})\\ z_{n} = f(z_{n-1})$$ Or in other wor...
Suppose you had these two passwords: password_one = "Z;$]bnNvY3I-Ww]R4qm7PpiE/@y9Qz$cNk{d3" password_two = "4tjDqq])G-^u:PT~X]QBTa,XqUk[o9`(p?iC`w8*)*T9t\@l+^+U04m@_8CXV:E7L\R]\>N6M.0E|%Ud_f*]bN*rn^;FX7\M%5t?" It seems to me that they are both strong. Is password_two harder to crack than password_one? I guess this dep...
How to measure strength of RSA public private key pair. is it enough to only measure the length of primes used to generate N? how to check that primes p,q used to make N were selected truly randomly from a given RSA public private key pair data? Any reliable method of generating public private key pairs and certificate...
The nonlinearity of an S-Box is defined as the non-linearity of its vectorial Boolean Function. Let $F$ be the hamming distance between the set of all non-constant linear combinations of component functions and the set of all $n$-variable affine Boolean functions $A(n)$. If we take two S-Box of $4 \times 4$ and $8 \ti...
What are the principles of fingerprinting. For example, I could take a hash of an object, which means that if exactly the same digital object re-appears I can recognize it (collisions excepted). However, to improve robustness, I would like to recognize any slightly altered version of a photograph (say re-sized or slig...
I'm wondering if and how the current public key certificate infrastructure is guarded against the following scenario: Honest Alice obtains Eve's public key certificate Certe, made by honest CA Carol; checks it the usual way; and assumes she knows Eve's public kev Pube. Alice generates a message M mentioning obligation...
My goal is to create a random $k$ bit string. My question can be divided in two parts. If a $n$ bit string $s$ is computationally indistinguishable from a random $n$ bit string, can we say that the string $s$ has $n$ bit min entropy? But for some reason I can't use the string $s$ directly, I need to convert it to anot...
I was wondering aren't the most used prime factorization algorithms a symbolic mile behind the security of the RSA cryptosystem? The way it looks to me is that every time an algorithm is able to crack RSA or in specific to find the two prime factors, you can just simply change the size of the prime factors. Is it real...
I am building an application where I want that data submitted by the user is stored encrypted in the database, such that only the user can access it. I started reading into cryptography and it looks like I need to convert the data to ciphertext, e.g. using AES, Rabbit, Blowfish or ChaCha20, which are well supported in...
Let $H:\{0,1\}^*\to\{0,1\}^n$ be a cryptographic hash function as a black-box, and suppose we have unlimited space. As I understand, finding $x$ such that $H(x)=0$ (if such exists) would require a preimage attack, and avg. time $O(2^n)$ (linear in the size of the output). On the other hand, finding $x\neq y$ such that ...
I'm doing formal verification of the group properties of elliptic curve addition in Weiertrass form. I was taking as a reference this and this articles. The first does the verification for Weiertrass form and the second does it for Curve22519, a Montgomery curve, but his approach can be generalized to Weiertrass form. ...
Overview One feature that is often underlooked of the One-Time Pad is its perfect deniability. i.e. If Alice sends a message to Bob that is seen by Eve then if Eve later goes to Alice with the ciphertext and tries to force Alice to disclose her key Alice can "make up" a key and Eve can't prove that the key Alice provi...
Consider the following implementation: Bob wants to communicate long-term with his team over an unsecured channel. Bob and all members of the team generate individual public/private keypairs (ex. RSA) and store/share their public keys on an untrusted key server. Bob, being the first member of the team, also generates ...
Note: This is all for fun and learning. None of this will go into production code. I'm studying something (sponge functions, specifically) that benefit from large block sizes. AES has a (comparatively) small block size of only 128 bits. Is this a safe construction for increasing the block size? $E(x)$ and $D(x)$ ar...
We know in terms of security level, that an ECC key is stronger than an RSA one (e.g. a 160-bit ECC key would be equivalent to a 1024-bit key in RSA). If I can generate a constant secret key based on RSA, does that mean my scheme performance could be better than the scheme based on ECC?
The equivalance operator is the inverse of the XOR operator, it's symmetric. Would this mean that it would also provide theoretical perfect secrecy just like XOR? XOR x ⊕ y = (x ∨ y ) ∧ ¬ (x ∧ y ) EQUIVALENCE x ≡ y = ¬ (x ⊕ y) There is no information leakage in theory if you just take the inverse of a perfectly symm...
I guess I do not understand the word 'parallelizable'. Why are ECB CBC and CFB parallelizable? It would be nice if someone could explain it in a short way.
My question is in Ring Learning with Errors, let $a(x)\in \mathbb{Z}_q(x)/(X^n+1)$ where $n$ is a power of $2$, be a random polynomial, $s(x),e(x)\in \mathbb{Z}_q(x)/(X^n+1)$ are the secret and error polynomial respectively with co-efficients sampled from a discrete Gaussian distribution $D_\sigma$. Now, the decisiona...
I need a way to generate temporary unlock codes for an application to use when it can't go online to confirm that its activation subscription is still current. The application needs to able go offline for 30 days without needing to re-authorize, and this would just be a fallback option for an extended network outage/et...
I have a plaintext "DENKMAL" which I have to encode in the ECB mode with the block size = 1 character (whereby the assignment $A\leftrightarrow 0, B \leftrightarrow 1$, etc.) Now I should find the ciphertext of the plaintext. What I have done up to now is the following step: D E N K M A L 3 4 23 10 12 0 11 But ...
I proposed an idea of Perfect Deniability of a MAC I tried to come up with a protocol that satisfies those security requirements as well as the normal security requirements of a MAC One-Time MAC Alice and Bob pre-share a $n^2$ OTP bits, $k$ (bits that were generated the same way you would for a OTP with all the requir...
What are the security vulnerabilities of the XOR operator in the following scenario: The Key, The Cyphertext and the Plaintext are the same size in bits. The Key is only used once and it's secret The Plaintext is only used once and it's secret Hence the Cyphertext is only used once, but it's public Only the Cyphertext...
I understand that a CRC verifies data integrity by producing a checksum, which is the result of polynomial long division. I've heard hash values referred to as hash checksums, so my question is whether hash functions use some sort of polynomial division as well? I know they break the data up into block ciphers, so my g...
In his original work (1) on the ElGamal encryption and signature scheme Taher ElGamal states in chapter V. section B.: For the signature scheme using the above arguments for the sizes of the numbers in our system and the RSA system, the signature is double the size of the document. Then the s...
I know the GMW Protocol is secure in the case of a semi honest adversary which control all the parties except one. However I want to proof that it is also secure in the case the semi honest adversary control all the parties except two. Does anyone have an idea (even if not formally) how to proof the second case?
For positive integers $q, n, m>n$, how do we derive the lower bound $Pr[A\cdot \mathbb Z_q^m = \mathbb Z_q^n] \geq 1 - \frac{1}{q^{m-n}}$ for a uniformly random matrix $A \in \mathbb Z_q^{n \times m}$? I know this probability is equivalent to the probability that each row has gcd 1 with q, $gcd(a_{i,1}, \dots, a_{i,m}...
So I found this question in a model paper, Break ciphertext ”BJJY GPXF DI TJPM ZSYH” which is encrypted by a Caesar Cipher. This gives a meaningful plaintext if we use 21 as the shift key. So the answer is "GOOD LUCK IN YOUR EXAM" Do we have to find the shift key by guessing all the possible keys until we find t...
Suppose you want to store information in, say, safe container for a certain time, after which you want information to be accessible. Let's assume simple idea and fill details by yourself. Take some space of strings (for example 10 characters in size, containing capital and ordinary letters) and encrypt a container wit...
I am not sure if this is the right place to ask but I will give it a try. If not, let me know and I will ask somewhere else :) We discussed the byzantine agreement and broadcast channel in class. We showed that broadcast implies byzantine agreement if $t < \frac{n}{2}$, where $t$ are dishonest parties and $n$ are the h...
If I have a program that take a string to give me the ciphertext, nothing stored, using the same keys. The ciphertext is a base64. Can I figure out the type of encryption by the amount of characters in the base64 string? Is it true that, 17 character string gives: 16 Bytes = MD5, 20 Bytes = SHA-1, 24 Bytes = 3/DES, 32...
Background. I'm trying to make a local command-line based password manager. So far, I've managed to make the output look dizzy on tty, and I plan to encode user credentials in individual 512-byte blocks. To encrypt these blocks, I thought about using XTS, but the overhead of "tweaks" just makes it less favorable com...
In Schoof's 1995 paper, Counting points on elliptic curves over finite fields, page 236, Proposition 6.1(i) states: Let $\mathbb{E}$ be an elliptic curve over $\mathbb{F}_p$. Suppose that its $j$-invariant is not supersingular and that $j\neq 0 $ or $1728$. Then the modular polynomial $\Phi_l(j,T)$ has a zero $\tilde...
Does order of elements in two sets matters to authenticate using Fuzzy Extractor? Using extractor as proposed in https://www.cs.bu.edu/~reyzin/fuzzy.html it seems the set difference is zero for this case: $w= {1,2,3,4,5,6,7}$ and $w'={7,6,5,4,3,2,1}$ and other permutations where order of members are changed. This is no...
I am working on financial application where users' data are encrypted with symmetric cipher (AES-256), encryption keys is derived with KDF from user's password. I am looking for way how to give to my users some easy-to-store value (10-15 bytes long) that he stores in a safe and use it as "recovery key" when he forgot h...
I know that the encryption is AES, and I have multiple plain-texts with their cipher-texts, I don't know the encryption mode (ECB, CFB, etc ...) actually, but I know that the keys and the IV Key (if it's used) are static not changeable. How can I get the keys, or is there are a way to encrypt a text with the same key,...
This might be too broad to apply for all CSPRNG, but it might apply for the general case, I'm not sure. I need this specifically for python os.urandom() and SystemRandom() which get a seed from /dev/urandom, and on Windows CryptGenRandom(), Is it possible to truncate or even modify the random number but still retains ...
I am implementing an application where a user needs to sign some data that they have created, store it in an untrusted place, then later retrieve that data and verify it is still authentic before using it. The user already has a RSA keypair for doing encryption throughout the application so I would like to re-use it fo...
First of all, I want to say that I'm totally new to cryptography. I searched on crypto stackexchange but couldn't find the answer to the following question.(probably because it's easy, but I still don't get it) My question is based on this question. So a signature basically does the following: message $\rightarrow$ has...
Trapdoor is a function taking as input $x$ and givings us output $y$ where it is hard to convert $y\rightarrow x $ back without knowing a secret $s$. I think that $y$ is an encryption of $x$ under a some certain key($s$ or its associated public key). So is trapdoor encryption?
Follow up on this question: How efficient are the generic attacks regarding near-collision-resistance? Let $H:\{0,1\}^∗→\{0,1\}^n$ be a cryptographically secure hash function. Let $k\in \mathbb{N}$ be $0 \leq k \leq n$. Without further details, how much effort is needed to find two strings $x_1,x_2$ such that $\Delta(...
I have heard some people say that the Poly1305 authenticator is a "nuclear" MAC i.e. it is information-theoretically secure. After reading the paper I see it is based on the Wegman-Carter MAC which is supposedly the natural authentication pairing with the one-time pad cipher. Is it true though that Poly1305 is really a...
For common multi-block encryption schemes (CBC, CTR, CFB, stream ciphers, etc), if they are forced to be deterministic, a change in the plaintext will change only the current block and maybe future blocks, but the past blocks are unchanged. Using DES-CBC as an example, I've fixed the IV as to force it to be determini...
I am studying about blockchain and have been focusing on encryption protocols that allow authentication. The digital signature of public and private key seems solid, I have focused on the algorithm ED25519. But in some places, some people say about not exposing the public key because through the public key and signatur...
How can we sign a small message with a discrete-log scheme so as to minimize the size of the whole signed message? Detailed objectives, notation: It is of paramount importance to minimize the total bit size $c$ of the cryptogram $C$ carrying the whole signed message $M$, e.g. because $C$ will be keyed-in (appropriate...
X.509 has a structure which contains information like version number, serial number, signature algorithm, issuer, subject name, subject public key, signature of the issuer etc. However, I'm having an argument between friends because according to them, the public key is the heart of the certificate. On the other hand...
Branching program is one type of NC1 circuit and can be used to compute encrypted data. So whether there exist other methods in the NC1 circuit to compute encrypted data. What's the advantage of branching program? Why we use branching program to compute the encrypted data? I attached some related papers as follows: ht...
I have the public key and I dont know how to obtain Modulus and exponent. After referring stack overflow, I have used below command line to obtain e and M finally as mentioned below. openssl.exe rsa -pubin -inform PEM -text -modulus < key1024_pub.pem Public-Key: (1024 bit) Modulus: 00:c4:bd:2a:41:92:5a:a1:0b:98:07...
I have a source which generates secrets at $8-10 bits $ per second. I need to use this secret to feed another generator every second. I am wondering how long should I wait while I am concatenating 8 bits every second and then use longer bits as input to hash. I have two options: Use 8 bit that I get every second, hash...
Is there any implemented solution to agree on a session key in offline way. I can exchange some keys before being offline but I need both sides to create the session key offline. I need implemented and secure solutions.
I saw the question "Decryption honeypots" and realized that if the message was compressed before being encrypted, then checking compressibility would not help you identify the decoded message. So if the message is compressed by a known method is there a fast way to determine if it is a compressed message (right key) o...
I would like to store password digests in structure that contains information how digest were generated; There will be concatenated these three values: {Name} of hashing functions used for computing HMAC (e.g. SHA256) {Salt} - randon 32 bytes of key data {Digest} - derived digest from {Salt} and cryptographic function...
I would like to know what cryptographic hard problem this reduces to. Select two large prime numbers $p$ and $q$, and let $N=pq$. Select a random positive integer $r$. Compute the encryption of plaintext $M$, ($M<p$) as $$ E_I(M)\ =\ (M\ +\ r\times p)\mod N$$ This is the inner encryption of the Algebra Homomorphic ...
I would like to know the cryptographic hard problem that is most closely tied to recovering integer $r$ from the modular product $r\times p\mod q$. (This is a simplification of an earlier post that had some errors). It really looks like integer factorization to me; if not, what else would it be? More specifically, se...
I have a shared randomness between two user. But to make situation worse Eve can listen to exchanges and guess noisy or error prone version of shared randomness, whose correlation varies depending on it's proximity from either party. Are there works to help leak secret based on Eve's observation using machine learning?...
Analysis of security of recent LWE based Key-exchange schemes, the error and secret vector is always chosen from the same Gaussian distribution. What will be the impact on the security if $\sigma_s\neq \sigma_e$? In particular, if $\delta=$root-hermite factor, $d=$dimension of the lattice $m+n$, $m=$number of samples,...
I enjoy cryptography, and like encrypting stuff hands on, for fun. I often send encrypted messages to friends. Trouble is, the easiest ciphers are also very insecure (for example, the Vigénère cipher and the Playfair cipher) and the most secure ones are plain impossible to use with just pen and paper (for example, RSA ...
Given a bit string, is it possible to assign it an immutable time stamp that is verifiable as correct without assuming a (one or more) trusted time-stamping authority? A time-stamp is correct if it is within delta milliseconds of the creation of the (instance of the) bit string, for some fixed but small delta. The crea...
One reason that communication protocols use ephemeral keys is to help with implementing Perfect Forward Security. They're also used in SSL to go from using RSA to using a faster symmetric encryption. Why else are ephemeral keys used? In particular, if I don't care about Perfect Forward Security, and I already have two ...
The famous works on Fuzzy Extraction considers $set$ of inputs. I am interested in reconciliation for sequence of close data. Here order of elements are important unlike in previous one. Are there constructions focusing on sequence rather set reconciliation?
I'm trying to understand the security implications of encrypting an ssh key with a passphrase, and storing the passphrase in the MacOS key chain or Gnome key-ring. As I understand it, my ssh key passphrase needs to be long to prevent offline attacks (e.g., an attacker getting access to un-encrypted backups). The operat...
Looking at the design for Feistel ciphers, they use a list of round keys which are generated from the main key using the key schedule of the associated block cipher. Some block ciphers need this as to prevent repetition, but why does a Feistel network need it? If $F$ is a good PRF, then the output should be indisting...
I am currently working on my JavaScript project where I am also trying to encrypt attachments with AES-256. Right now I am testing it and I am getting this results. For photo file which has size about 2mb after encryption I get 3.7MB... Which is cca double that original size. I want ask you guys if it is OK because wha...
Does the chosen algorithm affects the needed processor performance directly? Is a drive encrypted with Serpent as fast as one encrypted with AES-Twofish-Serpent? Does this apply to the hash algorithm, too? Do machines with a processor with AES-NI decrypt Serpent-HDD as fast as an AES-HDD?
PREAMBLE About 20 years ago, when reading a novel (set in late 1800) by some classic Russian writer I came across very curious example of steganography. The two main characters were peasants who got lost in the woods. Suddenly they come across wood cabin where a very dodgy forester lives. They have no other choice but ...
Basically the title says it all. I am trying to develop and understand an ECDH-ECDSA encryption. My current approach to provide some form of authentication to the ECDH is to use ECDSA to sign the public key of ECDH before sending it over the network, in order to allow the receiver to verify the sender. However, after r...
In a Schnorr group as used for DSA, of prime modulus $p$, prime order $q$, generator $g$ (with $p/g$ small), how can we efficiently exhibit an $x$ with $0<x<q$ such that $g^x\bmod p<p/k$, for sizable $k$ but $k\ll\sqrt q$ ? I see that for small $k$, it is enough to try incremental values of $x$ until finding an $x$ tha...
I was trying to understand Socialist millionaires problem and solution in OTR protocol, but I'm stuck at figuring out how and who computes $(Q_{a}Q_b{}^{-1})^{\alpha\beta}$. If I'm Bob then I received $Q_{a}$, I can compute $Q_{b}^{-1}$ and I know my $\beta$. However I don't know $\alpha$. How is it computed then? I'm ...
It is recommended that a new seed file be generated approximately every ten minutes by seed file manager in FORTUNA,though it depends on the application and on the rate of the accumulation of entropy. Can I be referred to mathematics behind this calculation of 10 minutes and dependence on rate of entropy accumulation?
What are diffrences between tweak and nonce? I only know that nonce is used only once but tweak can be used for more than one time.but still by this diffrence I can't diffrentiate tweak and nonce
Let's say we have $Enc_{pub}(a)$, the encryption of an integer $a \in \mathbb{Z}^*$ under the public key pub with a Homomorphic encryption scheme that supports both addition and multiplication. Is there an efficient way to compute $Enc_{pub}(log(a))$? I tried with Taylor Series approximation, but this one won't work un...
if $a,b,c$ are selected at random from a large cyclic group, then what could be the probability that $g^{a+b}$=$g^c$? it simply corresponds to the probability that multiplication of two random numbers A and B in group G equals to a given random number C in G
This page on Wikipedia states "Brute-force attacks can be made less effective by obfuscating the data to be encoded making it more difficult for an attacker to recognize when the code has been cracked or by making the attacker do more work to test each guess." This might make sense, but are there any examples o...
According to eavesdropping indistinguishability experiment $PrivK_{A,\Pi}^{eav}$ from page 34 of this book, I define $\varepsilon$-perfect secrecy as this($\varepsilon>0)$: For every adversary $A$ We have: $Pr[PrivK_{A,\Pi}^{eav}=1]≤\frac12+\varepsilon$. I want to prove that $\varepsilon$-perfect secrecy holds, when $|...
Imagine the case where you have a sufficiently large finite field (or any multiplicative field for that matter) $\mathbb{Z}_{p}$ where p is some large prime. Now, I have a number $g \in \mathbb{Z}_{p}$ (for this example let us say some RSA cipher text) and a secret shared key $k\in \mathbb{Z}_{p}$ (using shamir secret ...
Is it possible to contract NIZK proof that a cipher was randomised? Suppose Alice creates a cipher $c = \text{Enc}(m,r)$ and ZK proof that $c$ was formed correctly (for example, $\text{Enc}$ could be the lifted ElGamal encryption function). Bob wants to randomise $c$ and construct $c' = c\cdot \text{Enc}(0,r')$. How c...
In my app, I use PBKDF2 to stretch a user inputted password. I split the result in two: the first half is stored locally as an encryption key (and never sent to the server), and the second half is sent to the server as a regular "password". Rather than hardcoding a fixed cost for PBKDF2 on the client side, I allow the ...
Is batching possible for a LWE based crypto-system like we do for a RLWE based one?
The Schnorr signature scheme is a randomized signature scheme with appendix. The signature is $3t$-bit for conjectured $t$-bit security in a chosen-messages setup, with at most $2^{t/2}$ queries to a signer; a description faithful to the reference paper is later in the question. It is simple, and 25% more compact than ...
Assume the threat model here is that the server is not to be trusted and the client is trusted. A user registers for an account and the client chooses an iteration count of 50,000 to generate a 512 bit key for the user. The key is then split in half: the first half is kept locally as the encryption key, and the second ...
Given $a, p$, $c$ where $c = a b + e \mod p$, can $e$ be recovered? Additional details: $p$ is prime $a, p$ are re-used across many instances of the problem $b, e$ (and by extension $c$) are always unique for each instance of the problem $a, p$ are about 783 bits, with $a$ being smaller then $p$ by a no more then a fe...
I feel like the title explains the problem fairly well. Is is possible to use encryption to verify a document's original author? In my case, I have a doc that I want to release online. Is there a way I can make sure that anyone who finds the doc can verify that I was the original author who created it and not someone w...
I have worked on a random number generator that has turned out to give results pretty close to those of Fortuna with a single source. I was wondering how it affects the performance and claims of Fortuna as a RNG in this special case of using a single source. How will the recovery rate be affected? I think a solution wh...
As a followup to previously asked question: What's a good strategy for the game "spyfall"? I was wondering if we could build a pencil & paper solution for the problem resistant against pencil & paper attacker. $k$ players know a secret integer location $[1-30]$ and another (spy) does not. Those who know the secret wa...
If I have a compromised random source and a cryptographically secure one, is hashing them together makes a cryptographically secure random output? Example: The compromised random output: ABC The cryptographically secure random output: DEF Hashing them together: printf 'ABCDEF' | sha512sum 569350085b223ba854dfc5d6076...
The new paper by Albrecht describes a new attack on "unusually" small secrets that are used in homomorphic encryption schemes. In the paper the talk about binary secrets or LWE Normal form i.e $\sigma_s=\sigma_e$, error and secrets from the same distribution or secrets are in binary distribution. The online tool suppor...
I am learning about digital signature. For performance, we normally do hash then sign. One approach is to sign $H(m)$ where $H(\cdot)$ is collision resistant, but under chosen message attack, this approach only has security level of $n/2$ because of birthday attack. Another approach is to sign $H(m \oplus r)$ where $H...
I have the following homework assignment: $n$ is an even number, $1^n$ and $0^n$ are $n$-bit strings and $x$, $y$ and $z$ are arbitrary strings of length $n$. How many evaluations of hash function $h= does solving the following evaluation require? $$h(1^n || h(x) || h(y) || h(x \oplus y \oplus h(y \oplus h(y)))) = h...
What is more important, in terms of security, the size of the MAC or the size of the key that it uses? I'm asking this because I have to answer the following homework question: What is more secure? A MAC with a 12-byte key and 6-byte MAC length, or a MAC with a 8-byte key and 12-byte MAC length? For the first one, ...