instruction
stringlengths
33
27.2k
SHA-1 has not been secure for a very long time, but I still can see it here. Where in the FIPS documents did it state that SHA-1 is not secure?
I have a question about how I need to solve the following: A sentence has been changed to ASCII and then encrypted with the formula $E(x) = ax + b \bmod 256256$. All I know is that the first 4 letters are: W I S K This is the encrypted message: 064066 158368 092525 143358 099354 141643 110102 051667 024006 190286 1333...
As shown in the image, why is Circle 1 to be B and Circle 2 to be A? Why is not the opposite, that is, Circle 1 to be A and Circle 2 to be B? like this picture From my understanding, Notation B in 2nd picture is used to prevent from reflection attack. So in the 1sst picture, isn't that arrangement cannot prevent from...
If I don't use XOR in Davies–Meyer construction like in picture 2, does the function remain collision resistant?
Let's say we have 1000 files and 1000 already computed cryptographic hashes for those files. Now we want to derive a single hash that authenticates all of them. Is there a more efficient way to do this than just hashing the concatenation of all those hashes (and thereby presumably calling the hash round function about ...
I've been trying to find out which is the most appropriate PKI based cryptographic protocol for peer to peer communication. I do understand that they vary with respect to the peer to peer architecture model. It would be wonderful if someone is able to name a few and also the reason behind it.
here is the scenario: $A, B, C, \ldots, Z$ are in a group with a administrator $Admin$, each of the users in the group has his own key $Key_A, Key_B$, and so on... everyone encrypt his own information with his own key, but would it be possible to have a key such as the Admin would have the possibility to decrypt all ...
I understand the way $\textrm{PBKDF2}$ can be used to 'stretch' a password/passphrase that does not provide full entropy. My question: how does one choose the PRF? A common choice is any well-known cryptographic hash like $\textrm{SHA256}$, and I understand why that works. Some systems, however, use $\textrm{HMAC}_{\te...
I use the following scheme to encrypt and authenticate a 64-byte piece of data $P$: $$ C = \textrm{AES-SIV}(K, \textit{AAD}, P) $$ where $AAD$ is a string of 48 bytes, of which 21 bytes are a random salt $S$. $K = \textrm{PBKDF2}_{\textrm{SHA256}}(\textit{password}, S, \ldots)$, where $\textit{password}$ might be reus...
Is it possible to do a greater than homomorphic comparison in the form ($c_1 < c_2$) on two ciphertexts using Helib? The equal comparison ($c_1 == c_2$) can be done in modulus 2 by adding both ciphertexts. Does it give any multiplication and/or addition combination to obtain the greater than comparison ( $<$) on binary...
I was examining how AES provides diffusion and noticed that indices of the shiftRows transposition step can be modeled as inputs/outputs of a 4x4 table: `0123 4567 89AB CDEF -> 0123 5674 AB89 4567` Where the input is the index of each byte of the 4x4 state, and the output is the destination index that the byte will be...
Suppose I had a hash function which produced a 256-bits output for any given input (such as SHA-3-256). Now suppose i did an exhaustive mapping from every possible 512-bits input to a given 256-bits output, and stored it in a table along with the original 512-bits input. Now, if I later wanted to find the original 512-...
Came across this startup claiming practical FHE and then their blog post going into some additional details on it. It was my understanding that practical FHE is still years/decades off. They said back in September 2015 that they would publish the details of their FHE cipher which they call “KFHE”, but it appears that t...
Is there a term that determines the ratio of size of ciphertext $|c|$ and plaintext $|n|$? I vaguely recollect reading it as scale out factor. Is there a better term? Or a popular term for this?
Imagine the following senario. We have $n$ participants. Participant $i$ has a set of elements $S_i$ with the elements being in a random order, possibly different for each participant. The participants want some way to get something like a "hash" of the sets. Particularly they want for the hash to be collision resista...
I'm currently attempting to recover an ECDSA key. I have $m$, $m'$ and signatures $(r, s)$, $(r', s')$, and I know that $k$ is constant, the curve is NIST P-192 and the hash function of the. As such, I'm attempting to compute $d_A$ as shown on the wikipedia page for ECDSA. However, after recovering $k$ (on the stage w...
I'd like to find out the cryptographic algorithm which uses only lowercase letters and numbers to encrypt a message, and it has 256 bits (always). For example: fff51ebcad2c44c75d7d5d4c5184b3e4
At the moment I'm playing around with ECDSA. I know that I can retrieve the private key if the same K is used to sign two messages. I tried to use this script: Ruby Script to crack the private key. But I'm always getting an error: signature_der_string.rb:14:in `decode': null is wrong length (OpenSSL::ASN1::ASN1Error) ...
We were given this exercise, which asks us to identify the types of keys used on this diagram: The solution was Kxa -> A's private key Kya -> A's public key KxB -> B's private key My question is, how is it possible that B knows the contents the first message coming from A since it was encrypted with A's private key ? ...
I am trying to perform some math operations related to Elliptic curve cryptography, and came across this sentence: Reduce f modulo the order of the base point G. What does it mean?
I need to encrypt a few drives using Kaspersky Total Security. I however noted something peculiar, Kaspersky's description of their cipher is: Data will be protected using AES-256 encryption with a 56-bit effective key length? Does this mean that they are using the same key generator that AES-256 uses but their key...
The exercise is: What could be changed on the second message " Kya(Kxb(Ra,Ks)) " to guarantee B's authenthicity and also privacy? My teacher's solution was "add a destination" , so it would be something like this Kya(Kxb(Ra,Ks,A)). If we have a man in the middle, Trudy pretending to be B, couldn't she just check the...
I have some project encrypion real-time. I want use Voip SIP to implement the stream cipher. What I have done so far : Simple app android Voip SIP https://github.com/android/platform_development/tree/master/samples/SipDemo Stream cipher. It can encrypt and decrypt file (but can't open it). It can encrypt .wav audio, ...
Is a secret key generated with its own public and private keys any less secure than a "normal" secret key generated using DH key exchange? Example: KeyPair keyPair = kpg.genKeyPair(); publicKey = (DHPublicKey) keyPair.getPublic(); privateKey = (DHPrivateKey) keyPair.getPrivate(); KeyAgreement keyAgreement = KeyAgreeme...
Suppose you'd use the following algorithm to encrypt a message Let $k$ be the key to encrypt with Let $m$ be the message to encrypt Split $m$ into groups of 512 bytes Given a hash function with a 512 bit output. For each 512 bit group in the message: let $s$ starts at 0 let $l = hash(k + s)$ XOR the current group o...
I'm new when it comes to cryptography so this question might be a little bit stupid: Can I derive a key with Curve25519 from a (let's say) root key and encrypt the file with a secret key algorithm? Or should I better use a key derivation function like PBKDF2?
Assuming that performances do not matter, is there any real benefit in terms of security (in general) in combine hashes in this way: hash functions: Blake512 (b) Groestl512 (g) Kekkack512 (k) Skein512 (s) Output: ## imagine the outputs of each function as 512 single bit: b1b2b3b4......b512 g1g2g3g4......g512 k1k2k3k4....
I understand that under the Wassenaar Arrangement, encryption algorithms like AES were considered to be some sort of weapon. The legally allowed effective key sizes in export software were limited to something a resourceful attacker could break, presumably to prevent criminals from hiding their communications from some...
If MDS in AES has branch number 5 (so 5 active s-boxes in 2 rounds), wouldn't that mean 4 rounds of AES has $5*2=10$ active s-boxes? AES paper says it has 25 ($5^2$?) active s-boxes in 4 rounds. How to calculate minimal active s-boxes from branch number for any given number of rounds? Edit: J.D. noted that you can't ca...
Let's say that there is a message which is considered valid if signed by both Alice and Bob. Alice could sign the message and then give it to Bob, so that he can sign it and give it back to her. But, for various reasons, Alice doesn't want Bob to have a fully-signed message that she doesn't also have. If she just signs...
I have {e,N,C} and part of p; can I get q from this example : N: 009cff15eb53f29b343be4d363b892f5e11fd642ad77146dc856fc9a5c8f96dd3ceb5aa4fc05829e77d49855dbcc9af74023785d2cbc6278de83ad0603bf424697868ddba2f2a6d4bce559934cf2a960e8d35bb99c20fae7155bc8b6ef7ba1e843738e41964d8cc843f65273847a5c6a9548118d63b25b8f0e7090990f2379...
My question is how many bits of prime number is secure so that it cannot be factored from very large number? Until today how large prime factor is found in large number? Quantum computing find highest factor of size of 16 bits only( 56,153) until today and I studied that rsa-768 in which 384 bits prime number is fac...
Let's assume we have an $n$-bit hash function and a $b$-bit partial preimage attack that is faster than brute force. Does this imply a faster than brute force preimage attack on the whole hash? It seems that it does, because if you run the $t<2^b$ time partial preimage attack on an input you have a $2^{b-n}$ chance of ...
I am a newbie to cryptography and am stuck on decrypting a message. This message was received from a friend and I would like to crack it in order to respond. I have decrypted part of it but am unable to complete the rest due to my incompetence. This is the message: "ITKT'L Q LTEKTZ, O SGCT VHAHIGV!" This is what I have...
I have a message (UUID) in this form 406a5830-2a6a-11e6-bdf4-0800200c9a66. I also use a secret key for example 0987YGN.?NBVFRTY876JOPOIUHJ$$bvcfghjKFDFGH876TH$. Every 3 seconds I use the java function below to crypt the UUID+Time with the secret key using the SHA 256 function. I publish the new result on the internet. ...
Wassenaar Arrangement limits transport of high-grade crypto hardware/software since decades, if I don't err. What are its practical impacts in that direction? In particular, does it hinder in any sense publication of highly secure codes in proceedings of scientific conferences, on the Internet, or sending of the corres...
According to Wikipedia the One Time Pad Cipher is unbreakable. On the Wikipedia page it explains how to perform this simple encryption process by hand. For the encryption it adds (+) the message and the key and then modulo by 26. For the decryption it subtracts (-) the key and the ciphertext and then modulo by 26 aga...
While reading on RSA's algorithm, I attempted a simplified implementation and noticed the following: When choosing the public exponent $e$, if the value chosen is the first coprime after $φ(n)/2$ then the resulting public and private exponents are equal. Example: $p = 67\\q = 53\\n = 3551\\φ(n) = 3432$ $e = 1717$ i.e...
Boneh/Franklin developed an identity based encryption scheme based on the Weil Pairing. This algorithm has also been standardised in IEEE P1363.3 . I know that this algorithm can also be implemented with a type 3 Tate pairing. But I could not find a paper or standard where this is clearly described. Does anyone know a...
If $A$ and $B$ are co-primes (i.e. $\gcd(A,B)=1$), does $A\cdot x \bmod B$ (where $x\in \mathbb N$) give as result an element of $\{0,1,2,....,B-1\}$ ?
Given plaintext: P[i], i = 1..N Given stream of cryptographic numbers S[i, j], i = 1..N, S[i, j] in [1, j] generated by RC5 for example We encrypt using Fisher-Yates shuffle algorithm: for (int i = N, i > 1 ; i--) swap(P[i], S[i, i]) How to estimate complexity of breaking such chipher? Is it lower than strength of S[...
I am researching how quantum computers affect current encryption methods (RSA and more). However, I remember learning in a course that there used to be a particular encryption method which was popular but suddenly had a very bad vulnerability in the past (like quantum computers and Shor's algorithm would be for RSA) an...
When talking symmetric encryption, a 56 bit key is known to be so weak. If you use it for your encryption, you are considered a goner. When talking passwords however, the standard these days is about 8 characters selected from about 94 characters on the keyboard. This translates to about $94^8$ possible passwords, whi...
What are the advantages of RSA signatures against ElGamal signatures? Is there a situation in which it would be better e.g. to use RSA signatures?
We have quantum computers and we also have Shor's algorithm. So: Why isn't RSA cracked yet? What are the current quantum computers lacking?
There are several methods of making a strong password, making it longer is one of them. now we also have hashing algorithms which have outputs of 512, so i wonder, would it be safe to basiclly use a simple password like dog, and then use the for example 512 bit hash output as the password. EDIT: out off all the answers...
I have implemented a bit-sliced version of two ciphers (Gibbon-120 and Hanuman-120, both part of the Primates family of ciphers: http://primates.ae/wp-content/uploads/primatesv1.02.pdf ) I now want to measure the increase in effectiveness that my bit-sliced ciphers have given me, compared to the reference implementatio...
I don't how to make a cipher text at all, can you help me?
Suppose, as an example, we want to use the Fisher-Yates algorithm along with a pseudorandom number generator to shuffle a deck of cards. We know that there are limitations with respect to the internal state of the PRNG and its ability to reach the distinct permutations of the deck. If, for example, the PRNG can only be...
In the paper “Image encryption by multiple random grids”, Shyong Jian Shyu, 42(7):1582-1596,· July 2009, the light contrast of a set $\mathcal{E}$ of VCRG produced by an encryption scheme for a binary image B is defined as $$c(\mathcal{E})=\frac{\mathcal{T}(S[B(0)])-\mathcal{T}(S[B(1)])}{1+\mathcal{T}(S[B(1)])}$$ My...
When using cascade encryption, can you actully decrease the security, for example if you do something wrong, or is it only depend on which algorithm or mode of encryption you use?
I'm not sure if I'm calling the thing (key collisions) correctly, and that's probably why I couldn't find any information about it on Google. Still, my question is as follows. Note that I don't work with encryption right now and I'm not going to implement anything based on this knowledge; this is a purely theoretical q...
I have seen many papers on "encrypted firmware" (for example, firmware on Apple Watch like devices) . Can you tell me how it works? Is there a stub in the firmware which is not encrypted and can decrypt the encrypted firmware on runtime? Where is the encryption key stored?
I am currently enrolled in a cryptography course, which uses the book by Katz and Lindell. I am using a function having $F_{k}$ = $A_{k}(B_{k}(r,m),r)$, the random number is generated using the Linear feedback shift register, A and B are the functions such that the output of B and a random number r is taken as input to...
Let $(Mac, Vrfy)$ be a safe defined $MAC$ over $(K,M,T)$ where $ M = \{0,1\}^n$ and $T = \{0,1\}^{128}$. Is the following $MAC$ safe? Show your proof. $Mac'(k,m) = Mac(k, m ⊕ m)$ $Vrfy'(k,m,t) = Vrfy(k,m ⊕ m, t)$ I have no idea how I can prove this, please help. How would I go about proving this? Thank you for your he...
A message has been converted to ASCII and then encrypted with the formula: $$ax+b \equiv n \pmod {215475}$$ The encrypted message is: 091238 057542 070713 195800 138772 029721 035480 Each group of 6 numbers represents 2 letters. I know that the first 4 letters are W i s k What I did was the following: W i in ASCII is 0...
Consider the following attack on the BB84 quantum key exchange protocol (as far as I can tell, it should work similarly for E91): After Alice sends her key bits encoded in qubits with randomly chosen bases, Eve intercepts them without making a measurement. She uses her quantum computer, prepares it in a |0⟩ state and, ...
Let $(Mac, Vrfy)$ be a safe defined $MAC$ over $(K,M,T)$ where $ M = \{0,1\}^n$ and $T = \{0,1\}^{128}$. Is the following $MAC$ safe? Show your proof. $Mac'(k,m) = Mac(k, m)$ $Vrfy'(k,m,t) = \{Vrfy(k,m, t), $ if $m≠1^n;1, $ otherwise$\}$ My proof is as follows: I take an example message $m = 01$ and query an oracle fo...
I need the elliptic curve order to recover the private key from two signed messages with ECDSA. What I have: two signatures signed by the private-key I want to get the messages that have been signed the random $k$ used to sign both messages So breaking the Cipher should go like that: $k = (z - z')(s - s')^{-1}...
I am a student major in math. My teacher said that AES (Advanced Encryption Standard) has many applications. For example, the WPA2 in wifi. Then he taught the theory of the AES and never says how to apply it. So, my question is, if I can crack the AES, how do I crack the wifi and steal others' data (just for learning...
Fundamentally it is impossible to protect software if you can't trust the execution platform (e.g. using a TPM), so what is the point of software security then? With vendors claim that their white-box crypto / obfuscation technique are the best, is there a methodology or a way to assess the strength of software securit...
From my understanding of PGP keys they use the RSA algorithms to encrypt/decrypt messages. So, I know that the RSA algorithms use a semi-prime number to encrypt/decrypt messages. So, what I was wondering is: is the PGP key that you see the semi-prime number, and if so, how do you convert it back to the number. This is ...
For example, There are 3 clients. I want to deliver specific value $x$ to all clients. $x\leftarrow {0,1,2,...,q-1}$ where q is a large prime number. By using function $f(x)=x*y_{i}*z_{i}$ where i=1,2,3 for 3 clients $y_{i},z_{i}\leftarrow {0,1,2,...,q-1}$ Where client 1 knows y1,z1. client 2 knows y2,z2 and clie...
If I know the pattern of a hash string, particularly dllldlll or llldllld (d=digit, l=low case letter), is it possible to reverse engineer the hash function? If so, how many hashes ones needs to do so, and what tools would you recommend?
I am working on this question and I am wondering I have figured out the secret key, but my problem is I don't know how to use the secret key to decrypt the ciphertext. Thanks for the help!
In identity-based broadcast encryption, suppose the broadcast ciphertext $(r_1,r_2,\dots,r_i,U,W,V)$ is sent to the receiver. It does not describe which user corresponds to which ciphertext part. User $i$ should decrypt using the corresponding $r_i$ value. How do the users know about that? In some cases, they use some ...
Background: I have an application where devices will poll information from some source on the network. These devices are very basic and have modest processing and memory capabilities. Hashing (and by extension, HMACs) is doable, but more might be too much. The information is public, and the devices do not need to auth...
The Carmichael's function says that for $a\in \mathbb{Z}_n^*$, if $gcd(a,n)=1$, then \begin{equation} a^{\lambda(n)} \equiv 1 \;(mod\; n). \end{equation} My aim is to find $a$ if factorization of $n$ is known? Since it is a polynomial equation of degee $\lambda(n)$, so it has $\lambda(n)$ solution. Suppose any how we ...
Stakeholders: Alice - has a message, M containing a secret, SA that Bob wants, where H(SA) is a hash which may be used by Bob to redeem some Bitcoin time-locked transaction sent previously by Alice. Bob - has a message, M containing a secret, SB that Alice wants. Similar to Alice's situation, where H(SB) is a hash whic...
If I have 64 bit as input for a straight box that use a transposition process to encipher the plain text and the given 64 bits contains 60 bits as (1s), then how many trial I should do?
Let $F\colon K×K \rightarrow \{0,1\}^{128}$ be a $\mathit{PRF}$ function. Is $F'$ a $\mathit{PRF}$ ? \begin{equation*} F'(x) = \begin{cases} 0^{128} & \quad \text{if $x = 0$} \\ F_k(x) & \quad \text{otherwise} \end{cases} \end{equation*} EDIT: I know that a $\mathit{PRF}$ over $(K,X,Y)$ is a ...
In Another look at HMAC from Koblitz and Menezes, they state that HMAC came along because doing h(secret || message) was vulnerable to length extension attacks. But as far as I know, these kind of attacks only exist because of the Merkle-Damgard construction. Now that we have SHA-3, that does not use such a constructio...
I'm implementing an algorithm from a paper, and part of it calls for using a "hash tree". Since I'd never heard of that data structure I looked it up on Wikipedia. It turns out that the name hash tree is ambiguous and can be used to refer to three different types of data structures. They are: Hashed Array Tree Hash tr...
Are there encryption schemes that are additively homomorphic with respect to small fields such as $\mathbb{F}_{2^4}$ or $\mathbb{F}_{2^8}$?
Let $G$ $PRG$ and $G'(s)$ equal to the first $n$-bits of $G(s)$, where $|s| = n$. Show that $F_k(x) = G'(k) ⊕ x$ is not a $PRF$. My attempt: Lets assume a $k$ and 2 messages $x_1$ and $x_2$. So, for $x_1$ I have $F_k(x_1) = G'(k) ⊕ x_1$, for $x_2$ we have $F_k(x_2) = G'(k) ⊕ x_2$. If the attacker does $F_k(x_1) ⊕ F_k(x...
I had an idea once that all of the user data (including the username) could be encrypted with the user's password. Obviously, most sites would store different data, so using the same password and username would not make the same output in the database. For extra security, you might use a salt. A table in a database mig...
Is it possible to find the original message if we know a sha256 hashed value and its message length?
I am interested in explaining to a total layman the basics of how a network can know that you are authorized without having to compromise your private key. Using an example consisting of simple primes that anyone could understand, what is the best way to illustrate this?
Sending secret value in identity-based encryption Using xor : $K \oplus e(g,h)^{\gamma}$ Using symmetric key: Assuming $Key=e(g,h)^{\gamma}$ and encrypt $K$ using $Key$. Which one is better in performance?
I'm trying to encrypt a protocol that shares data between devices on a local area network (i.e.no connection to the internet). I don't want to use predefined keys because they're too easy to read from the firmware. What I'd like is for the devices to dynamically setup an encrypted network which prevents anyone reverse ...
I have this question I am struggling about: For example, someone suggested improving UNIX authentication by defining 3 different passwords for a user that are stored in the shadow file. All three passwords are stored with the same salt value. When a user wants to authenticate to some system, he must provide in the $i$ ...
In the the paper "Efficient Methods for Conversion and Solution of Sparse Systems of Low-Degree Multivariate Polynomials over GF(2) via SAT-Solvers" there is a Figure that I can not understand and I need help to understand it. The authors plot the running time of the probability distribution of the SAT solver applied t...
AES uses one S-box to substitute all 16 bytes in one round. Will using 16 different S-boxes (with cryptographic properties similar to the AES S-box (i.e., non-linearity of 112, differential probability of $2^{-6}$ etc) increase some security against the following attacks? Differential Linear Truncated Differential Boo...
When browsing the internet I found out about this amazing phone. Well, it would be amazing if it was actually obtainable. It's called the Turing Phone, and it is supposed to come with as good as unbreakable cryptography: http://www.ibtimes.co.uk/turing-phone-liquid-metal-smartphone-impossible-hack-offering-true-offline...
I figured I should try to learn about linear cryptanalysis with a super simple cipher with only one Sbox. The problem is that with that approach the last subkey bits seem to be involved in the linear approximation. It looks like I need at least 2 Sboxes, keeping the last one to bring randomness in case of a bad guess o...
Cryptography can largely be divided into two classes: asymmetric and symmetric. Like homomorphic encryption now greatly restricted in the asymmetric cryptography, the difference of asymmetric and symmetric, goes beyond "one-key or two-key", but flexibility, funcationality. In some system setting, the utilization of asy...
In Authenticated Identity-Based Encryption by Ben Lynn, in Proof of Integrity (section 4.3) and Proof of Security (section 4.4), I cannot grab the concept of "guessed ID" . Because encryption differs according to "guessed ID", I am unable to know how it works. Is there anyone who can help explain this term and how it a...
Could anyone explain me Direct Anonymous Attestation in general terms. I have been trying to read the paper but I really cannot seem to get my head around it. It may seem like a dumb question but I am not a cryptographer and would appreciate it if anyone could explain it simple terms.
Since there are millions of subscriber for each operator in PayTV and each subscriber can subscribe to any of the package or individual channels, how operators transmit Entitlement management messages (EMMs) to each of the subscriber? How subscriptions are updated for each subscriber given subscribers can update their...
I'd like to map a random ID of 16 bytes (sourceID) to another random ID of 16 bytes (targetID). The operation should: only be reversible by me be deterministic There are about 1 million source ID's that need to be mapped. The target ID is public, while the source ID is private. I was thinking of using AES with ECB ...
I am generating thousand prime number of 1024 bit each. But it takes lots of time. My procedure is as follows. Generate prime number using SecureRandom rnd=new SecureRandom(); BigInteger num=num.probablePrime(No_of_bits,rnd);//here no_of_bits=1000 How to reduce the time so that 1000 or 2000 or 3000 prime numbers o...
I refer to https://www.openssl.org/docs/manmaster/apps/enc.html and see that the only parameter for key derivation which I can set explicitly (not considering the obvious -S for setting salt) is -md which is MD to be used for key derivation algorithm. Now the question is: what are other implicit parameters for KDF when...
I'm looking at the De Feo, Jao, and Plût 2014 paper: Towards quantum-resistant cryptosystems from supersingular elliptic curve isogenies. My understanding of section 3.2 Key Exchange, is that Alice's private key is the isogeny $\phi_A : E \rightarrow E_A$, which can be represented by 2 integers; private key: $(m_A, n_A...
By reading Camellia Design and Analysis document following is my understanding about few cryptographic attacks from designer point of view. Differential and Linear Crypt-analysis. Number of Active S-boxes along-with the Differential and Linear probabilities of S-box contributes towards resistance against these attack...
I was recently reading that MD5 is "broken" because it's pretty easy to generate collisions (like 2^(L/2)). And the SHA1 (theoretically) fares no better. The solution seems to be hash algorithms that are very slow in comparison. I am wondering why can't people combine these fast algorithms to get the best of both secu...
I have a hashed value $X$ and need to ensure that any of the data sets $D_1...D_n$ can be concatenated with a correctional value $C_1...C_n$ and passed into a hashing algorithm to result in the value of $X$. What I need is a way to figure out what $C_i$ should be in order to ensure that $Hash(D_i, C_i ) = X$. If I use ...
I am trying to build a one-time pad encryption software and I am thinking about simply using /dev/random to generate keys. My question is: Is it truly random or pseudo-random? Or would it be better to use data from (for example) a website like random.org?
Given two ciphertexts $c_1 = enc(p_1)$ and $c_2= enc(p_2)$ using any additive homomorphic encryption scheme (or specifically Paillier). Can we find out whether the underlying plaintexts $p_1,p_2$ are equal without decrypting $c_1,c_2$ i.e. homomorphically?
The problem is to find x such that $$x = M^d \mod p^2$$, where M and d are large numbers, and p is a large prime. Ideally we only want to compute $M^d\mod p$ and then use the result to further figure out $x$. I know how it can be done if M^d is small, e.g. using The Lifting Theorem However, in the problem mentioned, ...
THIS IS ROBUST SECRET SHARING SCHEME The dealer $\mathcal{D}$ wants to share a secret among the participants $\{P_1, P_2, \ldots, P_n\}$, where at most $t$ participants are malicious and $t<n/2$. For $i = 1, \ldots, n$, let the distinct elements $\alpha_{i}\in\mathbb{F}_{2^q} \setminus \{0\}$ be fixed and public, whe...