instruction
stringlengths
32
27.2k
In the Paillier cryptosystem, decryption goes $m\gets\displaystyle\left\lfloor\frac {\left(c^\lambda\bmod N^2\right)-1}N\right\rfloor\mu\bmod N$ with $\mu<N$ being a part of the private key just like $\lambda=\operatorname{lcm}(p-1,q-1)$ for $N=p\,q$. The Chineese Remainder Theorem allows to speed-up this computation k...
Assume an instantiation of AES-CTR like in the following picture: Some details on the input-values for keystream generation: COUNT: a 32-bit value associated with the transmission mode IV#1: a 5-bit value that can be assumed constant for a specified transmission IV#2: a 1-bit value indicating the direction of the tr...
I have some trouble finding valid information about IOTA. Actually I would be nice if there would be a good source. So my question is: Bitcoin uses the SHA-256 twice and some "target bits" for hashing it's blocks. What PoW does IOTA use? Some sort of Hashcash Lite - but how does this work in detail? Is there also a ...
I'm having difficulty on proving the fact that each round of DES algorithm is its own inverse. Can someone put a concise explanation for it please? If a function, say $f$ ,is its own inverse than $f(f(x))= x$ right? I try to prove that, given a round function $Rd$, that: $Rd(Rd(L_1\|R_1))= L_1\|R_1$. Here $L_1$ and $...
The equation below shows the proof of Laplace mechanism for differential privacy. I am not understanding the product operator, is this a common rule? $$ \frac{p_x(z)}{p_y(z)} = \prod_{i=1}^{k}\left(\frac{exp(-\frac{\varepsilon |f(x)_i - z_i|}{\Delta})}{exp(-\frac{\varepsilon |f(y)_i - z_i|}{\Delta})}\right) $$ While $p...
Is it always a win or could PFS algorithms introduce new attack vectors or weaken the level of secrecy vs not being used?
Would the use of Secure Enclaves such as Keystone or Intel SGX obviate the need for cryptography? Rendering cryptography irrelevant in the decades ahead?
Will there be any security concern if there is no mode of operation specified in the ciphersuite name? For instance, there is no mode of operation in TLS_ECDHE_RSA_WITH_AES_256_SHA.
Consider the following keyed function $F$: For security parameter $n,$ the key is an $n\times n$ boolean matrix $A$ and an $n-$bit boolean vector $b$. Define $F_{A,b} : \{0, 1\}^n->\{0, 1\}^n$ by $F_{A,b}(x) = Ax + b$, where all operations are done modulo $2.$ Show that $F$ is not a pseudorandom function. I have though...
In the paper, under section 4.1 Goals and environment of use we read: In applications that demand the most efficient use of space, the block cipher will often only be implemented as encryption-only. I presume this is NOT the same as one-way encryption (perhaps I should say hash?) as used for passwords. So in what cas...
There are many recommended modes of operation for block ciphers as described by NIST here, e.g. for DES and AES. However, I am struggling to find any for lightweight ciphers. I am particularly interested in modes of operation for PRESENT, Clefia and other standardised lightweight ciphers, and why they are suggested.
Using OpenSSL library is there any chance that decrypting AES256-CBC encrypted data with wrong encryption key will succeed without an error? Asking this because I have read somewhere there is 1/256 chance that decrypting broken data won't produce an error
I'm trying to evaluate some changes to an existing codebase and one question that has come up is the block cipher mode. For legacy reasons we've been using AES in CBC mode, however it's unclear why this decision was made. I'd like to propose moving to GCM, but I'm unsure if this will affect decrypting the data we alrea...
Can someone explain me this please I am a bit confused? It's from a texbook I am reading (block cipher companion) it says that: each weak key has $2^{32}$ fixed points $m$ where $\operatorname{DES}_w(m) = m$ ( $w$ is a DES weak key). In other words encrypting a fixed point gives exactly the same point. To see thi...
I'm regularly reading that AES-256 is secure against quantum computers because Grover's algorithm will only halve the key strength (i.e. "only" require $\sqrt{2^l} = 2^{l/2}$ operations instead of the full $2^{l-1}$ operations required to brute force the key). However, would it be possible that classical attacks on sym...
From Lewko, I understand the difference between an adaptive and selective model: Adaptive model: the attacker can adaptively query the challenger for private keys. Selective model: the attacker has to declare the challenge message BEFORE he can see the public parameters setup. Now comes to Rouselakis with static mode...
After following a discussion that Shamir's Secret Sharing scheme cannot be used to share a real number as secret, I came across the paper "Secret Sharing Over Infinite Domains" - B. Chor and E. Kushilevitz The above paper describes a method for sharing a real number as a secret, I quote from Section 4 (note: this pape...
In tweakable block ciphers the tweak acts some ways like part of the key and in other ways, acts like an initialization vector. Should the the tweak remain secret like the key or visible like the an initialization vector. Or perhaps this may differ from one algorithm to another?
I reviewed the paper "Secret sharing homomorphisms: keeping shares of a secret secret" by J.C. Benaloh yesterday and I had some difficulty understanding his version of verifiable secret sharing to address " k-consistency." We say that a set of n shares $s_1$, . . . , $s_n$ is k-consistent if every subset of k of the n...
I'm analysing how different components of AES influence its security. However, I cannot find a good explanation to what happens if the MixColumn step would use the identity matrix. Intuition tells me, that then AES won't be secure, but why?
Is it practical to make a PRNG cryptographically secure if I shuffle the randomly generated numbers (say 256-bit) several times before hashing it, even if a hacker knows when I generate the numbers? Note: They say PRNG is not cryptographically secure because the generation depends on the state of the generator, that it...
I'm trying to understand the difference in output of AES decrypt (GCM mode) using Webcrypto and Cryptodome.Cipher.AES in python. from Cryptodome.Cipher import AES from binascii import hexlify, unhexlify key = 'E52BC6CEDC2E096584B1F57D3AE6A60724C7B301EECB975813819673E6D23126' iv = 'B5DDEDB80480A649D1763BE7' encrypted_da...
Quite strange question, but here goes: I don't quite understand how asymmetric encryption works. Take SSH for an example: The server will always be listening for commands, so anyone who has the public key (easily obtained as I understand (I might be wrong)) can send commands to the server and it would appear as if the ...
I am assuming that 2-key 3DES is equivalent to 2DES. I know the key size is 2x56 = 112 bits. Is this key size the same as the keyspace? e.g. Would the keyspace be 112 bits ($2^{112}$)?
So I have this question. I downloaded a .BMP off google due to .BMPs being not compressed. Just a 1024x768 .BMP image which its size os of 2.25Mb. I put the image in a steganography application.. inserted hidden text within it, encrypted and everything. How come the resulting image (Steganographied Image) is still 2.25...
I wish to encrypt potentially gigabytes of data on my pc, and I wish to be able to decrypt and use those files. However, I am a noob, so bear with me. My idea is to use openSSL to encrypt files with AES-256bit-CTR, since it's fast. I imagine I'd be using a super long password (at least 20 chars), I'd use the same salt ...
Suppose Bob wishes to send an encrypted message $M$ to 4 people $P_1,P_2,P_3,P_4.$ Each one has their own RSA key $(N_1;e_1),(N_2;e_2),(N_3;e_3),(N_4;e_4)$. The encrypted messages are $C_i=M^{e_i}\bmod{N_i}.$ The $e_i$ are pairwise distinct (per comment). How to decipher the original message $M$ ?
Question A Is the BLS signature scheme still secure if an adversary in addition to the public key $ pk = g_2 \, sk \in \mathbb{G}_2 $ also obtains additional information on the private key $ sk $, namely it also knows some value $ v = g_1 \, sk \in \mathbb{G}_1 $? E.g. is the adversary able to forge signatures under $ ...
I just figured out a way to create a RNG that may be almost as good as TRNG (true random number generator) and need some input to confirm/clarify. What if I use the IPv6 address of a visitor as a seed + the time recorded when the visitor executes a particular action at my website to generate the random numbers? IPv6 ha...
I'm implementing crypto in Node, following this article: https://lollyrock.com/articles/nodejs-encryption/ It defines: var crypto = require('crypto'); var algorithm = 'aes-256-ctr'; var password = 'd6F3Efeq'; // AKA passphrase Then, it uses the password/passphrase for encrypt and decrypt the strings. Now, here my ques...
I am trying to construct a simulator and an extractor for a zero knowledge protocol. I just encountered this text that explains the construction of the simulator. Does someone know of a similar text that explains extractor construction in depth? I need to construct the extractor and prove that it extracts with non negl...
When choosing the public key for ElGamal, $\alpha$ must be chosen as a primitive mod p. What if $\alpha$ is not a primitive root ? How will it influence the encryption and decryption ?
These 2 similar questions are from Paar's Understanding Cryptography. I could not see the answer so if someone can help I will appreciate: Question1: We consider known plaintext attacks on block ciphers by means of an exhaustive key search where the key is $k$ bits long.The block length counts $n$ bits with $n>k$ . ...
Suppose I have the witness $x$ and need to prove that I correctly computed $(g^x)^x$ to a verifier. $g$ and $g^x$ are public. The verifier asks me for $(g^x)^x$, but wants proof that I've given them the right answer. Here's my attempt at a solution: Let $X = g^x$ and $X' = (g^x)^x$ Step 1: Prover chooses a random $r$ a...
A cryptosystem can be entirely dependent on its underlying problem or it can have a reduction to other known problems. Solvability can be affordable if there exists a reduction of the base problem to another problem, and the last is feasible. I understand that a cryptosystem is provable secure if it has been well studi...
I have been given a 4x4 matrix and each entry is an 8-bit long byte. I have been given the 4x4 matrix that I need to multiply each column by of the first matrix by. $$\begin{pmatrix}2 & 3 & 1 & 1\\\ 1 & 2 & 3 & 1\\ 1 & 1 & 2 & 3\\ 3 & 1 & 1 & 2\end{pmatrix}$$ The method that I have been told to use seems confusing. I h...
I was looking at tahoe-lafs which accepts a file, encrypts it, does erasure coding on it which generates n shares and then distributes it over the storage servers. The distribution is Share 1 = Server A, Share 2 = Server B and Share 3 = Server C. Now If I want to make sure that the Server B has that data, how do I go...
Does SRAM-PUF require the microcontroller/system to be (1) on the same silicon piece and (2) to prevent access from dumping the SRAM in an uninitialized state in order to be tamper-proof? In SRAM PUF, there are two types of challenges that can be applied to the system. The challenge can be either the whole SRAM memory...
i would like to know why there is a problem of not using random x-coordinates in shamir secret sharing schemes. I consider that after evaluating the points in a polynomial $f(x)$, the share is composed by: $(x, f(x))$, where the $f(x)$ is secret and the $x$ could be public. So, why i always find in some literature that...
Question: Assume a variant of the OFB mode by which we only feedback the 8 most significant bits of the cipher output. We use AES and fill the remaining 120 input bits to the cipher with 0's: Why is this scheme weak, if we encrypt moderately large blocks of plaintexts, say 100-KByte? What is the maximum number of know...
Can someone give a clear definition of what a perfectly nonlinear function is? Can we say that AES s-boxes are perfectly nonlinear and why?
In CBC mode, the XOR operation is used to combine the previous encrypted block with the current plaintext, to be used as the block to encrypt. Apart from other known disadvantages inherent to the mode itself, usage of XOR creates a collision vulnerability, where if there's a collision in the output, and the plaintext b...
I want to store document hashes in a smart contract as a prove of a document (eg pdf contract - could be large, dozones of MB) related to a blockchain transaction. Is murmur3 128 hash functions a good choice for this? murmur3 is not a cryptographic hash function, but it as difficult as with cryptographic functions to c...
Suppose that $\mathcal{H}$ is a family of collision resistant hash functions. Given $h$, which was chosen uniformly at random from $\mathcal{H}$, it is infeasible for a polynomial-time adversary to find collisions for $h$. Now suppose that $h_1$ and $h_2$ are chosen uniformly at random from $\mathcal{H}$. Is it still i...
Suppose I have the following encryption scheme: for a message $m\in\mathbb{F}_p^*$, I generate the ciphertext = $(g^r,f^mh^r)$ where $g$ is the generator of a cyclic group $G$ of unknown order $n$ and $F$ is a cyclic subgroup of $G$ of order $p$ and $h=g^x$ where $x$ is the secret key. Since $G$'s order is unknown we r...
How would you prove that AES-GCM is secure against a chosen ciphertext attack (IND-CCA2), assuming that the attacker cannot forge AES-GCM MAC tags in less than brute force?
Currently, I started to learn about secure passwords in password file. The password file contains the hashed values for passwords. I know that the forward search attack for a password that if an intruder could have an access to password file in a system. Then he/she could hash the most common password and compare them ...
my use case is the following: Sharing a secret on the blockchain from one participant over a smart-contracts with revealing the secret only after some condition is verified (another participant has paid for it). Since every content on the blockchain is publicly available, I'm looking for a cryptographic way of exchangi...
My apologies if I get my terminology wrong - I am new to this stuff. I am writing a routine (in c) to encrypt plaintext. I am using TinyAES to perform a CBC on the plaintext and sending a (pseudo)random IV with the encrypted text. The user supplies a password (ascii) which I pad to key length with a known (constant) b...
In a non-interactive proxy re-encryption scheme, Alice, with the key pair $(pk_a, sk_a)$, needs to issue a re-encryption key $re_{a\rightarrow b}$ once she wants to share her secret message with Bob, with key pair $(pk_b, sk_b)$. In other words, Alice does: $re_{a\rightarrow b} = rekey(sk_a, pk_b)$. Let's say Alice wa...
I am using SSHA512 to encrypt email user's passwords. Manually doing this works using doveadm from dovecot. But I can't seem to implement this in my mail client. I can, however, use SHA512. Is SHA512 less secure than SSHA512?
Lucky13 is a timing attack against the MAC in the CBC MAC-then-encrypt ciphersuites. In the attack's page: The attacks involve detecting small differences in the time at which TLS error messages appear on the network in response to attacker-generated ciphertexts. My question is: Can a passive adversary perform Lu...
Hello people of StackExchange. It's my first time asking and I know little about Cryptography, so be gentle. My problem can be simplified to this: I can create a 2GB Volume that contains 1GB of text files and 1GB of photos. It has the password 123. Or I can create a 1GB Volume with 1GB of text files with the password 1...
I have the following ciphertext that I want to decipher: bnmkogt vgyhni uioopkm xswercvdf yuiogvbnm ghjy cftyhng tgeyjn xdrtygvc zsefx xdrgbhu tgbnmko tgbnmhyui yhnmko vbnmgyuiok So far, what I have done: Perform a frequency analysis. This suggests that no transposition cipher was used. I Also try all 26 ROT combi...
In Feb 2017, CWI and Google announced SHAttered hash collision attack on SHA1, which took $2^{63.1}$ work estimated 6500 CPU years, to achieve. Therefore, 64-bit should be considered now an insecurity. However, that's on the cloud computers of one of the largest tech company in the world, possibly taking hours if not d...
I am interested in learning and understanding cryptography and its application in every day life. One thing I can't seem to get my head around is encrypting plaintext using a block mode such as CFB. I want to use a Caesar block cipher in CFB mode to encrypt the following plaintext: lucozade with a key: 3. So in this c...
Given 2 (weak) hash functions, namely MD5 and SHA1 The fact that there exists 2 different inputs that will result in the same output under both hashing functions is explained in "Can there be two hash functions without common collisions?" I would like to quantify the probability of this type of inputs to be forged. Nam...
Assume we have a secure PRF $F$ which takes a key of length $k$, a message of length $l$, and outputs an output of length $o$. The task it to construct a secure PRF $G$ which takes the same input parameters, but outputs an output of length $2 \cdot o$, by using the first PRF. My basic intuition would be to construct so...
In section 4.1 of Leo Ducas and Daniele Micciancio's paper FHE Bootstrapping in less than a second, HomNAND has been computed as follows: $$ (\textbf{a}, b) = HomNAND((\textbf{a}_0, b_0),(\textbf{a}_1, b_1)) = (-\textbf{a}_0 - \textbf{a}_1, \frac{5q}{8} - b_0 -b_1),\ using \ 2t = 8 $$ Can anyone please elaborate how th...
I understand the output of a TRNG is almost impossible to reproduce, such a flipping a coin 100 times to produce a 100-bit sequence. However, it is also my understanding that a CSPRNG produces an unpredictable output. If they are both non-deterministic are they not the same? Are they not both producing unpredictable ...
I have a web application where I control the server, however, it should not have any knowledge of secrets that are exchanged between its users. This server holds RSA public keys of each registered user and can be trusted to deliver the correct public keys for each user when asked for them. A user's RSA public key is pr...
I am new to cryptography and have been studying for Dan Boneh's Stanford Course on Coursera, after going through encrytpion and decryption I've started the integrity portion of the Course. Sir brought up MACs and how they use a key to ensure that data is not tampered. If my understanding is correct, data that is known ...
In the paper Trapdoors for Lattices: Simpler, Tighter, Faster, Smaller by Micciancio and Peikert, they present the following theorem about the existence of trapdoor for LWE. Theorem 5.1: There is an algorithm $\mathsf{GenTrap}(1^n,1^m,q)$ that, given any $n\geq 1, q\geq 2$ and $m=\mathcal{O}(n\log q)$, outputs a matrix...
In Diffie Hellman key exchange, we have a large prime $p$ and non zero residue class $g \in F_p^x$ with a large order. An $a$ and $b$ are chosen in secret, and those are used to compute $A \equiv g^a \mod p$ and $B \equiv g^b \mod p$. Then the two communicating agree on value $g^{ab}$ via $A^b$ and $B^a$. $a=p-1$ wou...
The world of cryptography is starting to really intrigue me admittedly. I initially hated it because it looked too hard Mathematically but now it looks cool :) Got a good question for the experts and nerds on this forum. I got like a feeling that WhatsApp works by making use of public keys and private keys encryption. ...
When generating random data that is later tested for primality, should the random data include the value 0x0? I would have thought that primes that do not include zero's are a subset of the set of primes that do - and therefore make keys generated with no zero's easier to brute force? However my colleges are of the opi...
#include <sys/types.h> #include <stdint.h> #include <string.h> #include "sysendian.h" #include "sha256.h" /* * Encode a length len/4 vector of (uint32_t) into a length len vector of * (unsigned char) in big-endian form. Assumes len is a multiple of 4. */ static void be32enc_vect(unsigned char *dst, const uint32...
I have a very basic knowledge on time complexity and even less on programming, so please bear with me. I am interested to know the time complexity in big-O notation of some of the basic operations in symmetric ciphers. In particular: matrix multiplication (including permutation matrices) XOR of bit strings expansions,...
In Cipher Block Chaining (CBC) mode, each block of plaintext is XORed with the previous ciphertext block before being encrypted. What happens if I use the same IV instead of the previous ciphertext block? Is it vulnerable to chosen-plaintext attack?
It is recommended to use different keys for different purposes, such as encryption and integrity protection. As I see it, AES-GCM only requires one key as input. Two different keys are then generated from the provided key, basically meaning that one key is used for two different purposes! Should one, not, consider usin...
I have been reading up on RSA attacks and came across a problem that could be called a most-significant-bit (MSB) oracle attack. For the sake of clarity, let's define RSA primes $(p, q)$, private key d and the public key $(e, N)$ where N is the modulus. Now assume an oracle exists that will decrypt a given ciphertext $...
Is it possible for me to extract the hidden text off a stego-image without using the same application that the hidden text was hidden with. I used 5 applications that do steganography such as, SteganographyX, QuickStego, Xiao Steganography, SSuitePiscel & OpenStego. I only inserted hidden text in a .BMP image and did n...
Unlike the TPM 1.2 module, the TPM 2.0 specification allows the platform user to create own EK (Endorsement Key) using EPS (Endorsement Primary Seed) and EKTemplate and obtain a certificate signed by the Privacy CA corresponding to the public key. According to TPM 2.0 specification the manufacturer can install the al...
I know that the same message $m$ was sent to two people resulting in ciphertexts $c_1, c_2$. The public keys are $n_1$ and $n_2$, $gcd(n_1, n_2) = 1$. And $e=3$ in both cases. How can I retrieve the original message without brute-forcing it? I.e. the exponent $e$ is the same in both public keys, but the modulus $n$ is ...
I'm fairly new to cryptography and am starting to understand this weird art of Mathematics and theory. One thing I am trying to understand and do is encrypting a plaintext into ciphertext using AES in ECB mode. For example, I want to encrypt the following plaintext: "Lucozade". Would be great if someone could help me o...
I'm trying to find the n-th root of unity in a finite field that is given to me. n is a power of 2. The finite field has prime order. I know that if this were just normal numbers, I could find it using $e^{(2\pi ik/n)}$. I have no idea how to translate that into finite fields.
In this paper, Ueli Maurer uses a very cool model to generalize a number of results about broadcast, secret sharing and secure multiparty computation. Rather than talking about an adversary being either active (malicious) or passive (semi-honest) and having a threshold on the number of parties it controls, instead ther...
good evening guys, let us suppose that elliptic curve is given by the following equation $y^2=x^3-x+1 \pmod {127}$ on the following table message $9$ is converted to the point on curve if i insert directly into equation , we will get $9^3-9+1=721$ and $721$ mod $127$ gives me 86, so how 91 is given? what ...
I’m curious if there’s a zero-knowledge protocol for the following. Suppose a Passer-by is stopped by a Vigilante who has a list of wanted criminals. Can the Passer-by prove he has a valid ID and he’s not on the list without disclosing his identity? Assume the ID is a bunch of data signed by an authority in some way, a...
Is it possible to construct (even if we don't know how) a permutation for which an inverse must exist but is difficult to find (brute force required)? The one way permutation contains no hidden information (keys) or state - it's public. Or can it be proven that such a construct is not possible? In case I'm not specific...
OCB2 is proposed by Rogaway, Efficient Instantiations of Tweakable Blockciphers and Refinements to Modes OCB and PMAC , and it is standardized in ISO/IEC 19772:2009. The author also provided a proof by security reductions, that is, a break of OCB2 implies the break of the underlying block cipher. However, Akiko Inoue ...
Both DES and AES use key expansion to generate the round keys (for Feistel network or for the AddRoundKey operation). Each round uses a different key. Why do we need that? Why we cannot use the same key in each round?
There is a device that uses a secret key Sk to encrypt data. Assume this Sk is compromised. Could the following scheme be considered safe, in case we want to change the compromised Sk: We store some secret random number in the device- SRN. The new secret key would be equal to Sk = SRN xor RN, where SRN is the stored in...
Sorry if I missed with a community to ask. Recently I stumbled on a fact that the same cipher suite can be designated by two different IDs, and this is not a typo nor single occasion. For instance: http://www.thesprawl.org/research/tls-and-ssl-cipher-suites TLS_ECDH_ECDSA_WITH_NULL_SHA is 0x0047 and 0xC001 TLS_ECDH_E...
I would like to get some intuition on the security of the sponge construction. I'm referring to this diagram and notation. Let's consider the case where we have don't apply $f$ in the squeezing phase i.e. we simply take the bits in the r-space ($Z_0$ in the figure) at the end of absorption and call that the hash of o...
The following excerpt is taken from the “Cryptographically secure pseudorandom number generator” article on Wikipedia: CSPRNG designs are divided into three classes: those based on cryptographic primitives such as ciphers and cryptographic hashes, those based upon mathematical problems thought to be hard, and ...
With regards to user authentication... The server sends Alice a randomly chosen number. Alice signs the number and sends the signature back to the server. The server checks the signature using Alice's public key. If it's valid, the server accepts her connection request. Suppose that Alice uses the same private key to...
I am interested to identify the effect of replacing $\oplus$ with $\boxplus$ on basic balanced Feistel structures over $r$-rounds. Given: $F_\boxplus[L,R]= [S,T] = [R,L \boxplus f(R)]$ where $f$ is a PRF $[L,R] \in \left\{0,1\right\} ^{n} $ Q1 . In terms of CPA and KPA security, does $\boxplus$ replacement add security...
I'm now reading this paper Extending Oblivious Transfers Efficiently. I understand how to reduce an OT cost. OT extension is a method that replaces an OT with many base-OTs. But I'm still not sure how to implement each base-OT. How is this possible? Any references? I prefer more recent construction.
How to encrypt a file with RSA and AES-256 that anyone with RSA key can decrypt them?.
Consider the standard RSA-algorithm: We have chosen two primes $p$ and $q $ such that $n:=p \cdot q$ and computed $\varphi(n)$. We now need to choose the public key $e$ such that $$1<e<\varphi(n) \text{ and } gcd(e,\varphi(n)) = 1$$ If I am not mistaken there should be $\varphi(\varphi(n))-1$ many possible $e$'s ; we ...
The computational Diffie Hellman (CDH) problem for ${\mathbb{Z}}^*_p$ is given a prime $p$, a generator $g$ of ${\mathbb{Z}}^*_p$, and a pair $(g^i, g^j)$ to compute $g^{ij}$. The value $g$ is called the base. In cryptographic protocols the base is usually fixed in advance. This problem generalizes to other groups. For...
Let $\mathbb{F}_2=\{0,1\}$ be the field with two elements. I wonder if there is any known algorithm/construction that, given any $n\geq 1$, returns a boolean function $f:\mathbb{F}^n_2\rightarrow \mathbb{F}_2^m$ (for some $m\geq 1$) such that: $f$ is injective; for each $S\subseteq \mathbb{F}^n_2$, with $|S|<n$, the i...
I asked a question recently regarding the paper "Secret Sharing Over Infinite Domains" - B. Chor and E. Kushilevitz which describes a secret sharing scheme for real numbers in the interval $[0,1]$. I got a fantastic answer as to how to construct a $(k,n)$-scheme. However, I am struggling to implement the recommended sc...
In Montgomery Reduction, we need to compute $z = x y \text{ mod } N$ and the Montgomery Reduction of $x$ is $xR^{-1}$. Why should the choice of $R$ be $2^l$ where $l$ is the length of $N$ to the base $2$? Why cannot we have a larger $R$? This is a cross question with math.stackexchange.
I'm just curious where we can see a (original) formal definition of MPC. What (Where) is the formal definition of MPC? We have a bunch of tools to build a MPC protocol. Is oblivious transfer (or OT-extension) a part of MPC?
I would like to simulate the CBC IV attack where the IV is predictable. It's described in the answer to this question: chosen plaintext attack on CBC, predictable iv (Only "Yes" and "No" are valid messages and the attacker knows this) I am using 128-bit AES, CBC mode. Everything is in hex Key: 00112233445566778899aab...
I am working on a PGP scheme where a private key is created offline (and in volatile memory) and must be reused on very rare occasions to sign a piece of exportable data. The private key is locked using a random passphrase with ~256 bits of entropy, and the passphrase and resultant PGP secret key are written on paper ...
The Alternating Step Generator was proposed by Christoph G. Günther: Alternating step generators controlled by de Bruijn sequences, in proceedings of Eurocrypt 1987. It's perhaps the conceptually simplest CSPRNG producing bits at a constant rate. Its best-known cryptanalysis is by Shahram Khazaei, Simon Fischer, and Wi...
I'm given $N=p\,q$ and told that $44\,p\approx 17\,q$ (with the value given for $N$ some 49-digit integer 8124642558124642555899928124642555899924479992447). In RSA $p$ and $q$ must be prime. So how can I solve this equation? I'm using Maple, I began with s := evalf(solve(eqns, [p, q])) with eqns := {N = p*q, 44*p = 1...