instruction
stringlengths
32
27.2k
I want to encrypt some files in a cloud and delegate decryption rights to authorized users. The performance matters for me and I think I should use schemes utilizing symmetric encryption. Could anyone suggest practical (production ready, maybe) implementation for symmetric proxy re-encryption? I'm looking at pyUmbral,...
How can we construct an Elliptic Curve subgroup of cryptographic interest out of an Elliptic Curve over a much larger finite field, including the familiar $\Bbb F_p$ for prime $p$? The Discrete Logarithm Problem and related should conjecturally require $\mathcal O(\sqrt q)$ field operations, where $q$ is the subgroup's...
In the proof of the Cramer-Shoup public key scheme [1], I understand that the adversary's view can be seen as equations such as $\log c = x_1 + w x_2, \log d = y_1 + w y_2$ and so on (equation 1 and 2 in [1]), where $\log = \log_{g_1}$ and $w = \log g_2$. Does this mean the adversary knows how to solve discrete log? If...
It is known that (blind) RSA signature implementations should apply some sort of padding to messages before signing or blinding them. Does blind RSA signature with modular exponentiation as a padding scheme, ie. $H(m)=g^m \mod N$ for some generator $g$, remain secure? I can restrict the message space to be $\mathbb{Z}^...
I have the following operation I took from a cryptanalysis I'm performing for a specific CBC encryption where the challenger has provided the key: C1 = Encryption (K, IV⊕P1) ⇒ P1 = IV ⊕ Decryption (K, C1) I know the value of Decryption (K, C1) and I also know it is equal to IV⊕P1. Can I compute the value of IV or P1 wi...
Double DES is vulnerable to a Meet in the Middle attack where an attacker generates intermediate values and then matches them up to find candidate key pairs. For Double DES using $56$ bit keys and $1$ input/output pair you get $2^{48}$ candidate key pairs. How does this scale when you use multiple input/output pairs? e...
When preparing logic for use in a zkSnark, one needs to first "flatten" the code so it can be written as a series of constraints. I'm finding it hard to find examples of doing this. For instance, how would I do convert the following logic into a series of constraints: if ((input_1 && input_2) || input_3) { result = i...
Let's assume I am able to confirm a certain message's signature with a public key that seems to be from Alice. So I should be sure that the sender of that message is really Alice. But what if I have a public key where I think it is from Alice but actually is not and it still can confirms the signature of the message I ...
Why isn't data encrypted with multiple uncompromised (so far) ciphers? Feel free to answer for a single private key for both and separate private keys. For example, encrypting data with TwoFish and then AES? Is it a matter of doubling resource consumption vs a small security improvement? Can two ciphers together be wea...
I am really confused over PKCS. I saw this question but I do not have enough reputation to leave a comment so I am asking a new question to clarify. I am trying to understand what exactly PKCS and in extension what CMS is. I have stumbled on the line from the RFC mentioned in the aforementioned question. This syntax i...
Can you expect with certainty that any pseudo-random number generator will produce the same stream with a shared seed?
I am developing a web application where user can SignUp and all that kind of stuff. I was doing some research about Hashing and Storing passwords in Database and came across this article. In this article, the author at some extent prefer to Multi Hash Password before storing into database as $stored = password_hash( ...
Let $(n,e)$ be an RSA public key. Suppose $c = m^e \pmod n$, where $c>1$ is a very small integer. For concreteness, say $c=2$ and that $e = 65537$. Is it hard to find $m$ under the RSA assumption (or any of its variants)?
I created a X.509 certificate with ECDSAwithSHA256(OID=1.2.840.10045.4.3.2) by openssl. ECC parameter is secp256r1. Following is the signatureAlgorithm and signatureValue. 30 0A 06 08 2A 86 48 CE 3D 04 03 02 // signatureAlgorithm field 03 49 // the starts of signatureValue indicating bitstring length of 0x49 bytes. 00 ...
I have recently started reading on encryption protocols and their counter attacks. I came across the term Stateful Encryption particularly used in encrypting data that is stored in the cloud. So far I think it is just another variable that is used to calculate ciphertext and gets updated after every generation and stor...
According to the EdDSA specification from the IETF: For point addition, the following method is recommended. A point (x,y) is represented in extended homogeneous coordinates (X, Y, Z, T), with x = X/Z, y = Y/Z, x * y = T/Z I'm unfamilar with extended homogeneous coordinates, and I'm used to seeing points as simply (...
So I'm trying to understand why the montgomery arithmetic is fast and what the montgomery ladder is. With this Post i understood the basic affine arithmetic and Ladder. So this is not really faster than arithmetic on common weierstrass equations. In the original Paper from Montgomery, he defined the projective arithmet...
how to prove definition 3.8 and 3.9 are equivalence ? picture is from book an introduction to modern cryptography (2nd edition) by j. katz and y. lindell pdf and https://repo.zenk-security.com/Cryptographie%20.%20Algorithmes%20.%20Steganographie/Introduction%20to%20Modern%20Cryptography.pdf is link to first edition wh...
when does active S box count reduce in AES difference propagation? what is the relationship between active S-boxes and MixColumns? can you please explain it with an example?
In Data Encryption Standard (DES), M is the input message and K is the key of 64 bits size. M is divided into n 64 sized blocks (B1,B2,B3...Bn).
Recently I've decided to publish a simple app that I am using for maintaining and storing sensible encrypted data on the cloud. https://www.microsoft.com/store/apps/9NSGBQSJ2HD6 The hashing is done with Argon2id v1.3 (https://libsodium.gitbook.io/doc/password_hashing/default_phf). I think I'm using a reasonable and se...
How the secret key for Trivium cipher is stored and managed in an embedded system (IoT sensor node)? How the IV is generated in a Trivium? How to justify the fact that storing a fixed value (for example, the secret key) requires less area size (MROM, PROM etc.) than realizing a normal register for storing the key of s...
I know that we need to generate a delta-set (with 256 plaintexts). During the attack, we guess 4 bytes of round 5 key and 1 bytes of round 4 key, which allows us the byte at one position of the state at the end of round 3. If that position is balanced, then the 4-byte prediction is valid, but there are a lot of false-p...
For a product I'm developing I want to verify if the thinking behind it is cryptographically strong and secure. The product is a chat widget on websites of customers. Like an e2ee version of Intercom. There are 3 parties that will connect to the service: Customer of the service (i.e. user of the service I will offer) ...
There are several schemes that can be used to achieve the diffusion property in a block cipher. Schemes include MDS code, Bit permutation, Byte/ Nibble permutation, Diffusion Matrix, Diffusion Switching Mechanism. The amount of diffusion offered by these schemes seems to be a good criteria to choose the scheme. As refe...
Crl files are growing linearly. I wonder with 10 revoked certificate, what is the storage size of crl file and so on. For every revoke certificate, how much increase the size of the crl?
It seems like the main idea is the same for both the vulnerabilities then what is the difference?
My problem: I want to block sites on my router. I want to generate new password for my router after blocking sites. This new password I want to encrypt. But to decrypt it, I want it to take 2 to 8 hour to decrypt. Is there any solution that could solve my problem? The reason to do that is I want to lock myself out. ...
Rsa accumulator's storage complexity is known as O(1). However, how can i calculate size of accumulator value in byte?
thanks for looking at my question, i have been getting several different answers to this question so i thought i might ask it here, when i create a random generated keyfile in veracrypt, does the size of the file mean anything? for example, does a larger file mean it's more secure? when you generate a random key file ...
Suppose I have a message in the form of: $m = \text{prefix} \mathbin\| \text{secret} \mathbin\| \text{padding}$ We have: $e=3$ $n$ $n_\text{padding}$ (length of the random padding, <$1/4$ of $m$) $\text{prefix}$, which is small, only 5 bytes Is there a way to recover the message with these parameters? I thought about...
in Salsa20, the Key is 128 or 256 bits, the Nonce is 64 bits. the pair (k,r) should never be reused. Does it means, if the key is fixed, the encryption can only run 2^64 times? if the key is not fixed, after running 2^192 or 2^320 times, the pair must be used repeatedly. If I use the this stream cipher in a busy networ...
After reading these papers on Post-Compromise Security: Post Compromise Security Asynchronous Ratcheting Trees My understanding is the following: it is possible for a key-agreement protocol to offer post-compromise security if the protocol offers a key update process and if the adversary is passive. Therefore, can...
As I understood brute force attack is measured in number of keys which in turns give time required based on speed of computer It is quite interesting find out how effective an arbitrary computer is and estimate to total time required to try all number of keys in a given key space. Are there any tools available to pra...
The authentication is often done by an HMAC in modern cryptosystems. What does MDC do exactly in OpenPGP and is it a software hack or an algorithmic authentication? Also, how to force GnuPG to stop on error when the MDC is not checked? Right now it issues a warning and decryptes. That was a basis for a recent attack.
I am not a mathematician/cryptographer, so I could not take much advantage of this other question, and it seems (?) to have more requirements than me (SAC). I say simple, because I need it to be have a fast implementation and also because security is irrelevant in my use case. However, a low collision probability is a...
For my first ever project in Python, I wanted to code a cipher to encrypt simple messages ( no spaces or lower case to avoid that extra hassle for now ). My idea was to either: Choose a letter of the alphabet at random to assign to a letter of the message using lists ( without duplicates ) or Shuffle the alphabet and ...
When compared to sorted merkle tree and rsa accumulator, which one is the best? Rsa accumulator has constant proof and it adds/deletes at constant cost. What is the verification cost for rsa accumulator? I think rsa accumulator's adding operation is better than sorted merkle tree. Is that correct?
Most parts of public key cryptography has established standards which are in turn used in a large amount of real world applications. There is PKCS#1 for RSA based encryption and signatures and there is DSS for ECC based signatures. But for some reason, I never came across a proper standardised form of a ECC based encry...
Apart form the following, what are the other properties of a good cryptographic Substitution box or the S-Box: Changing one input bit should change about half of the output bits. Each output bit should depend on every input bit.
I would like to understand the mechanism behind wpa/wpa2 algorithm. Is there any script that can put this theory:(Key = PBKDF2(HMAC−SHA1, passphrase, ssid, 4096, 256)) into action to test it ? I made a capture of my own router with all necessary details, should this default Wifi password be the Key in this equation? ...
Homomorphic encryption allows computation of (arithmetic or boolean) operations on ciphertext with the result being another ciphertext. In that case... client A encrypts p_in A sends encrypted data c_in to the computer C C performs a set of known (from perspective of C) operations f_p(c_in) = c_out A is able to decry...
I think that the stream ciphers SNOW 3G and AES are used in 4G (LTE). But I can't find which cipher is used in 5G networks and how encryption is done. Is there any official documentation?
There's a great cryptography based ctf site that I've been going through. There's this one question around RSA that has been puzzling me for over a week now. Please don't tell me the answer, I'm only looking for guidance. I really want to work it out myself, but I'm not sure where to start. Problem Statement You're giv...
In the applied cryptography book by Boneh and Shoup, Chapter 6 on MACs, it is stated that one can modify SUF-CMA game by removing verify oracle access to the adversary. Therefore, the two versions are equivalent(within some factor in the advantage). However, I am a bit confused by this no-verify version of the game. I ...
Given a cryptographic hashing function, with say a $256$ bit-length, I want to calculate the probability that out of $n$ hashes we have at least $k$ hashes that collide in the first $32$-bit (assuming the $n$ hashes are uniformly distributed over all $2^{32}$ possible prefixes). Assume $k$ and $n$ are very high, somet...
I was wondering about the following as an alternative to secret sharing(shamir): Assuming that in order to gain access to some theoretical system, we'd be saving secrets on the system and we will monitor all the access attempts, in the following way: Every participant will get a different "secret", and the system will ...
I wrote a cryptographic function that encrypts a plaintext by using a series of SHA-512 hashes that are used to encrypt the data via a simple byte-to-byte XOR. In order to prevent various attacks, I implemented CBC by hashing the current hash value and the previously enciphered block together. That resulting hash is th...
I have tried to look online in various sites and texts and tried to use several youtube tutorials but I still cannot grasp it correctly. could someone please help me understand a simple case including mathematics so I could better understand it? For simplicity's sake, there are 3 trust levels: 1, 2, 3. to recover S you...
I'm trying to determine if our digital signature generation code will work without change using a European Qualified Digital Certificate in place of the RSA signing certificate that we normally use. It seems like the structure of the qualified certificate is the same as any other signing certificate, but has special ru...
I am new to cryptography, I found the below Example on a nice website, but I am not able to understand the most of the terms used (H:Hash, K:Random number,E=?, Kinv=?,Rx=?=RY?,R=Private key?,D?,S? same in verification). Please help me with the Nomenclature/representation/what is what, of the example ill try to figure o...
I want to be able to verify the authenticity of a QR code text without internet connection. Let's say I have a peanut butter store, and I have an online store too. After purchasing at my online store the customer will be given a QR code. They print that QR code and bring it to my actual store, which doesn't have intern...
I'm designing a micro-services system where each service manages some set of entities (User, Account, e.g). I want to be able to verify the authenticity of entity identifiers (e.g User-Id and Account-Id), to make sure the identifier was actually produced by service and not some random data a user produced. For example,...
Why doesn't TLS provide end-to-end encryption? This question is somewhat related to this, this and this. If you want to talk to someone, say, through facebook, the TLS connection ends in the facebook server and they may be able to read it, before re-encrypting and sending it to the intended recipient. This seems a li...
I've seen a lot of preimage and collision attacks on SHA-256 that target the first few rounds. So far, the best attacks break preimage resistance for the first 52 rounds out of 64 rounds. However, I've never seen an attack that targets the last few rounds of SHA-256. Is it possible to launch a preimage attack on the l...
When talking about elliptic curve over finite fields in ECC, we often assume that the elliptic curve can be written in the Weierstrass form $$y^2=x^3+Ax+B, \quad A,B\in \mathbb{F}_q$$. where $\mathbb{F}_q$ is a field of characteristic not $2$ and $3$. (For example, Schoof's algorithm to compute $\#E(\mathbb{F}_q)$ ass...
I've been told that Poly1305AES is a great choice of MAC for constrained (embedded) environments. I'd checked out DJB's writing on it briefly, and have to say that I found its simplicity likeable, performance convincing & security proofs rigorous enough. But also, libsodium author has told me today that his library won...
I have a chatting application like Slack/Discord. In this chat application there chat groups and messages sent by users need to be encrypted in the database. I do not need features like E2E encryption, I only need to encrypt these data for legal purposes & database issues like SQL injection. I plan to use a simple symm...
Assume that user A sends to user B a message, unencrypted, and signs it with an Elgamal signature. Can some adversary, call it C, who eavesdrops, learn the private key if user A signed both messages using the same random variable k? if so, how? to sign the message, as far as i understood, a large prime p along with pr...
I am given the following problem. Consider SHA-256 to be a random oracle in a practical application. Construct an (almost) random oracle $\{0,1\}^*→\{0,1\}^{3000}$ based on SHA-256. Does it mean that the input is any length of zeros and ones and that is should hash to a value which is 3000 digits of zeros and ones?...
I would like to know if this the right way to use the one time pad based on this table Now, my idea is to use the same Ascii #2 to again if the message is longer, I know this is bad practice, what I found this is the only solution if the key is short. Also, I read that better if I XOR the (#1 + #2), but I see it is us...
SHA-256 uses the following bitwise functions during the hash algorithm: $$\begin{align*} \Sigma_0^{\{256\}}(x)&=\operatorname{ROTR}^{ 2}(x)\oplus\operatorname{ROTR}^{13}(x)\oplus\operatorname{ROTR}^{22}(x)\\ \Sigma_1^{\{256\}}(x)&=\operatorname{ROTR}^{ 6}(x)\oplus\operatorname{ROTR}^{11}(x)\oplus\operatorname{ROTR}^{25...
I have been studying how ElGamal is a public-key algorithm built on top of the Diffie-Hellman key exchange but I got confused. How exactly could an attacker break the Diffie-Hellman protocol (i.e. compute $g^{ab} \bmod p$ efficiently given $p, \space g, \space g^a \bmod p$, and $g^b \bmod p$) if they can efficiently fi...
I was working on encrypting a few files on my computer and I was using OAEP for padding with RSA. I noticed that it was taking a long time to encrypt some of my files with a small block size, so I tried to encrypt the same files with a much larger block size and it finished encrypting incredibly fast. I was thinking th...
I have a confusion in a concept under cryptography context. What is the major difference between an encrypted hash and digital signed hash? I have used PKI Encryption i.e. public / private key based encryption. I calculated the hash and encrypted it with the private key of sender. Now, the receiver can unlock the hash ...
How can I show, that RSA with OWP is IND-CPA secure by using H function , a random oracle model. The Encryption goes like: $\text{Encryption_H_PK}(M)\gets(C_1,C_2)\gets(f(x),H(x)\oplus M)$ Decryption goes like: $M\gets H(x)\oplus C_2$
I am trying to construct a proof that a scheme is not CPA-secure. In IND-CPA experiment, can the adversary generate a key(that may not be real secret key) and compute Enc(key, message)? Does the adversary knows the encryption scheme in IND-CPA experiment? I need this as I want to prove that if a scheme B1 is not CPA-s...
Suppose that the adversary is able to recover the key of Trivium cipher. But the associated IV is unknown to him. Will he be able to decrypt the ciphertexts without any complexity?
Let's say I give you the sha256 hash of my password, which I'll call X. Now, the sha256 algorithm is a one-way function, meaning you can give it some input and get an output, but you can't get the input out of only the output. The algorithm is public, so we know how it calculates the digest of some message. But let's...
Does the Boolean XOR function represent a valid way to verify the integrity of a message ?
I'm about to release the new version of my open source project: Bloom (encrypted Notes, Calendar, Contacts, Files…) which will feature end-to-end encryption. I've published the cryptographic details online and I am looking for feedback by the community before launching it: https://gitlab.com/bloom42/bloom/-/wikis/secur...
Here's a task I've been struggling with: Say I have an encrypted message $c$, and a desired plaintext $m$. How can I define a valid private RSA Key $(d,N)$, so that $c^d \bmod N = m$ Note that the key needs to be valid! My approach was to write the modulo equation as $y \times N + m = x \times N + c^d$ so I get $c^d-m...
I have two questions about RSA encryption to confirm: Assume use RSA 2048-bit key pair, what is the secure encryption mode? Are ECB / OAEPWithSHA-256AndMGF1Padding and ECB / OAEPWithSHA-1AndMGF1Padding secure modes? For example, we know the maximim length of plaintext to be encrypted is limited by key length. RSA wa...
Can anyone answer me, if I can embed a message when I convert it to ASCII value to points on Elliptic curve $E(Fp)$ , by multiplied the ASCII value with a base point B? For example, I have $E(F_{31}): y^2=x^3+x+3 \bmod 31$, a base point $B=(1,6)$ and the order of the the elliptic curve is $N= 41.$ To convert the text ...
I am designing an app that allows (among other things...) users to divide a secret into 2 shards and was planning to use Shamir Secret Sharing (SSS) to do so. However, I want to allow users of my app (who may not be coders...) to double-check--without having to audit my code--that my implementation of SSS is not flawe...
A simple symmetric encryption algorithm can be written as follows: Input message M and 64 bit key $K$ Divide M into 64 bit size blocks $B_1...B_n$ Get first block $B_1$ and perform bit-wise $\oplus$ with K to produce encrypted block $E_1$ Repeat Get next block $B_i$ and perform bit-wise $\oplus$ with $E_{i-1}$ to ...
There is a 128-bit AES key $m$, and it's encrypted by 1024-bit RSA modulus $n$ as $$c = (m\mathbin\| m\mathbin\|\ldots\mathbin\|m)^e \bmod n.$$ There are eight $m$ in $m\mathbin\| m\mathbin\|\ldots\mathbin\|m$. Is there any way to find a message $m$? The key is repeated 8 times, but I can't utilize this information to ...
Hello can someone help me to understand this : One way to reduce this problem is to increase the size of the cipher alphabet. Rather than considering our cipher alphabet to be just the 26 letters, each with a single keyable transformation to ciphertext, we could instead use pairs of those same letters, and have at le...
Can you efficiently construct an RSA public/private key pair with $8k$-bit public modulus such that $C=\left\lfloor\pi\,2^{8k-2}\right\rfloor$ deciphers per RSA-OAEP to your name as a bytestring in ASCII or UTF-8? The decryption must be per RSAES-OAEP of PKCS#1v2.2, SHA-256 hash, no label, MGF1 with SHA-256, and sucess...
I want to perform a collision attack using hash function of my student number and another possible student number with same hash value. How can I perform this? is there any online tools that can help me to find same hash value For example My student number is s3412347; Sha-1: 6b9e8b6fd49df67a7a770c28072e8b807cd2070e P...
Regev's reduction shows that LWE is quantumly at least as hard as CVP with an approximation factor of $n/\alpha$ for $0<\alpha<1$. But I just watched this talk which said that if $\sqrt{n/\log n}$-CVP is shown to be NP-hard, then the polynomial hierarchy collapses. This seems to imply that, if the polynomial hierarchy ...
I'm trying to validate if an IoT device is authentic or it's a fraud. The problem is I only have 17 bytes to do that verification. What if I let the IoT device sign the message with the private key and the client will check in a server if that message was signed with the correct private key like the RSA algorithm. But ...
I want to use Pohlig-Hellman and BSGS to solve the discrete log of an Elliptic Curve which has a composite order generator. The tricky part is, one of the composite factor groups is large (99bits), so I want to exclude it from the Pohlig-Hellman/BSGS. Is it possible in SageMath to apply the discrete_log() function to a...
I have been recently reading about lattice-based cryptography. I read that a key aspect of such protocols rely on added Gaussian noise on lattices, and which therefore require highly efficient and constant-time Gaussian samplers, which appears to need non-trivial algorithms. For what I got this is still something that ...
I'd like to ask you to review security of the following communication scheme: network is strictly P2P, based on DHT (peer discovery) root user can create a virtual private network (network private and public keys) peers belong to private networks if peer wants to join the virtual network, they need to pass their publi...
I'd like to generate a passphrase derived from a hash fingerprint. The passphrase consists of short and human-pronounceable words from a phonetically-distinct wordlist. The derivation is a one-way function and it is acceptable for this application to lower the security against collision attacks/reduce the keyspace. For...
My idea of the OTP is to generate from 50 letters (5 words, each 10 letters) a new pad of 2000 random letters, then attach user email to the pad end (to make it unique). The keywords and the pad will be based on the Ascii table from 33 to 125. The term of use is to make the message size the same of pad size, so the pad...
I could not understand how multiplication is carried out in the BGW protocol for 3 parties. Reference: https://crypto.stanford.edu/pbc/notes/crypto/bgw.html I've understood that in multiplication, we calculate $r(x) = p(x)q(x)$ but this means that $r(x)$ is a polynomial of degree $2t$. How is this polynomial redistribu...
Which of these population tracking protocols is better from a cryptography point of view? Pan-European Privacy-Preserving Proximity Tracing (PEPP-PT) Decentralized Privacy-Preserving Proximity Tracing (DP-3T) I have read a paper discussing some of the security concerns, but it does not go into much detail about the c...
The title basically says it. We have a 16 by 16 s-box, $256$ entries total. And the first value is the multiplicative inverse of $257$, so $1 \times k \bmod 257, \space k = 1$. $2 \times k \bmod 257, \space k = 129$. $3 \times k \bmod 257, \space k = 86$ $\ldots$ Would this be secure? and if the value is higher then...
I have a plain text string "I-like-drawwing", and this string has a SHA512 value, assume the SHA512 is "aabbcc". Then I show SHA512 "aabbcc" to my friend and say: "this is SHA512 for my string, and my string ended with 'ing', I bet $20 that you don’t know my string". I don't want loose, so I must find another string ...
I’m just getting started on learning cryptography and here is a problem from exercises about which I'm totally confused: This is a 32-bit feedback shift register to encrypt some message. The register shifts circularly by 4 bits. Before each shift the S-box takes the last 4 bits and feeds the 4-bit output back into the...
In this paper Patarin says that: "for every $\epsilon > 0$, when $m \ll 2^{n(1 - \epsilon)}$ ... for 7 rounds or more it is secure against all adaptive chosen plaintext attacks" where m is the number of queries that the adversary can evaluate. What concretely is meant by $m \ll 2^{n(1 - \epsilon)}$? For instance, to ha...
I was reading a paper of some years ago about a cryptography and a phrase got my attention. We want to ensure a security level of at least $2^{80}$ I know that $2^{80}$ was used as rule of thumb rule, that's probably why they wrote that sentence. But reading this I think that $2^{100}$ may also be too low. Considerin...
Someone can help me to resolve this questions from the book of Dan Boneh (University of Standford)
I'm seeing the fundamental function in open source code for Rijndael MixColumns implementation. (Picture below) If i translate the 8'h1b correctly, it is represent the polynomial of $x^4+x^3+x+1$. However looking at the wikipedia explanation, the multiplied modulo is $x^4+1$. May i know how to link them together? Anyth...
This paper by Patarin presents an attack (section 9) on balanced Feistel networks with $k$ rounds, where the input is a bit-string is of length $2n$. (Since it is balanced, this means each PRF takes as input a bit-string of length $n$). In this attack, the adversary is able to distinguish a $k$-round Feistel network p...
The RSA private key contains 2 primes (of about 4096 bits each), and I only know their product (called modulus) and the modular inverse (called coefficient). How do I recover the RSA primes from the modulus and the coefficient, i.e. how do I implement get_primes below? def get_modulus_and_coefficient(prime1, prime2): ...
For example: Assuming someone has found a second preimage for SHA-256. In other words, for SHA256(M1)=H, someone has found M2 which SHA256(M2)=H Now, is it possible to generate k-way second preimages faster than brute force? To illustrate my point: For SHA256(M1)=SHA256(M2)=H, is there a way to find: SHA256(M1)=SHA25...
I'm trying to understand the Bleichenbacher 1998 attack, but I am having trouble wrapping my head around the bounds-part. So as far as I understand, the idea is the following: We have a ciphertext $c = m^e \bmod n$ and we are trying to find the message $m$. So we want to make use of the fact that: $s^e \cdot c \bmod n ...