instruction
stringlengths
32
27.2k
I am trying to understand the analysis of the complexity of Differential Cryptanalysis versus the complexity of linear cryptanalysis. In differential cryptanalysis the number of required texts is $\mathcal{O} {\left( \frac{1}{p} \right)}$ where $p := Pr(\alpha \to \beta)$ for some differences $\alpha$ and $\beta$ In ...
I have read the proof of AES's resistance against differential cryptanalysis. In the proof the authors show that there is no single differential trail with prop ratio higher than $2^{-300}$ over 8 rounds. I understand that part but it does not prove that there is no differential with prop ratio higher than $2^{1-n} = 2...
This question is in reference to this tweet. It seems people are using the url of third party websites to record the reference to the content for NFTs. Why can't people just hash the jpg files for their artwork and store it in the smart contract? If someone else tries to duplicate it and create another smart contract w...
For this question I'm referring to the ed25519 algorithm In blockchain one project (Monero) shot itself in the foot a while back by having senders derive public keys from an ed25519 pair, by performing scalar multiplication of the random value against the '8' co-factor subgroup. The issue here was that they were usin...
Let $\mathbb{G}$ be a cyclic group of order $p$ with generator $g$, and let $m\in\mathbb{G}$. Problem: Given $c=m.g^{k.a}$ and $v=g^a$, where $k,a \in \mathbb{Z}^*_p$, output $k$. Is this an instance of a Diffie-Hellman problem? Because the only way I see to solve this is to try $v^i, i\in \mathbb{Z}^*_p$ until we stum...
Im trying to understand the proof in "The Discrete Logarithm Modulo a Composite Hides O(n) Bits" by Håstad et al, where he shows that the order of a random element in RSA group is big. I got the most part but there is one transition that I just cannot see (in Proof of Lemma 1.2): Any suggestions on how I could approac...
Intro I am somewhat new to cryptography. Repeating the basics of RSA from How are the primes used to generate RSA keys?: Textbooks say the one-way function is merely two primes (with some critical constraints) ... may be a good base of this question, as well as What prime lengths are used for RSA?. Also, Big data and...
Although this question has been answered in this link (After How Much Data Encryption (AES-256) we should change key?), I am not satisfied with the answers because the Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM)and GMAC has a different view on this. It says Now 2^32 block ciphers, mea...
Imagine we implement RSA padding such that a number of byte zeros are appended to the message until its length is equal to 100 (i.e. 800 bits). Also, let's assume that the public exponent $e$ is equal to $3$. How can we break this encryption and find the flag with an approximate size of 150 bits? Python code for encryp...
This is a spin-off from Can Big Data attack RSA by just calculating many prime multiplications in advance? [duplicate]. Intro I am somewhat new to cryptography. Repeating the basics of RSA from How are the primes used to generate RSA keys?: Textbooks say the one-way function is merely two primes (with some critical co...
I have read that in general stream ciphers do not provide data integrity. Can ChaCha20 be implemented in such a way (perhaps like counter mode with message authentication in AES) to provide this?
I am currently in the process of researching different forms of elliptic curves defined over prime fields. In many curve standards, such as NIST, Brainpool, etc, there exist a list of curve equations for Weierstrass, Montgomery, and (twisted) Edwards curves. However, I wish to also investigate various other curve forms...
I have a requirement to read-encypt-save plus its reverse i.e. read-decypt-save files through chunk/block mechanism (single operation not feasible because of huge(GBs) file sizes). So essentially the two functionalities should work as below : loop (read-plain-text-block-from-external-source -> encrypt -> save-encrypte...
I'll keep this brief. I'm a maths teacher in the UK looking at a career change into cryptography, especially the mathematical side of it - I've studied analytic number theory recently and really enjoyed it. Unfortunately I have essentially 0 coding experience, so what would be a good place to start if I'd like to start...
There are situations where a single connection (or file) may require additional throughput available. While network bandwidth and CPU cores are available, they cannot be utilised. (Aside from means that are external to the algorithm as is) Some examples: VPN - when encryption is done only on the tunnel connection that...
Given is Generator $g = 5$, Multiplicative group $F_{10007}^*$, Private key = 7347. Then public key is $5^{7347} \bmod 10007$ right? On a calculator this gives an overflow error, how am I supposed to calculate the public key when a private key is a large number?
Let's say $N \subseteq [n]$ is not empty. Is there a type of hash family $H = \{h : [n] \rightarrow \{0 , 1\}^k\}$, where $k = \theta(\log(n))$, to ensure that the following holds when $|N| > 1$? $$\underset{h \in H}{\Pr}(h (\underset{t \in N}{\oplus}t) = \underset{t \in N}{\oplus}h(t)) \leq \frac{1}{2^k}$$
I have a very simple question. Since XChaCha20 nonces are 192-bit, there's technically no limitation to the max number of message encrypted, since the chances of two random nonces being the same are very very tiny. Is it okay to use the same key, but difference nonces to encrypt large files in chunks? Basically, I read...
Prove or refute: Every encryption scheme for which the size of the keyspace equals the size of the message space, and for which the key is chosen uniformly from the keyspace, is perfectly secret. My attempt: I think the statement is false because I made a counterexample: $M = \{a, b\}, K = \{k_1, k_2\}, C = \{0, 1\}$. ...
I have a vague memory of watching a video of a guy "unraveling the secret story / lore" from the game Doki Doki Literature Club. And I remember that he took a file, converted it to .txt and had certain information, converted the same file to .jpg and had other totally different information. Information that can only be...
Consider the primitive polynomial P(x) = x^4 + x^3 + 1, initialized with the bit string (shifting occurs from left to right, were the right-most bit represents the LFSR output): 1101. List the first 8-bits generated by the LFSR, starting with the bit 1 that is the right-most bit of the initialization sequence above. Th...
I have been doing a study about the enigma machine for the past weeks. I managed to get ahold of the formulae used in "Cryptography, Information theory and error-correction" book for the enigma machine coding calculations. I am aware that when the electrical signal travels towards the reflector the susbtitutions of the...
In the LRW mode discussion on page 34/161 of the LibTomCrypt manual, available here for example https://opensource.apple.com/source/CommonCrypto/CommonCrypto-55010/Source/libtomcrypt/doc/libTomCryptDoc.pdf there is the following comment: "The tweak value is NOT a nonce or IV value it must be random and secret" Nonethel...
I suppose this question addresses surjectivity and injectivity. We talk about collisions but did we prove yet rigidly that this function is not reversible? EDIT: Accepting the answer based on Dirichlet Box Principle (if domain is bigger than codomain innevitably there will be collisions). I agree that for mappings $h:\...
I have a research paper on data security using proxy re-encryption, and I need to provide an answer to a reviewer's comment. However, I have no idea on what to do or how to answer it. The security analysis of the proposed method is based on indistinguishability against chosen plaintext attack. This is the comment: The...
If I know $n,e,c$ can I find $d$ in RSA? ($n = 3174654383$ and $e = 65537$ $c=2487688703$) I saw this $d=(1/e)\bmod\varphi$ but if the numbers are getting bigger it can be hard to get $d$ in that way and now I'm calculating it but still cant find yet. And I saw another RSA challenge where I need to find $p$ $q$ used fo...
For transmitting a ciphertext (or any other binary data) over means which only support 5bit ASCII/Baudot characters (for example morse code or RTTY) I am looking for a way to armor my data and have it output in capital letters and numbers only, making sure that a certain amount of characters can be sent or received wr...
I want to prove the security of a Tweakable Block Cipher in CBC Mode How does one prove the security of a Tweakable block cipher (ie Threefish) in CBC mode with a random IV and a constant (public) tweak? In the case of Threefish, does the tweak need to take any prescribed form?
I'm new to cryptography and I try to understand more how the stream encryption works. When it comes to stream encryption I understand that the paradigm is to perform 1-to-1 bit encryption; the input message is XOR'ed with the key. What happens when the key length is less than the size of the message? Does all algorith...
Is it possible to derive the key, for a playfair cipher, if both the message and cipher text are known?
For a personal project I'm currently tinkering on, I'm looking for a function which has the following properties: For any number X in the range 0..MAX, there is a 1:1 random mapping with another number Y in that range. As long as the key/algorithm remains the same, that mapping should not change. For every X, there is...
When writing for both technical and non-technical readers I find my self naturally wanting to write things such as : "..therefore it would be impossible to decrypt the data." When trying to convey the real world difficulty in breaking AES for example. My question is, what is the most succinct yet correct term for exp...
I have been writing my own implementation of the Advanced Encryption Standard with cipher block chaining in python3 for the last several months, mimicking the OpenSSL command line interface. I can successfully encrypt a message or binary with the OpenSSL implementation of AES and then decrypt it with my python3 program...
There seems to be a quantity, often denoted $\gamma$, such that the $l_2$ norm of a product of two polynomials can be written as the product of the norms, up to multiplication by $\gamma$. For instance if $f$ and $g$ are two polynomials, we have $\|fg\|\leq\gamma\cdot\|f\|\|g\|$. For example, see Section 2 of this pape...
What is blinding with a SHA256() or similar cryptographic hash function? What applications does it have? An answer to a recent question briefly mentioned "Consider blinding before calling an external function [such as] SHA256()". ( https://security.stackexchange.com/questions/246209/is-it-safe-to-publish-the-password-h...
I'm trying to understand the known plaintext attack that is briefly explained in the paper Linear Cryptanalysis Method for DES Cipher by Mitsuru Matsui. I've almost understood it (since I'm programming it and it's yielding good partial results) but there are some things I'm not understanding completely. If I'm not mist...
I am encrypting a message using an hybrid cryptosystem: I encrypt my message using AES-256 and I encrypt the symmetric cipher key using RSA. The following questions come to my mind: I want to know if it safe to send the encrypted message with the encrypted key together ? What does it imply for an attacker to get the R...
Why does homomorphic evaluation of the decryption circuit produce a ciphertext with "fresh" or small noise? Rough description of bootstrapping homomorphic encryption: Suppose we have a somewhat homomorphic encryption scheme that can only evaluate circuits of small depths including its own decryption circuit. In (R)LWE ...
Let $H:\{0,1\}^*\rightarrow \{0,1\}^\ell$ be a collision resistant hash function (CRH), and let $\Pi = (\mathsf{enc,dec})$ be an encryption scheme with the following properties: $\Pi.\mathsf{enc}: \mathcal{K} \times \{0,1\}^\lambda \rightarrow \{0,1\}^\ell, \lambda\leq \ell,$ define as follows: $\Pi.\mathsf{enc}(k,m) ...
As a layperson, I'm curious if a cryptocurrency could fork to a quantum-resistant algorithm without people losing access to their wallets. Is it possible to generate a quantum-resistant public key from the wallet's private key (that was used before the fork)?
Say that X is a (k; n)-source if $X\in\{0,1\}^2$, and the min-entropy of X is at least k. Answer the following questions: (i) Suppose that $l=128$; what is the minimal amount of min-entropy needed in order to obtain statistical error $\epsilon=2^{-80}$ when applying the leftover hash lemma? What is the entropy loss? (i...
I see that a lot of multiparty computation and garbling protocols are implemented for circuits like AES or SHA256. For my project, I would like to garble a circuit that performs some group operations on elliptic curves and RSA groups. Are there any circuit compiler libraries or garbling libraries that support this? Are...
If two devices do not trust each other yet, you can't simply send the correct fingerprint across: you have to manually verify it. I am looking into the security of comparing only random parts of a fingerprint (e.g. pgp / ssh / certificate / e2ee-chat fingerprints). Because a human looks at it, the attacker basically ge...
Is there an efficient algorithm which can be used to determine the branch number of any given linear mapping?
I can't find relevant literature discussing three attack models of the ECC-ElGamal algorithm (CPA, CCA1, CCA2) ECC-ElGamal algorithm: ElGamal with elliptic curves I only know that ElGamal belongs to CPA, but I can't determine which one (CPA, CCA1 or CCA2) belongs to in the case of ElGamal on ECC. It would be better if ...
Cryptomania is usually presented as the Impagliazzo's world, which gives us public-key cryptography under the assumption that trapdoor OWFs exist. For purposes of constructing public-key cryptography we also want the underlying problem to be in $NP \cap coNP$ as described in here. Are there any papers, which explore th...
I just started work on lattice-based cryptography and I could not understand the concept of worst-case to average-case reduction. We generally say, Average Case Hardness: Random instance of a problem is hard to solve. Worst-Case Hardness: Hard to solve every instance of the problem (even if most instances are easy) So ...
Given that I have a 3MByte block of data, a random key and need to use XXTea, is there any advantage in splitting the block of data into smaller blocks and encoding / decoding each separately? Is there a sensible upper limit to the size of block as far as encryption / decryption is concerned?
Note: this is my first question on stack exchange, let me know if you miss some details to answer and I will edit the question accordingly Context I'm willing to create a git encryption tool (marauder) that will encrypt files that are marked in .gitattributes. .gitattributes my-project.password filter="marauder" diff=...
I took image from Simons Institute's presentation. Complexity classes of Approximate SVP problem according to approximation factors are given in the table. My question is, What is the meaning of blue arrow -Crypto- in this picture?
Problem A: I receive two hash digests $H(x), H(y)$ and the corresponding preimages $(x, y)$. $H$ is a 128-bit cryptographic hash function: $H: \{0,1\}^{*} \longrightarrow \{0, 1\}^{128}$ I need to find two second preimages $(x', y')$ such that $H(x) = H(x')$ and $H(y) = H(y')$, where $x \neq x'$ and $y \neq y'$. Proble...
I need earlier references (books, articles, etc) on lattice-based cryptography, and any advice will be helpful to me. I am reading Stinson & Paterson's Cryptography: theory and practice. Thanks in advance.
I just started my network security course and came across the below question. Could some one help me here. User A wish to send a 128-bit secret message, S, to user B. As the preliminary step, both A and B agree to use a 128-bit secret key, K, selected uniformly at random. At the time of transmission, A considers two di...
A recent (29 Mar 2021) article "Ring-LWE over two-to-power cyclotomics is not hard" by Hao Chen is available in pre-print here: https://eprint.iacr.org/2021/418 I'm not a cryptographer. Does this article mean that Ring-LWE is unsuitable for post-quantum asymmetric cryptography? Does this means that others algorithms mi...
[Instead of two images I want to consider two paragraphs(text) when combined should give me a secret message] In their algorithm, the image has been split into two component images. Each component image has a pair of pixels for every pixel in the original image. These pixel pairs are shaded black or white according to ...
Following the discussion on bijectivity and given that function inverse is studied on domain/codomain, I would like to ask whether we can find subsets where this function can be bijective. Let's say the subset of all alphanumeric strings of exactly 5 characters. The cardinal of this subset should be Arangements of 62 c...
This question might be uncannily similiar to this one posted over 6 years ago, but the structure is completely different. It's written nearly everywhere that OTPs are incapable of sustaining more than their length of data - but I have yet to find an answer besides "reusing them makes cryptanalysis possible" in several ...
My intuition for the security a symmetric PAKE is supposed to provide comes from the example of a login page. Both the user and the server know the password (assuming unhashed passwords), and the purpose of the protocol is to authenticate both the user and the server to each other using this fact, while simultaneously ...
I'm searching for a simple description that tells me in a schematic way how hmac and cmac is calculated. So far I found the following: cmac = aes_encryption(hash(message), key) hmac = hash(key, message) The difference seems to be that cmacs are using a symmetric encryption additional to the hash-function while hmacs p...
Here scheme $\Pi$ is $\epsilon $ - perfectly secret. Given that encryption scheme $\Pi$ = $(\mathrm{Gen}, \mathrm{Enc}, \mathrm{Dec})$ over $(\mathcal K,\mathcal M,\mathcal C)$ is called $\epsilon $ - perfectly secret if for any distribution over $\mathcal M$, any $m \in M $ and any $ c \in C$, $|Pr[M=m|C=c] - Pr[M=m...
Suppose we have a random number generator badrand() generating 1 with probability $0.9$ and 0 with probability $0.1$. How can we combine $n$ bits from badrand() to get one bit of betterrand()? What will be its probability of giving a 0 or 1? I assume that this is possible since the entropy of the combined output increa...
Let $\omega$ denote the set of non-negative integers. For $n\in\omega\setminus\{0\} $ define the rotation function $$\text{rot}_n:\{0,1\}^n \to \{0,1\}^n$$ by $x \mapsto x'$ where $x'_k = x_{k+1}$ for $k\in\{0,\ldots, n-2\}$, and $x_{n-1} = x_0$. Let $\bar{0}_n \in \{0,1\}^n$ be the constant $0$-sequence of length $n...
Suppose that $p$, $q$, and $r$ are distinct $n$-bit primes, we define $$ \begin{array}{rcl} P & = & p \mathbin\Vert q \\ Q & = & q \mathbin\Vert r \\ R & = & r \mathbin\Vert p \end{array} $$ Where $\mathbin\Vert$ means concatenation of two integers. For example $$1165993 \mathbin\Vert 1420831 = 11659931420831$$ We are ...
Taking the simple case of Bitcoin here: If all nodes can validate published transactions by checking the signature (created using the private key of the sender) of the transaction against the public key of the sender, why isn't that sufficient to validate a block? I understand that we also solve the puzzle of finding a...
I'm currently working on an implementation of ECDSA Adaptor Signatures, and part of the signature scheme calls for a NIZK proof to verify knowledge of exponent over two public keys that share a private exponent. The signature scheme also requires Positive ECDSA signatures s.t. $|s|$ <= $(q-1)/2$ The two public keys are...
1. Summarize the problem I want to encrypt save game data for 2 players game - you can think of it as classic "Battleship" game: Player A knows his game state, does not know Player B's game state. Player B knows his game state, does not know Player A's game state. To create a save game, both states are combined to en...
I vaguely recall reading about a scheme that accomplished this but am not able to figure out which one it was. For the sake of brevity I'm gonna omit any nonces. Let's say we have an asymmetric keypair: (Kpub, Kpriv) An observer is provided: C1 = E(Kpub, P1) P1 is known. It can verified that by performing E(Kpub, P1) t...
What is the maximum bias recommended by NIST for random number generators? This answer says that it is $2^{-64}$. Is it same for all applications? Does NIST have a publication with more information? I tried to browse through NIST Recommendation for Random Bit Generator Constructions, but couldn't find it.
I am working on an implementation based on the Disco library, which itself is based on Noise and strobe framework. The goal is to do bilaterally entity-authenticated key agreement with perfect forward secrecy. Disco already implements Noise_NNpsk2 but does not offer Noise_NKpsk2. I at first considered using Noise_NKpsk...
I am new to cryptography and I've got the following question from Understanding Cryptography: Imagine that aliens — rather than abducting earthlings and performing strange experiments on them — drop a computer on planet Earth that is particularly suited for AES key searches. In fact, it is so powerful that we can searc...
I'm a student of Masters in Cyber Security. I have a habit to understand things from their first principles (at the very beginning). Kindly use any simple mathematical example to answer because I have read plenty of technical answers but they aren't clear to me. For example, we use primes because we know factoring them...
I've been searching for a few days in different forums trying to find an example of DES that gives the key/output values for all 16 layers. I found one that gives the encryption which helped me fix that part, but my decryption isn't working correctly. It's easier to debug if I know what I'm aiming for. Is there somepla...
Overview of the problem Before this gets immediately flagged as duplicate, I'm not interested in testing the Fisher-Yates shuffle for randomness, since this can simply be done by testing the underlying RNG. I'm interested in testing the quality of any function that generates random permutations. How can one test the qu...
I used to use openssl aes-256-cbc, but the problem I have with this is when I try to decrypt in a different version of the distro it fails, as if it depends also on some internal key or something, instead of depending solely on the password. So I have to keep a different encrypted file for each version of the distro, w...
It was suggested to provide a new question in the comments in How to combine $n$ 'less random' bits to generate one 'more random' bit?. Why there is no unbiased randomness (seeking theoretical underpinnings)? How can a hash function extract randomness (seeking theoretical underpinnings)? Is there intuition behind le...
I have a question about CRT. Assuming, that we have this system (S): x=a0 mod n0 x=a1 mod n1 with N=n0*n1 and n0,n1 are two distinct prime numbers. Then the complexity in terms of binary operation is O(log(N)^2) in order to find x. My problem is that I study the complexity of Pohlig–Hellman algorithm in term of the nu...
I've been reading many papers on boomerang/rectangle attacks. The general strategy is to find two trails for a small number of rounds and then concatenate them to form a longer distinguisher. Specifically, they decompose the cipher $E$ to $E = E_1 \circ E_m \circ E_0$, and employ some ladder/sbox switch at the connecti...
I'm implementing a token server and considering backing them with ECDSA. The options from the library I'm using expose the NIST curves P-256, P-384, and P-521. The safe curves site does not list P-521, but notes the others as "unsafe" https://safecurves.cr.yp.to/index.html. Would I be unwise to choose an "unsafe" curve...
I have a randomly generated string of about 256 characters long. This string is hashed to for a key and initialization vector for a program running on the .NET framework 4.8. Is this method secure from a professional point of view?
In my opinion, it's not a good idea to use (symmetric/asymmetric) keys as Additional Authentication Data (AAD) in GCM as AAD is only authenticated but not encrypted. The key will be protected from modification but will not be confidential anymore. Is my understanding correct? (But maybe using a public key as AAD would ...
The RFC 8032 describes the point encoding like this : A curve point (x,y), with coordinates in the range 0 <= x,y < p, is coded as follows. First, encode the y-coordinate as a little-endian string of 32 octets. The most significant bit of the final octet is always zero. To form the encoding of the point, copy the l...
So I have a partial input data (string) PART1+UNKNOWN+PART2, length of UNKNOWN is self-describing. I have a bunch of valid hashes (about 8 or so) that are compatible. My question is then: will bruteforce search for full collision given the data at hand be as long?
I have a string that I will encrypt on the server. I then want to send the encrypted string along with a decryption method for it to be decrypted in the browser. I want the decryption to take some time for the end user. Let's say ~10 minutes. Let me be clear: I want the decryption to happen. It must happen on the brow...
I was reading about identity based Identification scheme today. There are lot of articles and research paper on it. There is active research being done in this are of IBI schemes. My question is simple. Are there any real life situation(case scenarios) where Identity based identification scheme can be used as a cryptog...
Can someone tie everything together for me? I'm interested in H.E and I have some background in AES, DES, RSA and the like. While reading around I stumbled on Shai Halevi's course on lattice cryptography as well as Vaikuntanathan's course. Looking around I found Fully Homomorphic Encryption from Ring-LWEand Security fo...
I'm trying out the PYFHEL (PYthon For Homomorphic Encryption Libraries) library, and was wondering if it was possible to concatenate two strings while encrypted and then decrypt the result. This probably better explains what I want to do: string1 = "hi " string2 = "there" *encrypt both strings separately* encrypted_s...
A client wants to train an algorithm. A data provider encrypts its data and sends it to the client. The client operates on it and sends the result back to the data provider for decryption. Once decrypted,the data provider sends it to the client. For this I am working with an asymmetric algorithm, public key, with fully...
I'm 15. I hope you answer my question. I don't have any background on encryption. Thank you for introducing me with books that will take me step by step. I know pythons, not very well, but I know things.
Say for instance we are encrypting over a subgroup of ($Z_{67}^*, \bmod 67$). To perform a round of El Gamal's encryption scheme we should: Choose a subgroup of ($Z_{67}^*, \bmod 67$), of prime order. Choose the parameters of ElGamal's scheme (generator, Bob's secret key, etc.). Choose three random messages, and Ali...
Fix $n\in\mathbb{N}$ with $n > 2$ and consider the following method. Pick relatively prime seeds $x_1, x_2 \in \{0,1\}^n$ (where $x_1, x_2$ are interpreted as binary numbers. Then proceed with the following algorithm (C code is given below): Let r = x1 ^ x2 (bitwise XOR; the "Fibonacci" step). Rotate r to the right by...
Learning about cryptosystems and basic cryptology and I have a sort of vague understanding of key sizes/key space and think I may have done something wrong in my calculations, can someone please explain how to properly calculate key space/length I would greatly appreciate it, thanks! Assume a password consisting of 8 ...
I have seen in many papers and even in communications from NIST that the ongoing standardization is a "procedure" or a "process". They carefully refrain from using the term competition like AES. I was wondering what is the reason for this? Is there any functional difference on how this process is conducted? Thanks in a...
Assuming that I'm using fixed IV's for CBC mode and CTR mode. I know that in CBC, the blocks depend on the previous ones and on CTR they are all independent. Yet with the same key and fixed IV, the system wouldn't be secure in CTR and with fixed IV same plaintext would be converted to same ciphertext which causes anoth...
In my scenario, I need to distinguish if the encrypted message is 0 or not. The message is encrypted by Elgamal encryption but with the message in the exponent. i.e. $(C,R)=(g^my^r,g^r)$ where $y$ is the public key. I wonder if my goal is just to distinguish if the plaintext is 0 or not, and the scheme is implemented i...
I'm trying to understand how Shamir's Secret Sharing algorithm is applied to AES when doing threshold masking. I understand how the secrets are created and the secret is calculated and I'm now trying to figure out how the math operations (that are needed for AES) work when you have the shares. To do that I'm reading ...
If I encrypt a file with a short 4 digit pin is there any way to make it more secure. I've thought about hashing the 4 digit pin and using the result as the encryption key. I think this would work as long as the attacker didn't know that I was using this strategy but if they did they could just try the 10^4 hashing of ...
I'm trying to perform a chosen-ciphertext attack against an RSA oracle. I have $c$ as the ciphertext I want to decrypt, $e$ and $n$. I already know that I could choose a number $r$, compute $r^e \cdot c$, make the oracle decrypt, and return $r\cdot m$. The problem is that this particular oracle checks if $m \bmod mo = ...
I want to know whether the following problem is considered as a hard problem in complexity theory or not? Given $g,g^a,g^b \in G_1$ (for unknown $a,b\in \mathbb{Z}_p^{\ast}$), compute $e(g,g)^{ab^2}\in G_2$. If yes, could you please help me to know the name of this problem in the literature?
I've been reading up on various basic MPC primitives (multiplication, inversion, exponentiation and so on of secrets shared between multiple parties). One of the problems of implementing MPC in real-world is performance. One of the common solution trends is splitting of the protocols into offline (preprocessing) and on...
In Mike Hamburg's Ed448-Goldilocks, a new elliptic curve (eprint 2015, WECCS 2015) it is studied untwisted Edwards curves in the prime field $\mathbb F_p$ $$E_d:\,y^2+x^2\,=\,1+d\,x^2\,y^2$$ with large prime $p\equiv3\pmod 4$ and the Legendre symbol $\displaystyle\left(\frac d p\right)=-1$. The matching "twist" is $$E'...