instruction
stringlengths
32
27.2k
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...
If RSA is to create a public-private key pair and encryption is performed on plain test P to create ciphertext C, given P and C could Shor's algorithm be used to find either of the public and private keys? You have both the plain text and cipher text but neither of the keys. The fact that it seems pointless to use RSA ...
I want my encryption results to be the lyrics to Star Spangled Banner. The original text I'm encrypting would be, for instance, the menu to a local pizza place. I know what I want my passphrase to be. How can I determine how to do this if I want to require a particular passphrase for its decryption? Obviously, I don'...
I have read about Shor's algorithm and my understanding is that it can be used to factor large numbers efficiently. Can Shor's algorithm, though, be used to solve this problem: Find the number $n$ given the following information (Assume that $g$, $n$, $P$ and $a$ are all large, say 2048-bit integers): the integers $g$...
I have read somewhere that Servers which have SSH access for users in the public can have their public key posted publicly (e.g., on a website), so that people who access such a server using SSH can use this key to verify the server's fingerprint. My question: If the public key is accessible to the public, cant a malic...
SSL requires the use of a trusted third party -- the certificate authority to verify a public key presented by a server to a client. SSH on the other hand relies on the client having the server's public key by some other means (e.g., by accessing it physically from the server and saving it at the client). Why do these ...
Assume two servers $(n=2)$ use the same domain curve parameters and same hash function $H:\{0,1\}^{*} \rightarrow G_{1}$ . Then the hash value for the same identity falls in same result and let it be P by assuming $P \in G_{1}$. Then the probability for the same private key depends on secret value $a,b \leftarrow Z_{q}...
Is there any way to encrypt the huge amount of data using RSA? I was supposed it is possible but when I read some articles what I saw is that, this is bad practice or they say can only encrypt bit length/8 characters only i.e. if I use 1024 then I could able to encrypt 1024/8 = 128 characters and so on. So if I want t...
When I read authenticated identity-based encryption by Ben Lynn, encryption works to send data from user A to user B where: $$a=e(d_{A},B)$$ $$s=H_{3}(Msg,K)$$ $$C=<s,\gamma \oplus H_{2}(a,s),H_{4(\gamma)}(Msg)>$$ Revealing [$H_{2}(a,s)$] can break the security if the correct ($a$) value is known by attacker. The schem...
For message $ m $ and key $ k $ I get encrypted message $ c $ ($ m \oplus k = c $) where $ length(k) < length(m) $. Additionally I know that message $ m $ is English text. Instead of using pure brute force method, I want to narrow possible keys, by estimating key length using language pattern like “relative frequencies...
I've been practicing for an upcoming CTF competition, and I've finally reached the cryptography stage. I'm a complete newbie in this field (my knowledge is essentially that bcrypt is awesome and md5 sucks haha). This is the challenge: This is my cipher algorithm: mysecretvalue = ???; mysecretmessage = ???; for (i=0;i<...
I read a book called "computer networking: A top-down approach". It talked about how PGP creates an email message between Alice and Bob to maintain confidentiality, integrity, and authenticity. Let me define some terminology and the procedure at the very high level: m : email message H() : crypt...
I've been trying to implement Diffie Hellman key exchange so far from my own understandings (I know I could just stick with SSL/TLS, but I want to understand it in depth more), so I created this basic server<->client key exchange: Generator and modulus are constants, thus same all the time Generator is 3 Modulus is a 2...
I needed to use a scale in a code to determine which sentence in a file has been encrypted by a single-character key. The scale that i currently used is: +2 for every occurrence of a vowel or a space and +1 for other alphabets, numbers and some characters. The sentence with the maximum value using above scale helped m...
Assume that the $\phi$-hiding assumption is true, i.e. that for a composite number $m$, a PPT adversary A cannot distinguish between a prime $p_0$ that divides $\phi(m)$ and another prime $p_1$ that doesn't divide $\phi(m)$. How to prove that a PPT adversary B cannot distinguish $q_0 = (r \cdot p_0) \bmod \phi(m)$ and ...
I'm currently reading the tutorial on linear/differential crypta here: https://www.engr.mun.ca/~howard/PAPERS/ldc_tutorial.pdf End of page 14/Beginning of page 15: all the bits from the subkeys are summed up to a sum(k) variable. It is then written as 0 in the equation (5) and the probability stays the same. I don't un...
I have learned that a zero-knowledge (ZK) proof system can be constructed by making use of the three-color problem. In this particular case, the proof system also happens to be proof of knowledge (POK), i.e. any prover necessarily needs to know a witness in order to convince the verifier. Are there ZK proof systems whi...
Given two parties who have private inputes Player 1 - $X_1,...X_n$ Player 2 - $Y_1,...Y_n$ We want to compute a solution to a linear system equation: $f_1(X_1,...X_n,...Y_1,...Y_n) +h_1(X_1,...X_n)+g_1(Y_1,...Y_n) = 0 \bmod p$ ... $f_{2n}(X_1,...X_n,...Y_1,...Y_n) +h_{2n}(X_1,...X_n)+g_{2n}(Y_1,...Y_n)= 0 \bmod p$ wh...
I've become interested in writing an exploit for the OpenSSL vulnerability here (CVE-2016-0701). Running through the bullets describing the attack, I can follow up to the last bullet point. Reviewing the referenced paper, Key Recovery Attack on DH Small subgroups, I find myself in a similar position. The Chinese Remain...
I'm trying to understand the NTRU-PKCS and therefor I wanted to code a naive Version of it. Now my Problem: I tried to calculate the inverse of a Polynomial with an extended Version of euclids Algorithm. For some Polynomials my code works fine, but when I try it with the example from the NTRU-PKCS-Tutorial NTRU-PKCS-Tu...
Lets say the server has corpus of ciphertext contains $enc(a),enc(b),enc(c), \dotsc enc(x)$. The encryption function is an additive homomorphic scheme (like Paillier). The server knows only the public key. The client holds both public and private keys. Is there a way for client to identify if there is an encryption of...
I was just going over my (old) notes from Coursera's Cryptography I course, and I was puzzled by the description of SIV as providing deterministic authenticated encryption (DAE). The general SIV construction shown is to first compute a MAC over the plaintext using a secure PRF, and then to encrypt the plaintext using a...
Next to the traditional MD5 and SHA-1, other hashing algorithms exist based on symmetric encryption algorithms. An example is the Matyas–Meyer–Oseas construction. What are the advantages/disadvantages of this approach instead of using traditional hash functions, such as MD5 and SHA-1?
So maybe I'm thinking about this too hard, or maybe I'm missing a piece of information. We'll use Google for this example. Say I wanted to obtain the modulus of Google's current public key. Well I can do this relatively simply using OpenSSL: openssl s_client -connect www.google.com:443 | openssl x509 -text -pubkey Gr...
Why should a key exchange protocol (such as in TLS or IKE) use Diffie Hellman? Why not just use RSA? For example: Alice picks a random session key, signs it, encrypts it with Bob's public key, and sends it to Bob. Why introduce Diffie-Hellman? What does DH add?
In some legacy code, I encountered RSA signature padding in the following format (hexadecimal): 0B BB BB BB BB BB BB ... BB BB <hash> Is there a name for this simple type of RSA padding? I would think that the original developers got this design from something.
Let $R=\mathbb{Z}_p[x]/x^n+1$ be the ring used in normal RLWE, which is linear space over $\mathbb{Z}_p$ with dimension of $n$, let $S$ be a linear subspace of $R$ which described by linear independent vectors $r_1,r_2,\cdots,r_m\in R$ where $m<n$. My question is: Let $s\overset{\$}{\leftarrow} R$, is it hard to extra...
In any secret sharing scheme we have to develop step by step. After constructing such scheme we need to reduce share size. Why? e.g. Robust secret sharing scheme is modified Shamir secret sharing scheme with error correcting REED SOLOMON codes. In order to gain near optimality we need to reduce share size. Why? what is...
Given an initial state $S_0 = (0101)$ and plaintext $P = 1010101011$ I need to find the ciphertext. The method to solve this was not taught in my coursework, and the information I have found online does not seem to apply to this. Can anyone explain the steps needed to solve this?
I always though PKCS7 was a signature format. However, on the net I find several references to PKCS7 being a certificate format - for example, this talks about PKCS7 certificate: Extract raw certificate from PKCS#7 file in JAVA Or: What's the difference between X.509 and PKCS#7 Certificate? So is PKCS7 a signature f...
i have a series of encrypted text , they encrypted by aes 256 bit cbc mode for every encrypted text there is an iv that i have them also and i know its algorithm is aes 256 bit cbc mode i can generate new encrypted values that i know what is plain text, but the iv would be different i have something else named mac th...