instruction
stringlengths
32
27.2k
What are the disadvantages of using AES-256 with 240-byte key (which scrypt/bcrypt/argon2/pbkdf2 can easily output) instead of an expanded 256-bit key? The only disadvantage I can think of is "no more hardware acceleration". This is not important for a fair comparison, are there other disadvantages? EDIT: This is about...
In RSA cryptosystem, if I have two (or more) pairs of public key and also the corresponding ciphertexts, can I get the fixed message from them? I cannot think up any good idea for now.
For bilinear groups: $(p,\mathbb{G}_1,\mathbb{G_2},\mathbb{G}_T,e,g_1,h_1,g_2,h_2)$, where $\mathbb{G}_1,\mathbb{G_2},\mathbb{G}_T$ are groups of prime oder $p$. $g_1,h_1$ are generators of $\mathbb{G}_1$, and $g_2,h_2$ are generators of $\mathbb{G}_2$ Is it possible to use Pederson commitment over all these three grou...
I have been reading the Differential Privacy (DP) literature for some time to get familiar with it. I feel comfortable with the Math and Stats foundations of it, but I am suffering a bit from the 'setting' of response release. What I don't get is, the traditional definition of Differential Privacy says that any two nei...
I am researching the Bombe Machine, having just completed a project on the Enigma Machine. I visited The Rutherford Journal - The Turing Bombe, and it claimed that The scales on the three indicator drums are designed to show the ‘rotor core starting positions’ at a ‘stop’ when measured in terms of the corresponding E...
I am doing research on the Bombe Machine, and I read that when the Bombe tries to find the stecker (plugboard) partners of letters, it only needs to use the rotor types and arrangement and also the "rotor core offset," which is just a combination of the rotor positions and the ring settings. However, the ring setting ...
I want to obtain a “toy” version of the Ascon permutation defined for five 8-bit words (instead of five 64-bit words.) It seems that it is possible to use the same bit-sliced 5-bit S-Box. But is it possible to use the same sequence of constants (0xF0, 0xE1, 0xD2, ...) XORed with the middle word? And what is a suitable ...
I have recently been looking into Homomorphic encryption and I am looking for a specific hash-based encryption/decryption scheme. I don't need a full implementation but I am not sure if what I want is even possible at all. So I am looking for some direction or explanation on why this is impossible (which is my gut feel...
Shamir's Secret Sharing Scheme uses arithmetic in a finite field of prime order. In a secret image sharing scheme, what are the advantages of Galois field $\mathrm{GF}(p^m)$ over finite field $ F_p$?
In the Shnorr protocol where the prover wants to prove he has a witness $w$ for $g^w$ the following interactions happen: the prover chooses a random $r$, calculates $y=g^r$ and sends $y$ the verifier sends a challenge $x$ the prover calculates $t=xw+r$ and sends it to the verifier the verifier tests if $g^t=(g^w)^x.y...
In the original paper of Paillier, lemma 1 shows why $n$ must divide the order of $g$. What I don't understand in the proof of this lemma is why $g^{x_2-x_1}(y_2/y_1)^n$ implies $g^{\lambda(x_2-x_1)}$. Where does this result come from?
Ciphertext has the property to appear random. As a matter of fact, randomness is the first test, an encryption algorithm must pass. However, there are various setups, which monitor the incoming/ outgoing traffic and can easily identify Random Bits (ciphetext). Is there any technique/ research paper in literature which ...
Question When determining the security of a hash system, the cryptanalyst tries the following attacks. (a) If the attacker is NOT allowed to modify the original message, determine the number of hash calculations that would be required to have a 50% chance of generating a new message with the same hash as the original m...
I would like to generate a random number based on this set, firstly how do I generate the numbers that belong to the Z* order q set. I have the q value and the prime p value. Also if there's a library in python that does that already that'd be nice
Hello everyone and already thanks for taking your time to read this! I am currently implementing ChaCha20 (256-bit key) for my bachelor thesis. I know that there are two version of ChaCha out there; the version used in IETF protocols and the one with the original design by DJB. As far as I understood, the only differen...
i want to make many pederson commitments $C=g^s h^r$ for a long time , do i have to change the generators $g$ and $h$ or its ok if i always used the same ones
Assuming the hacker has access to the ciphers of each of the versions, will it help him/her to decipher the original file(s) by doing some sort of comparison of the ciphers?
Having a random function - $R\in{}\mathcal{R}$ s.t. $R:\{0,1\}^n\rightarrow{}\{0,1\}^n$. What is the probability that $R$ is invertible? I know calculating it suppose to be straight forward, but I'm struggling with it a bit.
Pardon me for this newbie-ish question. I'm still a novice in cryptography . I have an application that outputs random numbers from 0 - 12 (endpoints inclusive) unsequentially (some outputs are thrown off) using the mersenne twister algorithm and i would like to break and predict its seed in Python but i don't know wha...
On page 89 Remark 3.5 in the Handbook of Applied Cryptography the following is written: A non-trivial factorization of $n$ is a factorization of the form $n = ab$ where $1 < a < n$ and $1 < b < n$; $a$ and $b$ are said to be non-trivial factors of $n$. Here a and b are not necessarily prime. To solve the integer f...
I am having some problems encrypting disk using AES-256 in CTR mode, with ESSIV iv generation (I am aware of couple of flaws, although this mode is enough for now). What I have here is: S = SHA256(K), result 32 bytes K = original key, 32 bytes SN = sector number, 16 bytes E = AES-256 CTR IV2 = generated iv, 16 bytes W...
Explain why an anonymous key exchange protocol cannot be secure against a computationally unbounded adversary.
As far as I understand, OTP usually works on a superficial layer by having two parties both know of a key and then authenticate each other by sharing a hash of the key and some sort of counter (e.g. currentTime mod someNumber) with each other. In theory, this means both parties can verify each other, as both have the c...
I'm looking at a way to encrypt a file so that our software will only allow users with the proper license to use it (see details below). I have some notions on that topic, but barely more than knowing it's very easy to get things wrong. I'm sure what we're doing must be rather common (up to the details), but I wasn't l...
Given an algorithm $A_D$ which solves an instance of the decoding problem $e \in \mathbb{F}_2^n$ in time $T_D$ given a parity check matrix $H \in \mathbb{F}_2^{(n-k)\times n}$ and a syndrome $s \in \mathbb{F}_2^n$. You are also given a LPN-oracle with error-probability $\tau$. Construct an algorithm which solves the LP...
I don't know mucho about Cryptography, I try to understand, It's for homework. Why the standard DH is not sufficient to ensure the security of the Diffie-Hellman key exchange? My answer was: In the standard Diffie-Hellman key exchange protocol, both parties compute the secret value gαβ for two privately chosen values $\alpha...
Let $G=(\mathbb{Z}_p \times \mathbb{Z}_p) \rtimes_{\phi} \mathbb{Z}_q$, where $p$ and $q$ are odd distinct primes. Let $G$ be generated by the elements $s=(g_1,e_q)$ and $t=(e_p,g_3)$, $g_1,e_p \in \mathbb{Z}_p \times \mathbb{Z}_p$, $g_3,e_q \in \mathbb{Z}_q$, $e_p,e_q$ are identity elements. $|s|=p, |t|=q$. $\phi:\...
Do KDFs exist for generating RSA and ECC keys from a 2048-bit random secret?
I'm trying to decrypt a PCAP encrypted with TLS 1.2. I have the private key and Wireshark is able to decrypt the data so what I am doing should work but there is obviously something wrong. The cipher used is TLS_RSA_WITH_AES_256_GCM_SHA384 with no compression. The first steps are to extract the random values from the...
I understand that if $e\in{\mathbf{Z^*_{\phi(N)}}}$ then $\gcd(e,\phi(N))=1$ and if $e\not\in{\mathbf{Z^*_{\phi(N)}}}$ than $\gcd(e,\phi(N))\neq{}1$. But I couldn't figure out why this implies bijection of $f(x)=x^e$. I also tried to see examples but that didn't help me to explain the phenomenon.
Is there a cryptographic algorithm that can 'pack' a bunch of strings/numbers and "confirm" if a string/numbers exists (later in the code) while keeping the output hidden? For example, I have algorithm X, to which I can run something like: // From Alice's side algo1 = new X(key); algo1.pack(100) algo1.pack(200) algo1....
So I am attempting to generate a JWE using an X25519 to encrypt the for the Content Encryption Key (CEK) and AES-256-GCM for the content. My issue however is that NaCl needs an IV (nonce in NaCl) for both the asymmetric encryption of the key and the symmetric encryption of the content. Looking at other examples such as...
is there any post-quantum public-key encryption that achieves "key-privacy" (IK-CPA, IK-CCA) as described in this paper? I saw one code-based public-key encryption construction, but I wonder if there is any lattice-based construction.
I have a server and a client device that share two separate data channels that each need to have authentication and encryption protections. When a connection is made over data channel 1, it is secured using TLS where all data after handshaking is authenticated and encrypted using a single session key via AES-CCM. Data ...
I wonder about this proof. Can someone help me? I try to prove for Presevation of Collision Resistance for Merkle-Damgard as guide in end of this paper (Security Reductions of the Second Round SHA-3 Candidates). Assume H is Merkle-Damgard hash function, f is an compression, f' = chop_s(f). I try to prove: 〖Adv〗_H^col (...
If we have a PRG $g$ and a OWF $f$, can we say that $g' = f(g)$ is a PRG? And what if $g$ stretches its input by a factor of 2?
I am developing an app in which the user data is encrypted in the client before the data is transmitted (over SSL) and decrypted after it is received. If the database is ever compromised, without the user's decryption keys the attacker knows nothing. Of course, when the app is hosted on a web server, an attacker could ...
I believe I've read this before, but I can't find it despite hours of searching on Google. I've know the common definition of isogeny in elliptic curves, as $\phi:E_1 \rightarrow E_2$ a nonconstant morphism of curves satisfying $\phi(0)= 0$, however somewhere else I read a really lovely intuitive explanation that basic...
Can Ciphers that are known to be insecure because their keysize is considered too small still be used in appliances that have a tight decryption timeframe? In particular I am looking at ECC2K-130. ecc-challenge.info states, that they need 2466 PlayStation 3's to carry out the required 2^60.9 iterations per year. Let's ...
If the given protocol is non interactive then how can one prove that the modified protocol is complete and determine whether it is zero-knowledge? Let $N = p q$ as in an RSA algorithm, with $\text{gcd}(e, \phi(N)) = 1, e$ prime. $P$ wants to prove knowledge of $x \in \mathbb{Z}_N$, where $y = x^e$ is public. $P$ choose...
Recently a bank had a costly mistake that resulted in their master private key being exposed. Through this thread, I learned about multi-party key storage with Adi Shamir's secret sharing scheme as the basis, very cool. In the naive setup, there's still a person/machine that must do the final decryption which knows the...
I want to end-to-end encrypt items in a stateless environment. These items have an identifier (random string). Now I want to add encryption by adding a random key. The URL could be https://server.tld/item#key which users can share with each other. I want to only use Web Crypto API (SubtleCrypto) without any additional ...
I see people talk about Edward curves (when I discuss Ed25519) as better curves than Weierstrass for computations. Now I get that Edward curves have the nice addition formula, but if we have a specific Weierstrass curve, wouldn't addition also involve the same computation, since we have fixed equations for that, that w...
It is my understanding that libsodium's sealed_box is based on X25519, a Diffie-Hellman function: By combining the X25519 key agreement with a symmetric cipher and having a recipient derive the symmetric key, a message can be constructed that can only be decrypted by making use of the X25519 private key. Can this const...
I'm quite new to cryptography and don't have much mathematical knowledge. I'm studying cryptography, especially public key algorithms. I have some basic knowledge of public key algorithms so I know how the RSA algorithm works. But I found lots of things I don't understand while reading New Directions In Cryptography by...
I am trying to understand how an unbalanced Feistel network works. I came across this image: It says that the function takes $b$ bits to $y$ bits. Which works on the first step, however clearly doesn't on the next one. What am I not getting? If you always apply the function to the side with $b$ bits would that break t...
IEEE 1363 (or more precisely, IEEE 1363-2000) - the IEEE Standard Specifications for Public-Key Cryptography - has been inactive for so long, that it is now with status Inactive-Reserved by IEEE, and even considered withdrawn since Nov 2019. Yet, it appears like a relatively well written standards document by a respect...
If a text ciphered by substitution is in a artificial language with equal frequency distribution of characters, and perhaps 2 or 3-grams too, what would be the next, easy to understand, ways to decipher it? I found the "Hill climbing" concept, of starting with a random set of replaces, compare results with a dictionary...
If we have a symmetric algorithm with key length $m$ bit, and we do a 5 time encryption with it. How much will it be its effective key length.
I want to understand how, using standard tools like openssl (or similar), to derive a child RSA key pair from an existing RSA key pair. Additionally I would like the derived key to contain a reference to it's parent such that the relationship could be verified using the same tools used to create it. From my research s...
In the book Serious Cryptography It says for a cipher's permutation to be secure "Different keys should result in different permutations. Otherwise it becomes easier to decrypt without the key: if different keys result in identical permutations, that means there are fewer distinct keys than distinct permutations, and t...
Problem 5.16 in this pdf, from the book: Christof Paar, Jan Pelzl, Understanding Cryptography 5.16. This is your chance to break a cryptosystem. As we know by now, cryptography is a tricky business. The following problem illustrates how easy it is to turn a strong scheme into a weak one with minor modifications. We sa...
I'm struggling to understand the intuition of the zero knowledge-ness of this proof from the following paper. The proof is a 2 round where the verifier asks the prover to extract square roots of quadratic residues. I've read the HVZK proof (shown in the picture below) and I agree that you can produce a transcript that ...
Situation:- I am using Python. I am using RSA and I am using two 64 bit keys. I am not an cryptographer . I can provide you the RSA code if needed but i am not posting it as it doesn't have to do anything with the problem. I have to give the private key to a human to remember well 64bit key cannot be remembered by norm...
In symmetric cryptography, combining an IND-CPA secure symmetric encryption scheme with a secure MAC with the encrypt-then-MAC method yields a IND-CCA secure symmetric encryption scheme. I am trying to understand why this does not hold in the asymmetric case. Suppose you have an IND-CPA secure public-key encryption sch...
Is ShiftRows(SubtBytes(x)) = SubtBytes(ShiftRows(x)) the same for the same entry : in AES It seems like these two are equal, can someone explain in theoretically?
I use Rclone, which uses Secretbox to authenticate and encrypt data. Secretbox uses the Poly1305 authentication algorithm and the Xsalsa20 symmetric flow cipher. This whole process takes some time (very short time, because it is a very fast cryptographic algorithms). I wonder how fast the Poly1305 algorithm and the Xsa...
If verifiers are public blockchain nodes, which might leak information. Does this imply that range proofs such as Boudot's and Lipmma's (squaring based) approach could not be applied, unless a trusted set-up is used? In this case, if we need a range proof without trusted set-up, what are the choices out there? Bullet r...
This is tangential to this question, which asks about generating a file to match an exact MD5 hash. My question is if it would be significantly easier to generate a file that is "within X digits of" an existing MD5 hash. For example, if this is the MD5 hash I am trying to copy: 5f4dcc3b5aa765d61d8327deb882cf99 I would ...
AES needs a key in order to work, hashing-algorithms do not. Suppose we have a fixed key for AES, why don't we simply hash our keys with that? As with hash functions, AES has arbitrary input size, fixed output size and reasonable computation time. And if the fixed key can be kept safe, it is computationally infeasible ...
I was studying PKI the other day and I had a serious thinking about the following question. What is CSR? - It is a block of encoded text that is given to the CA when applying for an SSL certificate which validates the identity of the requesting party. The process to construct a CSR is, A Certificate Request Info valu...
I have specific cipher which is built from permutations. It has or should has few rounds. If we do 2 rounds it is like 2 permutation composition. 3 rounds are like composition of 3 permutations and so on. It is 128-bit block cipher, so every permutation has $2^{128}$ elements. Every unique permutation can be define by ...
I need to generate secure pseudorandom numbers in an embedded system. Instead of having to port some RNG library, could I just use an existing SHA2 function as a random number generator (n-th random number is SHA2(seed + n))? I'm worried that SHA2 hashes might not be evenly distributed (have bias towards certain sequen...
Suppose there is an elliptic curve $E$ in form $y^2=x^3+b$ defined over $\mathbb{F_p}$, where $p$ is large prime. #$E(\mathbb{F_p})$ is also a large prime but #$E(\mathbb{F_p})\ne p$. ECDLP on this curve is in the form of $Q=[k]P$. Now let's define the same curve but over extension field $\mathbb{F_p}^6$. #$E(\mathbb{F...
For an authentication problem imagine the following scenario with two devices: 1 server 1 client. The client starts a conversation with the server and sends him his public key. All public keys in this scenario are signed by a CA. The server validates the public key and sends his signed public key to the client togeth...
Suppose Alice is a traitor and suspects Bob might also be a traitor. If Bob is a traitor, she would like to conspire with him together, if not she doesn't want to reveal that she is a traitor. Is there a protocol Alice and Bob can engage in that would reveal that they are either: Both traitors Not both traitors With ...
I was doing some thinking about what would happen to my computer and passwords if I fell off the earth tomorrow. I wanted to have a message that only they would have the ability to decrypt and I wanted it to be very strong. Lets say they are the only ones who know our first dog's name, Scout. How could the decrypt a sa...
I have 7 ciphertexts that have been XORed with the same key. I'm writing a program to figure out what the plaintexts are and possibly maybe recover the key. I have managed to convert the HEX ciphertexts (1-7) into binary and XOR each ciphertext with each other: C1 XOR (C2...C7) C2 XOR (C3...C7) C3 XOR (C4...C7) C4 XOR...
Let's say you have a, or several random byte(s) 0-255 and would like to derive numbers 0-9 for a One Time Pad (OTP) of them. What would be a non-naïve approach to represent 256 possible values onto 10 possible values without weakening the underlying security? I am not sure that I simply can discard 6 states of the 256 ...
If $((p-1)(q-1) -1)$ divisible by $e$ ($e$ is odd number) , then $\text{gcd}(e,(p-1)(q-1)) = 1$. ($p,q$ are prime numbers ) Is this true, if yes why, if not why not ?
I am looking at a elliptic curves of the form $E:y^2=x^3+x$, i.e. short Weierstrass curves wtih $a=1$ and $b=0$, defined over a field $\mathbb{F}_p$ with $p$ being a safe prime. Somewhat interestingly, this is kind of an inverse Koblitz curve (where $a=0$ and $b\ne0$). Because $b=0$, the case of $x=0$ will always be a ...
I hear a lot about AEAD encryption (GCM, EAX, ...). Why is it unsecure (it seems to be as AEAD exists) to do do that: Imagine a block of data, hash it, append the hash to the data, then encrypt the result (data + hash) ? I would intuitively think that it is not possible to currupt the data then corrupt the hash to hide...
I'm playing around with ECC, trying to encrypt traffic between my webapp and backend (its not a product, im trying to learn and understand more about ECC) I managed to generate keys, successful run key exchange and got same point on both ends. Now I wonder how I should convert my point which has 2 coordinates into AES ...
What is the difference between corruption and compromise? Are Compromising a user and corrupting a user same?
I'm trying to implement Private Set Intersection using the additive ElGamal public key encryption system. The code I've written can encrypt and decrypt numbers using the ElGamal system, so far so good. Adding and multiplying the cipher also works. Or at least, it works with positive numbers. As I understand modulo arit...
In Cryptographic Algorithm Validation Program for KDF document, here, page 9, it says "If a field size that is not a multiple of 8 bits, the shared secret is represented by a string of bytes that is padded with zeros on the left". However, I get a valid input like this, dhLength=4348 g^xy=ED6DAAE... (Total contains 108...
Does there exist a hash function $h$ and an input $x$ such that $h(x) = x$? I believe this is a special case of collision-resistance. I imagine such a case is guaranteed not to be possible (otherwise such a hash function wouldn't always be guaranteed to be useful), but how is such a case proven to not be possible?
For RSA, my understanding is that large primes are found randomly to build a private/public keypair. If a static seed can be used in that random search process, it should be possible to derive the same public/private keypair reliably. For a repeatable discovery of foundational large-primes, the search for random primes...
Is it more secure to combine algorithms for password hashing, for example, Scrypt, Bcrypt, SHA-3, etc.? If an attacker wants to use dedicated hardware, he would need one for each algorithm. However, I know having multiple algorithms increases the probability of having bugs and leaks. If having multiple algorithms for E...
In Practical Threshold Signature it says that there is a requirement in which the RSA public exponent $e$ must be more than $l$. $l$ in this case is the number of players in the threshold group. My question is: Why is there a constraint that the public exponent must be larger than the number of players? In my case, my...
I am currently reading the book Cryptography: Theory and Practice (4th edition) by Stinson and Paterson and going through the exercises. I have reached the Threshold schemes section and am currently doing the exercises related to Shamir's secret sharing scheme. The first exercise (11.8 in the 4th edition of the book) a...
I am in a dispute regarding a test question in an exam. The question is something like that: What would happen if one were to use RSA with $n=100$ and $e=13$ to encrypt a message $m$? a) You would be able to encrypt the message but not decrypt it. b) You would not be able to encrypt the message. ... Both parties agre...
So, I am following an online course about cryptography these days, and I am stuck in an assignment. Here it is: ---------Known-------------- $m_1$: message 1 $m_1$ = 387 $s_1$: digital signature for $m_1$ $s_1$ = 10469409596699442355039984040567927145168928743974011888196879861271479836018790561696532494530611626118651...
We have several candidates for OWF, like multiplication/factoring and discrete exponencial/logarithm. What I am asking is: Does the existence of one way functions imply that our candidate functions are indeed one way functions? Is there a candidate one way function whose one wayness is directly tied to the existance of...
The password is 11 chars. It has 5 letters and 6 numeric characters. There is at least 1 uppercase and 1 lowercase in it at the same time. Can an attacker benefit from these information even though he doesn't have an info about where the numbers and letters are at?
Many advice against using AES in ECB mode as it always produces same cipher text for a given plain text. That shortcoming can be addressed by using salt appended to original message so that the resulting cipher text is different each time , the receiver can then decyrpt the cipher text and discard the salt keeping the ...
I got an alert last night to the keywords above and was curious, so took a look at the tor site flagged which is the following one: http://nsrz5iogimqwgeax3clpp6hvfy6viom2woy7dghgxes4sqk63r7svoqd.onion. Obviously you need TOR to access it or a service like Tor2Web though reachability is spotty. I'm asking SE because th...
Does anybody know if there is some kind of measure on how often public-key cryptosystems like El Gamal, RSA,... are implemented. Which ones are most common?
Given a 'message' $M$, a proof of the 'correctness' of RSA encryption means to show that $(M^e)^d \equiv M \pmod{n}$, where $n=pq$ is a product of primes, and $ed \equiv 1 \pmod{\phi(n)}$, where $\phi$ is Euler's totient function, so that $\phi(n)=(p-1)(q-1)$. Most sources attribute the correctness of RSA encryption to...
In the paper On the Size of Pairing-based Non-interactive Arguments by Jens Groth, it is always referred in the equations to satisfy that $a_0 = 1$ and the others $a_1, ..., a_m \in \mathbb{F}$. I am not sure I understand this specification, as we can always set $a_0$ later to 1 if needed. I first thought it was to int...
I add differential privacy (DP) to my machine learning models by using PyTorch-DP. PyTorch-DP supplies me with the values: $\epsilon$ and $\delta $. I know that the $\epsilon$ tells us something about the probability $\rho$ that the privacy of individuals in the dataset (DP) is broken. So, a $\rho$ of 0.5 might corresp...
I am trying to build website that will encrypt some data for the user using his/her the output of scrypt on it, now the idea is that this schema is not flexible because if the user loose their password then all of their data is lost, instead came to following options: Option 1 : Generate random 128 bit key $k_1$ Gene...
Suppose I have a sequence of bits of length M. I need to hide N out of M bits (hiding means forcing them to be 0) using RNG with a key. How I can relate the output of RNG to the number and positions of N bits. Can the attacker knows a pattern here assuming the same key is used each time i want to send the bits? Assume...
Can I use something like Shannon entropy to determine the suitability of a symmetric key? I found a symmetric key which wasn't generated using a CSPRNG and it had a very low Shannon entropy. I ran an experiment on 1 million keys from a CSPRNG having a Shannon entropy of at least x where all the weak symmetric keys I fo...
I know that in IACR - Better Zero-Knowledge Proofs for Lattice Encryption and Their Application to Group Signatures it constructs such a challenge set: {$ x^i $}. But the inverse of the difference of the elements in it should multiply $2$, which is not good enough. How to construct a good set (say, just exactly fits th...
Please do forgive me for my naivety. I have inherited a legacy system wherein the CA which signs the certificate is of version 1. Is it possible to generate a x509 version 3 certificate which is signed by this CA? I use openssl for this. Thanks
I know that implemntations with T-tables such as Golang's are prone to side-channel attacks, but is AES's S-Box wihtout any additional table also insecure ?
If I have number $2$, which is additively shared into $3+4 \bmod 5$. Now I need to change the filed to a large one, like $500$. How to convert the shares, so that I can have a new number or shares $a+b \bmod 500 = 3+4 \bmod 5$.
What I'd like to do is to have the Prover store a value x where x remains hidden. From x, I'd like to extract one blob r1, and save it in the Verifier's database. Later in the future, the same Prover who holds x should compute a new r2 from x, such that one cannot easily extract x from r2 and send it over to Verifier. ...
I would like to encrypt and decrypt files with AES-256-GCM. I need a solution that works with Java, PHP and JavaScript. In practice, users can upload, download files via web browser and/or desktop app and there are files that will be generated by the server itself. (I'm currently using openSSL, but I'm thinking of swit...