instruction
stringlengths
32
27.2k
I have some ciphertext that I have determined using frequency analysis to be most likely encrypted using a transposition cipher, as the letter frequencies are similar to plain English language text. I believe the next step should be to determine which transposition cipher it is, but I don't know how to do that. Am I ri...
I've attempted to find a solution to this problem, but for the life of me I am unable to. I am attempting to solve whether a point an elliptic curve of prime order is between 2 points, given a specific generator point, similar to the question posted here: Proving that two points on elliptic curve are within range I wou...
Mapping a bit string $L$ to elliptical curve point in say prime field $\mathbb Z_p$. A simple way would be to use an integer mapping function that maps $L$ to a number $\{1, q\}$ where $q$ is the order of the group and then return $q[B]$, where $B$ is a base point. But it would be unacceptable for the purpose I want. H...
I have a question regarding the security definition of deterministic authenticated encryption (DAE) as defined by Bellare and Shrimpton. Their definition is reproduced below, and my question pertains to the emphasized part. Definition 1 Let $\Pi = (\mathcal K, \mathcal E, \mathcal D)$ be a DAE scheme with header space...
I want to backup my data according to the 3-2-1 rule. I am already back up to 2 different drives (2 different systems) at home. In addition, I would like to use cloud storage (Google, Amazon, etc.). Considering the future weakening of cryptography by advancements in computing power (e.g. key guessing by quantum computi...
I know that IKEv1 Aggressive mode is not secure as ID payload is sent out in plain text. Even though it is insecure, it still exists! Can someone tell why exactly do we need Aggressive mode? What is it that Main mode cannot do and Aggressive mode can (other than speed) From what I know Aggressive mode is to be used for...
Why did we call it digital signature if an attacker can pretend to be Bob? Bob hashes his message, encrypts the hash with Alice's public key, and sends it to Alice with the original message. Alice receives that message and the signature. She decrypts the signature with her private key, and compares the outcome with the...
I want to backup my data according to the 3-2-1 rule. I already backup to 2 different drives (2 different systems) at home. In addition i would like to use cloud storage (Google, Amazon etc.). Considering the future weakening of cryptography by advancements in computing power (e.g. key guessing by quantum computing) i...
In NIST FIPS 202 on the table, It is written as Function Output Size Collision PreImage 2nd Preimage SHA-1 160 < 80 160 160–L(M) SHA-224 224 112 224 min(224, 256–L(M)) SHA-512/224 224 112 224 224 SHA-256 256 128 256 256–L(M) SHA-512/256 256 128 256 256 SHA-384 384 192 384 384 SHA-512 512 256 512 512...
In the secure remote password protocol version 6a, the identifier for the user, I, is hashed along with the salt and the password on the client. While I understand the identifier is used to locate the verifier on the server, what is the purpose of including the identifier in the client side hash? Does it serve a crypto...
We know that: trevisan's extractor based on min entropy of the relative system. For trevisan extractor, we need source, seed, min entropy value per bit and error rate for per bit I have the code for trevisan's extractor and if entropy is small, extractor is working very slow, if entropy is big extractor is working quit...
While trying to understand the use or meaning of the fullchain.pem file created by let's encrypt I stumbled upon this post in which fullchain.pem is explained as: fullchain.pem is a concatenation of cert.pem and chain.pem in one file. In most servers you’ll specify this file as the certificate, so the entire chain wil...
To my understanding, the only factor that (even if ever so slightly on most implementations) affects the run time of SHA-256 is the amount of padded chunks the extension & compression function have to run over. The only way to alter the amount of padded chunks is to change the length of the input. Therefore, the only f...
I am reading this article in my attempt to understand how the TLS verification and chain of trust works. In the piece I come across a section that I am not sure I understand. In the simplified description of how the browser validates a certificate you have this: The client, which is a browser for ease of explanation h...
I'm not a cryptologist, just an interested engineer (& now retired). I used to design hardware with AES en/decryption blocks & generate test vectors using my own Tcl script using the embedded AES function. However, I was wondering if modifying AES to use more than 1 SBox (& inverse), it would be "more secure", or is th...
I'm doing the Coursera cryptography I course from Dan Boneh. I am attempting to do week 2's programming assignment, but I think I am having some sort of misunderstanding of either the theory, the actual implementation, or both. I am neither a crypto or python expert so I'm sure I'm messing up both. Essentially, I am tr...
I've seen some papers drawing a connection between IND-CPA and passive attacks and IND-CCA and active attacks. Can someone explain how IND-CPA relates to passive attacks and IND-CCA relates to active attacks if this is indeed the case? The most recent example of such a paper that I can recall is this: https://eprint.ia...
Let's consider generator: $x_{n+1} = (a \cdot x_{n} + c) \mod m$ And let's assume we will meet three requirements known as Hull–Dobell Theorem. Also consider only $m=2^{i}$ (then $c$ has to be odd). Now let's consider $a$, $c$ and $x_{0}$ are 256-bit keys ($c \neq 0$). Could this generate secure pseudorandom numbers? W...
Is it more accurate to state that a public key encryption scheme is correct if for all $m \in M$ and $(pk, sk) \in \operatorname{Gen}(1^k)$ a. $\operatorname{Dec}_{sk}(\operatorname{Enc}_{pk}(m))=m\;$ or, b. $\Pr[\operatorname{Dec}_{sk}(\operatorname{Enc}_{pk}(m))=m] = 1 - \operatorname{negl}(k)\;$ or, c. does it depen...
In a mental poker game I am designing as an learning exercise, (One used in example is a 3 card flash with no desk cards) suppose I have a set of cards and other person also has a set of cards. each card is mapped to a prime order (EC)DH group element. We both know other persons cards raised to some power. That is if m...
According to this paper, there is a Baby-Step Giant-Step attack for RSA encryption. Consider the following Baby Step, Giant Step attack on RSA, with public modulus $n$. Eve knows a plaintext $m$ and $a$ ciphertext $c$. She chooses $N^2 ≥ n$ and makes two lists: The first list is $c^j$ (mod n) for 0 ≤ j < N. The second ...
We can define deterministic and probabilistic encryption; Deterministic $c = E(k,m)$, and Examples are textbook RSA, block ciphers in ECB mode. Deterministic encryption fails to achieve CPA security. Deterministic encryption is insecure and we don't want to use/advise to use ( there are bad exceptions for this like S...
I am trying to compare the CPU cycle required for two encryption algorithms. One algorithm is AES and lets the other algorithm is B(code name). I implemented algorithm B and having fewer and simpler operations than AES and expected to take much less time/CPU cycles per encryption than AES I am using an Intel i3, 10 gen...
I have a paper on post quantum cryptography about Key-establishment Algorithms, that I wish to submit it to the National Institute of Standards and Technology (NIST) I found on their website that the last deadline was on November 30, 2017. Is there any new Deadline?
I am trying to use NIST Statistical Test When I have 1 line number which is includes 7467 character,(all of the are either 1 or 0) the test is working I am following these steps: ./assess 7467, then press 0 and write my file name, then press 1, then press 0 to continue, then for how many bit streams, I am pressing "1" ...
I am looking at at the $1–2 \space \text{oblivious transfer}$ that is described here: https://en.wikipedia.org/wiki/Oblivious_transfer#:~:text=In%20cryptography%2C%20an%20oblivious%20transfer,Rabin. I want to show that a malicious sender (Alice) can attack this protocol if it can deviate from it, namely, send a wrong R...
Hello everyone and happy new year in advance. I'm doing a work about the analysis of the AES algorithm, and I have some doubts about this. First, I need to do the mathematical analysis of the algorithm: Determine the computational complexity, worst-case, average-case and best-case As AES performs n numbers of rounds (1...
I am reading the bitcoin white paper, and I came across the concept of timestamp servers in it. Unfortunately the description of the usage of a timestamp server leaves me with more questions. And unfortunately googling has not helped much. The paper has this: The solution we propose begins with a timestamp server. A t...
In this document, it shows the EM will have one zero octet padding prefixed. +----------+---------+-------+ DB = | lHash | PS | M | +----------+---------+-------+ | +----------+ V |...
Let's say there are 2 ciphers, $enc$ and $dec$, where: $enc$ will encrypt the data, and $dec$ will decrypt it. Both $enc$ and $dec$ must be an AES cipher. $enc$ and $dec$ will use the same key $k$ and same nonce $n$. The mode of $enc$ should not be equal to mode of $dec$. They should not be AEAD ciphers (eg. their mod...
I am a freshman who want to research elliptic curve cryptography. There are a few questions I have: Firstly, I am not sure about how I should narrow down the topic. Where should I focus on? Can I examine a specific application of elliptic curve cryptography? Or should I basically compare Elliptic Curve Cryptography and...
I overheard in a lecture on cryptographic obfuscation that the learnable functions are obfuscable. But to me this seems so counter-intuitive. Let's take a linear function (as an example of learnable function), then say I am given any obfuscated version of the function, I can always find the original function by queryin...
For educational purposes, I'm trying to build a cascading encryption implementation with AES, Twofish, Blowfish, Salsa20, and ChaCha20. First of all, please don't judge my paranoia or choices, this is just for learning. I don't remember exactly where, but I think that A(B(C(plaintext))), where A, B, and C are ciphers, ...
This is from Joan Daemen's Doctoral thesis Per page 64 (or PDF page 79) 4.7.1 Our approach Our goal is the design of simple and portable unkeyed and keyed cryptographic hash functions that are hermetic.The basic principle of our approach is derived from the compression function of an early version of MD4. The operati...
It is mentionned here that this message–signature tuple {PIDi, mi, Ti, σi} has this size: 40 + 20 × 3 + 8 = 104 bytes. Can someone explain to me how this was calculated?
For a cryptographic primitive, we usually see the security level measured in bits, where n-bit security means that the attacker would have to perform $2^n$ operations to break it. For key-derivation functions, we often see functions that deliberately use large amounts of computation or memory in order to make them comp...
I don't know where to ask this question, I hope I am in the right place to ask about this. So, what exactly is the fundamental difference between image and text encryption techniques? link 1 link 2 link 3 I mean there are a lot of researchers (for example on the above links) that said AES, DES, RSA, etc. are not suitab...
Since Blowfish is old, well-audited, and has no published attacks, why are we using AES instead? I know that Bruce Schneier said that Blowfish is insecure and told people to transition to Twofish, but why? AES has many vulnerabilities, such as padding oracle attacks and power-consumption analysis, but Blowfish doesn't ...
Let's consider $5$ types of vulnerabilities in one round of encryption in 128-bit cipher. We got 00 at the beginning of the block (the first two bits are two zeros). We got 00 in the middle of the block. We got 00 at the end of the block. We got 00 randomly put in the block (it depends on the key). We got 00 shifted i...
Let $(P,V)$ be an efficient zero-knowledge interactive proof for some language $A \in NP$ that is $(T,\epsilon)-\text{sound}$ and $(T,\epsilon)-\text{ZK}$. I want to show that for every language $L$ that is reducible to $A$ there is also such an efficient zero-knowledge interactive proof $(P_2, V_2)$ which is also $(T,...
I found note about XSL-RR-RR on wikipedia: https://en.wikipedia.org/wiki/Permuted_congruential_generator But I don't understand what this means: count = (int)(x >> 122) low64 = rotr64((uint64_t)(x ^ (x >> 64)), count) high64 = rotr((uint64_t)(x >> 64), low64 & 63) return (uint128_t)high64 << 64 | low64 What is differ...
Is it possible to create a hash function that generates a correlated to SHA-256 when given the same input? In other words, given a fixed input X: SHA-256(X)=A SHA-256'(X)=B where he outputs A and B are similar, or correlated. I was thinking about remodeling a few parts of the SHA-256 function without changing the unde...
May it be possible that the trusted third party knows the parties' private keys in an “ideal model” of a Secure multiparty computation protocol? I wonder if it may be possible that a trusted third party knows the private keys (e.g. the encryption's private key or the digital signature's private key) in an "ideal model"...
So a protocol uses two random primes $P$ and $Q$ with the equivalent bit length of around 2048 bits, multiplies to form $N$. The encryption function in detail is: $m^e \bmod\ N$ $(\text{512-bit-random-key})^{65537}\bmod\ \text{4096-bit-modulus}$ Now there are a few attacks that can be performed if the message length is...
I realize that I need a study pathway for post-quantum cryptography. I started to study post-quantum crypto by reading NIST PQC 3rd-round submissions of the lattice-based schemes (let's start with the most popular ones). I understood Kyber and Saber so that I could implement them. However, I want to understand the desi...
Assume that there is a protocol $(A,B)$ such that receives no input and satisfies: $A$ - outputs two random bits $x_0, x_1 \in \{0,1\}$ $B$ - outputs a random bit $b \in \{0,1\}$ and also outputs $x_b$ Saying that $(A,B)$ is secure means that $A$ doesn't learn what is $b$, and $B$ doesn't learn what is $x_{\lnot b}$ No...
In DP-SGD proposed by M Abadi in 2016, noise is applied to the gradient, so every round of training needs to be applied. My questions are: Can I choose to apply noise that meets the DP requirements to the final model after the model training is completed? Will the total amount of noises applied by this operation be les...
First of all, I'm relatively new to encryption so please bear with me. I'm looking for a way to encrypt large amounts of data only on my device, no need to transfer my encrypted files/data (10-20GB or less), I don't really care about speed as long as the encryption is really strong. I have tried encryption with AES-GCM...
In RSA and other crypto based on prime factors. If I would know the sum of $p+q$, would it reveal any more information than just knowing $p\cdot q$? Edit: I do not know either $p$ or $q$. The question relates to the fact that if I know the sum and the multiplication, can I find the factors $p$ and $q$ faster compared t...
Is it generally considered desirable - or not? - to use an algorithm which encrypts a single byte into a byte array of length around 5 or 10? Greater length allows me to add additional layers of obfuscation, but I don't know whether this is considered the sign of a naive amateur (which I am).
I'd like to resuse the mnemonic I have from bip39 for crypto in other domains such as ssh and tls, etc. Are there standard tools (ie, openssl) to deterministically generate rsa key/pairs given a seed value? I know technically it is possible using PBKDF2 to create a PRNG etc, but I'm definitely not looking to roll my ...
I know this question might sound strange, but is it theoretically possible to create an unbreakable cipher if we don't consider bruteforce? Some of us believe that it is possible to create ciphers and hash algorithms that are unbreakable (like when people said that we'd never run into an MD5 collision in the lifetime o...
Let $E:\{0,1\}^n \times \{0,1\}^n \to \{0,1\}^n$ be a good PRP and consider blockcipher $\widetilde{E}$ defined as follows $$\widetilde{E}(K,X) = \begin{cases}K & \text{if } X=K \\ E(K,K ) & \text{if } X = E^{-1}(K,K)\\ E(K,X) & \text{otherwise}\end{cases}$$ Black used this to show that Matyas-Meyer-Oseas construction ...
I am currently trying to harden communication over a limited physical communication channel on an embedded system. The Scenario I think the system is rather typical for small embedded applications: The embedded systems involved are small microcontrollers without any OS, which can be assumed to be in a secure physical ...
How to determine the inverse multiplicative matrix of the following two irreducible polynomials GF(2^8) x^8 + x^5 + x^3 + x^2 + 1 and x^8 + x^5 + x^4 + x^3 + x^2 + x +1
And why do we have to use big numbers for RSA? Is it because of some RSA restrictions like p=q=3 mod 4?
I'm a programmer, i.e. agnostic to the mathemathics behind most of cryptographic scheme, but I'm trying to remediate. I'm writing this premise for any possible error or imprecision that I probably put in this question. However, I'm studying Elliptic Curve and I got to Elliptic Curves over Finite fields topic. For what ...
I'm trying to set up an ECDSA with Elliptic Curves over $\operatorname{GF}(2^m)$ with an example of toy with the following values: Using the Weierstrass equation on binary finite fields. $$E: y^2 + x*y - [x^3 + a x^2 + b]$$ Let $E$ be defined over the field $\operatorname{GF}(2^7)$ ($m = 7$) with the equation $$E: y^2...
Why following constraints on $||z||$ are required $||z||<=B, B<q$
I dont understand the use of the info parameter, what does "to fold in identity information" mean? What is the security benefit? All the algorithms also take an info parameter that can be used to influence the generation of keys (e.g., to fold in identity information) [...] https://www.ietf.org/archive/id/draft-irtf-...
Assume that there is a protocol $(A,B)$ such that receives no input and satisfies: $A$ - outputs two random bits $x_0, x_1 \in \{0,1\}$ $B$ - outputs a random bit $b \in \{0,1\}$ and also outputs $x_b$ $A$ is supposed to learn what is $b$, and $B$ isn't supposed to learn what is $x_{\lnot b}$ I want to formally define ...
As is known to all, the following picture depicts a sigma protocol, and to eliminate the interactivity, Prover can generate c by hashing (t, y) using Fiat Shamir transform. My question is: 1). Can c be obtained as hash(0x1234, 0x4321) by the Prover, (where 0x1234, 0x4321 are public parameters at setup)? 2). If above a...
In typical proof of work, there is a one-way hash-function that takes binary inputs and generates an output $h(x,y)$ where $x,y\in\{0,1\}^M$ are binary inputs, so that finding $x$ for a certain $y$ such that $h(x,y)=0$ becomes a complex problem. Is it possible to design $h(x,y)$, such that it is insensitive to parts of...
I heard that Xchacha20 works like a block cipher so that even if it wants to encrypt one byte, it will do the work of at least one block. So technically it works similar to a block cipher in counter mode. I want to find out the size of this block, which represents the minimum work that Xchacha20 can do. How to find ou...
I've come across this paper in which the authors mentioned that they don't use a revocation certification list (CRL) since it gives rise to significant costs due to storage and inefficient communication. But then in section 4-F (VEHICLE REVOCATION PHASE), they used a temporary list containing the pseudonyms of revoked ...
I've recently stumbled upon an interesting Quanta Magazine article. It states that indistinguishability obfuscation (iO) 's theoretical feasibility has been proven, referencing a relatively recent paper by Jain, Lin, and Sahai. However, the Wikipedia article for iO states that the work presented in this article relies ...
I found this term in Scrypt's paper. I have several questions about its meaning, ranging from how to parse it, to theoretical bounds: Q1: How to parse it? Is it read (sequential memory)-hard? Or sequential (memory-hard)? Q2: What does it mean? Does it mean that as space is linearly reduced, then penalty is that is ...
I'm trying to understand the nature of true randomness. I'm building an RNG using a radioactive source. Basically, I'm measuring the time between consecutive decays which in theory should be unpredictable. The distribution of these time measurements shows a Gaussian-like distribution as I predicted. Now my understandin...
The Scrypt paper here defines memory-hard and sequential memory hard functions as follows: Definition 1. A memory-hard algorithm on a Random Access Machine is an algorithm which uses $S(n)$ space and $T(n)$ operations, where $S(n) \in \Omega (T(n)^{1-\epsilon})$ Definition 2. A sequential memory-hard function is a f...
If you have a message M and you want the sender (alice) to be anonymous to everyone but the recipient (bob), is it ok to do? crypto_box_seal(crypto_sign(M, alice), bob) (Alice signs message, then box seals to bob.) This answer suggests crypto_box_seal then crypto_sign, am wondering if the opposite ordering is ok. Than...
In all modern ciphers, even if one bit of input changes, then half of the output will change because of diffusion. Considering this, how exactly will knowing standard salutations, etc. ("Hello Alice" or other known parts of the message) be used to launch an attack. You don't know the whole PlainText but only part of th...
I have a few questions about how to use zk-snark. Since the basic logic of using zk-snark is: using a circuit to represent a problem, generate an R1CS from the circuit, transform R1CS to QAP and then we can run zk-snark For the first part, is there any specific definition or feature for the problem, and could all pro...
I am looking into various one way functions and I stumbled upon a Rabin function, which is squaring modulo an RSA modulus $N=pq$, where $p,q$ are prime: $R_N(x) = x^2 \mod N$. Would it lose the one-way property if $N$ is prime and not a product of two primes? UPD: Also, is Rabin function still one-way if factorization ...
I had asked an unanswered question earlier and now, I think I have an answer (sort of), not really but I think I know where to look for it. We assign each type of card combination a score such that a winning card combination always has a higher score and a tie always have equal score.The two players then play Yao's mil...
This is not a question about whether I should encrypt or sign first, as I've read here. Rather, it's about whether I should sign, then encrypt, then sign again. Because as far as I know, there is no way of knowing a sender identity before decrypting. And if a malicious party were to encrypt some virus, only after decry...
In "Finding Hash Collisions with Quantum Computers by Using Differential Trails with Smaller Probability than Birthday Bound" the authors Akinori Hosoyamada and Yu Sasaki state that it may be possible to perform collision attacks with of a lower order than $O(2^{n/3})$ using BHT [1]. Bernstein remarked for BHT that it ...
I’m looking for the existence (or the proof of non-existance) of a method to prove (with arbitrary certainty) that a particular output is the result of a particular algorithm applied on a particular input. $$ f(x) = y $$ How can I prove the above equation holds by knowing all of its constituents but without actually ap...
Can someone please explain to me what are the steps used to get this result (0.9154n+0.8876) from this equation $$(2n+2){T}_{ecc}^{sm}+(2n){T}_{h}+(2n+2){T}_{ecc}^{pa}+(2n){T}_{ecc}^{sm-s} \approx 0.9154n + 0.8876?$$ where ${T}_{ecc}^{sm}$ =0.442, ${T}_{h}$= 0.0001, ${T}_{ecc}^{pa}$= 0.0018, and ${T}_{ecc}^{sm-s}$= ...
I'm reading this article, but I could'nt figure out Definition 1 (Access Structure) on page 3, section 3.1. It says: Let $\{P_1, P_2,...,P_n\}$ be a set of parties. A collection $\mathbb{A} \subseteq 2^{\{P_1, P_2,...,P_n\}}$ is monotone if $\forall B,C:$ if $B \in \mathbb{A}$ and $B \subseteq C$ then $C \in \mathbb{A...
Let us assume the SubBytes operation changed to just shift right operation. for example - f(00011101) = 10001110 How we perform a Known/ Chosen Plaintext Attack and find the key? How much time does it take to find it?
Scenario: Alice and Bob send each other encrypted AES (128) messages. In order to change key, Alice has a public RSA key (2049 bits). Bob has Alice's public key. Bob picks a random AES key, encrypts it, and sends it to Alice. Alice decrypts the RSA encryption, if the result is bigger than 2^128, Alice assumes an error ...
Lets say p = str and h = SHA512(p) i send the h which is the SHA512 of p to a friend using via email my friend in order to be sure that I'm the right person ask me to prove that I know the p. How can I can prove that I know p without disclosing it ?? As I have read so far its possible via zero-knowledge proof. Any pse...
BitTorrent uses SHA1 for its hashes, but SHA1 is unsafe and people can tamper the preimage and still obtain the same hash, right? So imagine I want to be very sure the file I'm sharing on BitTorrent will be correctly downloaded by who is downloading it. Does it work to include 2 files, being: The file I'm actually sha...
Quantum key distribution using BB84 protocol. The Secure key rate $R$, is given by $$ \quad R=1 - 2h(e_b) \tag{1}\label{q1}$$ where $e_b$ is the quantum bit error rate (QBER), $h(x)$ is the Shannon entropy and is $h(x)=-x \log_{2}(x)-(1-x)\log_{2}(1-x)$. How do we calculate the threshold for BB84 using equation $\eqr...
In ECC we have: if we know $G$ and $P=kG$, it is very difficult to find $k$. I wonder whether or not in NTRUEncrypt: if we know $h$ and $P=rh$, it is difficult to find $r$?
I need help for my bachelor thesis. I have a general question regarding hybrid encryption in different ransomware. The hybrid encryption often uses symmetric and asymmetric encryption techniques. During an infection the symmetric key will be generated on the system. This symmetric key will be encrypted with the public ...
I wonder if it's possible to have a peer-to-peer group chat protocol, where anybody is free to join the chat and broadcast with a chosen username to all others who have joined it, but with a strong anonymization property. The property desired is that it is impossible, or at least difficult, for a man-in-the-middle to ...
I was reading an article titled "A Novel Method for Polar Form of Any Degree of Multivariate Polynomials with Applications in IoT" (doi:10.3390/s19040903) I read the following statement: "Identification schemes are the most important elements for many area, such as devices connected to the Internet" I do not fully un...
Even after reading their paper I am still not able to understand why the scheme is secure and what an adversary should do to break it. This question might look stupid to most of you but I don't have mathematics background to delve this deep into cryptography.
Consider the following variants of the CSIDH squaring problem. P1. Given $sE, E$ where $s$ is a random ideal class and $E$ is a random curve (reachable from initial $E_0$), find $s^2E$ P2. Given $sE_0$ where $s$ is a random ideal class and $E_0:y^2=x^3+x$ is a fixed initial curve, find $s^2E_0$. Of course, there's also...
I was told that for both cases the PRF is strong/secure, but I cant find a proper way to define this. Personally i think only (b) is secure because $x$ is not as strong as $O^n$ for $Fs$. But if that was true, what would be the ppt algorithm which could break it? Is it related to the fact that $F(x)$ is not pseudorand...
Is there a proof by now that Paillier is secure against chosen-ciphertext attack? The original Paillier paper mentions that it is not.
I've got an RSA encryption I need to crack, but to do it I need to find the p and q values of an N I am given - it's quite large, around 308 symbols. I know that N is the product of primes p & q, but I don't know what kind of searching algorithm I'd implement to find the exact p & q that fit |p-q|<10000. Since it needs...
Regarding SubtleCrypto and curves P-256, P-384 and P-521. Can I mix two different curves for key derivation? For example performing key derivation between P-256 and P-521. EDIT: Can I mix two different curves to derive data? (So not to derive keys, it is not what I meant)
I'm looking for a very fast function $f(m, k) $ that takes a 64-bit integer $m$ and a fixed secret key $k$ of virtually any size (generated by a CSPRNG) and turns them into a 64- or 32-bit integer $ r $, with a few additional requirements: $ r $ must depend on both $m$ and $ k $ and be reasonably well-distributed if a...
I have a PGP Private Key from Bob. > -----BEGIN PGP PRIVATE KEY BLOCK----- > > lQG7BFh+OvsRBAC4BTddbmKShCdUg+/2GjnpE0c3oH/SaFv1Fm3jZj8M8/U76GAu > 51t9o9mJn6HKe5QHN5e8TknaeYDQ36eOPgnLldikW2uQTsxY3pqMuULsHUUJynhj > jiYNUUdHGMadDf5mB9aTzfmvNPuPj5iF+W9ik1qcDzl6mcOdDfEuEw3OpwCgq8C1 > oe90IcoHcdG9hLGRrZcH/f8EAKf3YjLQeFhUvAF...
How do I decode some text that has been encoded like this: affine(vigenere(text, vigenere_key), *affine_key)? I don't know keys to either of them. At first I thought I could just bruteforce it by trying out all possible combinations, but then I realised that cracking Vigenere is based on finding keyword which can be li...
I investigated the IPsec Protocol. I am wondering if I can remove/reduce any field to save space, is there a way to save overhead in ESP packages?
So I was just curious. I really look up to Blockchain technology and I have read that Bitcoin uses double SHA-256 for hashing. ( from what I understood, double sha256 is essentially $\operatorname{SHA-256}(\operatorname{SHA256}(value))$ ). Is double SHA-256 better than SHA-512 or any other hashing algorithm that bitcoi...
To be clear I'm well aware that ChaCha doesn't need to be "improved". Also, I have no intentions or misguided ideas about trying to "improve" it. My question is hypothetical, and is inspired by the comments on this answer I am also aware that ChaCha does not require any padding scheme, and that any positives from the...