instruction
stringlengths
32
27.2k
Why do we use or have Boolean Circuit Model is it because since it uses gates and bits we could adapt it into a hardware model?
I have seen the terms multiplicative depth and multiplicative level while reading Faster homomorphic encryption is not enough: improved heuristic for multiplicative depth minimization of Boolean circuits by Aubry et. al, 2019. Is there a difference between the term multiplicative depth and multiplicative level?
I was wondering if the mere existence of a (by some definition) secure cryptographic hash function immediately implies an equally secure symmetric encryption scheme. By my understanding, one could to the following given such a function: Encryption: Using a shared secret key, we calculate the hash of the key concatenate...
I'm trying to find an efficient algorithm to calculate the $y$ coordinate of a an elliptic curve point given its $x$ coordinate, for elliptic curves over fields of the form $2^m$ with polynomial representation of the field elements. I had the exact same problem with elliptic curves over prime fields, but it is very sim...
From the Salsa20 security document, DJB states that he doesn't care about related key attacks: The standard solutions to all the standard cryptographic problems—encryption, authentication, etc.—are protocols that do not allow related-key attacks on the underlying primitives. I see no evidence that we can save time by ...
Suppose you have a cryptographic permutation consisting of identical rounds, that makes it vulnerable to a slide attack. But if you sandwich it between two XORs of key material. Is it still vulnerable? Even-Mansour block cipher construction works on such a principle although it says nothing about a permutation with ide...
The original definition of $\epsilon-$differential privacy is for two databases $D_1$, $D_2$ that differ at most one entry and an randomized algorithm $A$. We have a bound on the probability ratio $\frac{Pr[A(D_1) \in S]}{Pr[A(D_2) \in S]} \leq e^\epsilon$ where $S$ is subset of range of $A$. How do we define such thin...
I want to use the Paillier cryptosystem for encryption and decryption purposes in my research work. But i haven't found a way to encrypt big input messages; As i want to encrypt the message i,e m : m = 0xa56f89d6aa234776b22347293429ff074928ab3749cc2837c492b874ebfaba78364ba0912efe862f628347982478b Key Gen: p =887, q = ...
I'm playing with cryptography and its use with typescript on one side and PHP on the other side. Now I'm looking for routines that can encrypt and decrypt with ecdh's private and shared keys. Any recommendations? At the moment its in a testenvironment to figure out how it works basically. The keys (private and shared) ...
As Pailliear cryptosystem secret key $\lambda$, depends on primes $p$ and $q$. As $\lambda = \operatorname{lcm}(p-1,q-1)$. I want decryption key to independent from $p$ and $q$. It can be possible to generate decryption key independently?
I've been reading up on the Ring Learning with Errors problem and the proposed attacks, in relation to homomorphic encryption. Some of the literature has been quite difficult to understand - what I want to know is if it is possible to solve this problem? And if so, what is a general outline of a possible attack? I'm qu...
Given two distinct safe primes $p_1 = 2 \cdot q_1 + 1$, $p_2 = 2 \cdot q_2 +1$, consider the following two instances of the discrete logarithm problem with the same unknown exponent $x$. $$ g_1^x \equiv y_1 \mod p_1 $$ $$ g_2^x \equiv y_2 \mod p_2 $$ where the multiplicative orders of $g_1, g_2$ are $q_1, q_2$ respecti...
This is a purely theoretical question. I've found some similar questions, but they're not what I'm asking. Most importantly, I'm not asking whether anyone can find the hypothetical duplicate. I'm not asking about the probability of encountering a collision, or how long it would take. In short, for my purposes, pretend ...
I'm new to ECDSA and there is something I still not sure about. If I have a classic Certificate Authority server that delivers PEM certificates containing public key with ECDSA, I can retrieve the coordinates of the Point on the curve, and the curve used. My question, is regarding the coordinates of the point $x,y.$ Is...
In Chapter 21.3 of Schneier, Applied Cryptography I read the following about the Schnorr Authentication Protocol: To generate a key pair, first choose two primes, $p$ and $q$, such that $q$ is a prime factor of $p - 1$. Then, choose an $a$ not equal to $1$, such that $a^q \equiv 1 \pmod{p}$. Then choose a random numbe...
In "The Algorithmic Foundations of Differential Privacy" book, Advanced Decomposition Theorem (Thm 3.20) is stated as follows: For all "$\epsilon, \delta, \delta' \geq 0$, the class of ($\epsilon,\delta$)-differentially private mechanisms satisfies ($\epsilon',k\delta+\delta'$)-differential privacy under $k$-fold adap...
Suppose that I have a password in plaintext. I also have the hashed version of the password. Say it uses MD5. Is it possible to find out what the salt is given the above information? I'm guessing not?
$A(x) \bmod B(x) = C(x)$ and $A(x) \bmod D(x) = E(x)$: A dealer knows $A(x)$ polynomial, which is a secret. He distributes $C(x)$ and $E(x)$ privately to $X$ and $Y$, respectively. $B(x)$ and $D(x)$ are public. $X$ and $Y$ want to know that $C(x)$ and $E(x)$ is the result of $A(x) \bmod B(x)$ and $A(x) \bmod D(x)$, res...
ElGamal, RSA, and Paillier cryptosystem have homomorphic property, and can be used fro re-encryption purposes. I want to use the encryption to re-encrypt ciphertext(as in proxy re-encryption but differently/different scenario / may be like universal re-encryption) Requirements: Encryption: Encryption: choose some ran...
Assume two devices (A and B) with self-signed TLS certificates (this part can't change). We want these devices to trust each other. One way to do this is to simply copy A's cert over to B's allowed cert list and vice versa, but this is a little cumbersome usability-wise. Instead, what about this scheme: Device A gener...
I want public key cryptosystem to used for re-encryption as describe in Can Paillier ,RSA or any other schemes be used for universal re-encryption like elGamal? Now i have little solution for Paillier cryptosystem, to choose key that is dependent on environmental variable. i,e IP-Address . The problem is how to map t...
I was playing around with modular arithmetic when I noticed something. \begin{align} g^k &= a \bmod n\\ g^{k+0.5(n-1)} &= b \bmod n \end{align} Then $a + b = n$, so you can also write $$g^{k+0.5(n-1)} = n - a \bmod n$$ This seems to hold if $n$ is prime and $g$ is the primitive element of $n$, according to randomly tr...
In X25519 (ECDH over Curve25519) Peer A and B exchange their Public Keys PkA and PkB and then calculate a shared-secret SecAB using cominationOf(SkA, PkB) == combinationOf(SkB, PkA). For forward secrecy, I think it's recommended for A and B to re-negotiate a new shared-secret regularly (thus advertise new Public Keys)....
The basic idea of homomorphic MACs is that a user can use a secret key to generate a set of tags $σ_1 \dots σ_n$ authenticating values $D_1 \dots D_n$ respectively. so, anyone can homomorphically execute a program $P$ over $(σ_1 \dots σ_n)$ to generate a short tag σ that authenticates $m$ as the output of $P(m_1 \dots ...
As most know, a duplicate nonce with GMAC/GCM allows key recovery attacks against GMAC itself and thus the ability to forge messages. This is because GMAC computes GHASH and then just XORs this with AES(j) where j is the GCM counter. If a nonce is duplicate you get identical AES(j) which lets you XOR and get the raw GH...
Here is my question when learning Vigenère cipher, can we perform frequency analysis attack toward this cipher? My first impression is no, because each column of its matrix has exactly 26 English letters. But I also know that this cipher is not secure. So, my question is, whether and how we can perform frequency attac...
I am learning ECC, I am confused a bit how it works for now. To my understanding, G is the starting point, k is how many times you apply the dot operation. And Q is the public key, which is the final point after you apply k times dot operations, like this Q = kG And then Q is the public key, and k is the private key. ...
What is the size of key material required for generating MAC keys, encryption keys and IV when use TLS_DHE_RSA_WITH_AES_256_CBC_SHA ? How to calculate it?
Up to now, the pairs of strings that create an MD5 collision that have been discovered all contain non-ASCII (binary) characters. Are there two known ASCII-only strings which have the same MD5 hash value? For instance the set of characters [0-9A-Za-z]?
I have been studing ECDSA signature/verify for a while. By my understanding: the standard ECDSA signature/verify process (which we find on text book) are like below: - A sender combines message and its ECC public key (pk), do hash, then using ECC sk (private key) to generate signature; it then append the signature wit...
Let $S$ be the set of $k$ congruences of the type $g_{i}^{x_i} \equiv h_i \pmod{n_i}, \quad \forall i,1\leq i \leq k$ What would be the best way to describe such set $S$ with a term in literature. The goal is that the reader immediately thinks about this set of congruences when reading the term. Would it be a collecti...
I want to "translate" a text so that its encrypted form should be pronounceable text. Is there any crypto technique that can make encrypted text look as another language? (yet, difficult to decrypt).
Sorry if I'm not using the right terminology, as I'm new to crypto. I want to know the most effective way to protect a database against brute force attacks in the case of a small dictionary. For instance, suppose I have a user database, and that I want to protect a certain attribute/field of my users that has a small c...
I understand that RSASSA-PSS is not deterministic. But I see that in message encoding, MGF and SHA functions are deterministic. So even if I keep default salt length, it produces different signature. Where is the randomness introduced?
I am considering the SIS problem of finding $x\in \mathbb{Z}^m$ such that for random $A\in\mathbb{Z}_q^{n\times m}$, $Ax=0$ and $\lVert x\rVert < \beta$ for some $p$-norm and bound $\beta < q$. High density is when $n\log_2(q) \ll m$, or more generally when input is significantly larger than output. General methodology...
I'm implementing Pollard's kangaroo algorithm as described here. Wikipedia's description of the protocol says that you should have "a pseudorandom map $f:G\rightarrow S$." Does anyone know what happens if you weaken the properties of the map? I'm trying to implement this (don't worry, it's for research--nothing nefari...
I just came to learn about Deffie Hellman Key Exchange. And a little bit about RSA. I came to DH from something about SSL. From what I understood before is that SSL uses DH and TLS uses RSA, but after some research, came to know DH and RSA are both secure/insecure, slow/fast in their own ways, and Both SSL and TLS can ...
I want to encrypt a list of unique values and I want the property of when I encrypt the same value I get the same ciphertext (determinism). The adversary only observes the ciphertexts of a unique set of plaintext values. In this context would the following encryption algorithm be secure: I generate the sha256 hash of ...
My use case guarantees that all plaintext values are unique. In this case, is it safe to use a fixed IV with AES-GCM to carry our encryption/decryption?
I recently came to know that there is a notion called "information-theoretic private information retrieval". The assumption is that multiple non-colluding servers have same data set and a client wants to retrieve a specific element (or multiple elements) in the data set by taking location(s) or keyword(s) as input with...
Why perfectly secrecy needs the key space to be as large as the message space? I think the definition (1) $\Pr[M=m\mathrel|C=c]= Pr[M=m]$ still holds. Let $M(c)$ be the set of messages that can be decrypted from $c$. We know that $|M(c)| \leq |K| < |M|$ where $K$ and $M$ are the key and message space, and we can infe...
If I want to verify a root of a polynomial that has degree $n$, I must to compute the $x^n, x^{n-1}...x, 1$.It seems to be inefficient. Is there any method to do this without computing many power?
This is so trivial that authors usually don't bother to give an explicit proof. But for me there is some vagueness. We say that two ensembles $X_n$ and $Y_n$ are statistically close, if $$ \Delta(n) = 1/2 \sum_{\alpha}|\mathbb{P}[X_n = \alpha] - \mathbb{P}[Y_n = \alpha]| $$ is negligible in n. The probability is taken...
For my networks project I have decided to implement a youtube-based secret key generator used in creating a self-synchronizing stream cipher hash function. Basically all the youtube video comments corresponding to a pseudo-random number being input to the search bar will be stored in a csv file, a file descriptor moved...
Are there any known and feasible ECDSA attacks on secp256k1 which can reduce the bit security of the algorithm? For example from 256 bits of security down to 192 bits?
I'm trying to confirm a vulnerability in a signing scheme I'm helping with. To do this I need to simulate a rogue key attack on a BLS aggregate signature using the golang bn256 library https://godoc.org/golang.org/x/crypto/bn256 This requires computing the inverse of a public key. I'm not a crypto expert but do have a ...
Statistical closeness implies computational indistinguishability was recently posed. It revolves around a numeric value $\Delta(n)$ of the statistical difference between a pair of distribution ensembles, as:- $$ \Delta(n) = 1/2 \sum_{\alpha}|\mathbb{P}[X_n = \alpha] - \mathbb{P}[Y_n = \alpha]| $$ But statistical dista...
I am developing for a low-power embedded system. It has two ARM9 processors at 48 MHz each. One of the processors has access to 6 MiB of "fast" memory as well as access to 26 MiB of "slow" memory. The other processor does not have direct access to memory, so it's going to be pretty much useless in this scenario (I keep...
S2K, specified in RFC 4880 § 3.7.1.3, is a KDF designed for the OpenPGP standard which concatenates a password and salt and feeds this, repeating, into a hash function for a configurable number of bytes. PBKDF2, specified in RFC 2898 § 5.2, is a KDF which uses a hash function in HMAC mode and iterates it a configurable...
Been playing around with the inner workings of onion routing and I have a problem. If I wanted to send the 2nd node of a relay network an ephemeral ECC public key, it has to go through node 1, so that node 2 does not know the IP of the client. Once the shared secret is calculated, an encrypted connection from the clien...
Assuming I encrypt data with AES-128 and a random 8-byte key x in the following way: ciphertext = AES_128_ECB_ENC(plaintext, x||x) So basically taking the 8 byte key twice to form the 128-bit AES key. Would it make it easier to guess x than the naive (max) $2^{64}$ tries, assuming you know a single plaintext-ciphertext...
There exists a FOX family of block ciphers (Wikipedia article: IDEA NXT). This cipher uses a function called "f32" which operates on three 32-bit words and outputs one 32-bit word. This function exhibits very high diffusion properties and builds the core of the corresponding variant of the cipher. Do there exist othe...
It is only recently that I entered cyber security field.. and one of the main foundations is nothing but Cryptography. Something which always fascinated me was the 'Chain of Trust' which is holding on crucial Mathematical theories on which robust protocols such as TLS are built. I decided to demystify this subject by g...
My understanding is that the sampling precision in Gaussian Noise sampler is related to security. But not sure about why is that? I read that when the samples are floating-point numbers and precision after the decimal point is equivalent to 72 bits that can be correlated to 128-bit security. However, certain schemes u...
I have no mathematical knowledge about this, but I just read in RFC 7748 the following: Designers using these curves should be aware that for each public key, there are several publicly computable public keys that are equivalent to it, i.e., they produce the same shared secrets. Thus using a public key as an identifi...
in case i cannot do PSK (give the same key to both sides via physical means). i saw tls1.3 still support DH (doesnt matter that it is DHE or ECDH). isnt that makes it a weak key exchange? do they rely on seperate key exchange algo.? (like PAK - x.1035)
I understand that the discrete log problem is defined as $G^y \bmod p = x$ Speaking generally, $G$ here is a generator for the group $\mathbb{Z}_p^*$, where $G$ is able to generate each element in the group for a given prime modulus. My question is, in the context of elliptic curve cryptography, is the group the entire...
I'm developing a network where two parties that want to join both compute ephemeral ECC keys for a key exchange, to create an encrypted connection. I plan to authenticate these keys by signing them with a pre-shared ECC key. However, how should these PSKs be transmitted in a secure way to prevent MITM attacks that chan...
I've been studying homomorphic encryption. From their instantiations, i read Labeled Homomorphic Encryption (labHE) scheme 1 where it combines the notion of homomorphic encryption with labeled program. Can someone please explain to me: What is a labeled program, and it's implications on crypto. Furthermore, I need to ...
I was thinking last night about whether or not a HMAC-Encrypt-HMAC would be secure if you used the same HMAC key. Here is the full recipe: Compute a HMAC on the data to encrypt, and append it to the data. Encrypt the data with AES_CTR_256. Compute another HMAC, this time on the encrypted message+HMAC combo, and append...
All practical probabilistic proof/argument systems I know of are based upon polynomial identity testing in finite fields. These constructions include QAPs, STARKs, GKR and many variants. In particular, they all rely on the Schwartz-Zippel lemma, and thus they all take place in a polynomial setting. There are constructi...
Which HMAC scheme is more secure? Or are they of the same level of security? Scheme One Compute a HMAC on the data to encrypt (cleartext/plaintext) Encrypt the data with AES_CTR_256, and append above HMAC to end of ciphertext Scheme Two Compute a HMAC on the data to encrypt (cleartext/plaintext) Encrypt the data ...
Imagine that I want to change the key in order to prevent side-channel attacks on key and to protect against big load on the one key. It is desirable that key change procedure would look like random function from key space to itself. I want to consider the function of the type: $$ F : KeySpace \to KeySpace$$ $$ F(k) =...
In some homomorphic encryption schemes (e.g Multi-key fully homomorphic encryption report, Computing Blindfolded: New Developments in Fully Homomorphic Encryption), it defines an encryption key, a decryption key, and an evaluation key to perform an evaluation f on the encrypted data. Could you please explain what is th...
I'm looking for a generalisation of Yao's millionaire problem: $N$ parties want to know whether they are the richest one. If they are not, then they just know they are not the richest party - but do not know the identity of the richest one. Ideally, in case of equality, all richest members would know they are the riche...
As I understand it, a hashing algorithm is some kind of encryption, just a specific kind of it. So is it wrong to say "I encrypted this value." if I "only" hash it? I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?
I plan to do a clean install of ArchLinux with Full Disk Encryption (with LUKS) but I'm not sure to understand the default KDF choice (PBKDF2+SHA-256). I didn't manage to find any pieces of evidence that make PBKDF2 more recommendable than Argon2id. Can someone explain to me ? In the cryptsetup FAQ, the maintainer says...
Let PKE $\Pi' = (Gen', Enc', Dec')$ and it is secure in the sense of $S'$. Let PKE $\Pi'' = (Gen'', Enc'', Dec'')$ and it is secure in the sense of $S''$. $S'$ and $S''$ may be separation which means that $S' \not\Rightarrow S''$ and $S'' \not\Rightarrow S'$. For example, $S' = \text{IND-CCA}, S'' = \text{NM-CPA}$ or $...
I am using Argon2 to convert an ECDH exchange result into the correct format for AES-256 encryption. However the library that I am using for Argon2 requires a salt. Are there any weaknesses of using a static, hard-coded salt for the Argon2 key format conversion?
So my question is as follows: We know that we can prove in zero-knowledge equality of discrete logs, for example to prove equality of committed values we can prove in ZK for $g^xh^y$ and $g^{x'}h^{y'}$ that $x = x'$ using a Sigma protocol. Is there a way to prove equality when one committed value is the output of a has...
Design, Analysis and Application of Embedded Resistive RAM-based Strong Arbiter PUF Can anyone explain the Global column and Local Column and the fig.5(a) and how MUX logic is related to fig. 5(a) and how the formula for the configurable stage in Table 2 is related to fig.6.
I am reverse engineering the firmware of a particular router/modem. I am focusing on the functionality to export the router configuration. I an searching for a way to decrypt the configuration backup file. I have the source code of the open source parts of the firmware and the binaries of the closed source parts for an...
Let's say we have a point on an elliptic curve $p=(x, y)$ which is not the point-at-infinity. Can there be some other point $\hat{p} = (\hat{x}, y)$ that is also on the curve and that has the same y-coordinate, but a different x-coordinate (i.e. $x \neq \hat{x}$)? Clearly, if the elliptic curve is over the real numbers...
The ATmega2560 is slow - it's a single core, 16MHz 8-bit AVR. Despite that, I need to use some encryption on it, and since it is limited to a few blocks, AES-256 can be used. However, the key derivation is a problem. A computer can easily do a PBKDF2-HMAC-SHA256 with a million iterations in less than a few seconds. The...
I know that modern wpa2 wifis use AES key to encrypt data. a client who has the password, can obtain psk/pmk use it for handshaking . so what is the purpose of ptk, and how AES key is generated?
I've read/skimmed a few documents about the AES family of encryption, but haven't seen anything about what exactly it protects against. There are many ways to "encrypt" things, and not all of them provide the same set of guarantees. For example: Can an attacker, knowing the plaintext, alter the ciphertext in a way s...
I have a "Encrypt-then-Mac" C# implementation of "AE_AES_256_CBC_HMAC_SHA_512" WITHOUT associated data, only authentication. In my code, I follow these steps to encrypt strings: Generate a crypt random salt of 32 bytes using RNGCryptoServiceProvider; Generate an auth random salt of 32 bytes using RNGCryptoServiceProvi...
I'm studying the CL (Camenisch-Lysyanskaya) signature: Jan Camenisch and Anna Lysyanskaya, A signature scheme with efficient protocol, in proceedings of SCN 2002. However, I cannot understand the relationship between special RSA modulus and quadratic residue. What is the relationship between Special RSA modulus and qu...
I am a newbie to crypto and just one quick question on the s-box and p-box of DES. I understood that the s-box is where the security comes from and NSA has somehow decided how it should be filled in. But my question is that, can we really change the content of the s-box or p-box? Would that break the security somehow?...
This question is related to my other question, but also this entropy calculation question as well as this article about PBKDF2. It may also be considered as a duplicate of this question, although in our current case the password's entropy isn't as high. If a low iteration count is used, it can allow for fast brute-...
Does anyone know of any VDF, that can be calculated by someone holding some private key in t sequential steps and is quickly verifiable in exponentially reduced step by anyone using some public key and the proof that does not leak the key ? Like opposite of RSA timelock question. A link to some paper would help. can so...
For example, given $E(m_1)$ and $E(m_2)$ to the cloud. How does it calculate $E(m{_1}^{m_2})$? Is it related to the claim that any computable function can be represented as a circuit containing or xor (additive) and and (multiplicative) gates? If so, what's the approach?
Note: I realize in ChaCha20 the nonce should be random and unique each time follow certain constraints but am trying to determine whether there could be a safe way to use it just once if other constraints were in place as follows: Could the nonce be entirely deterministic and derived from the key so long as the key is ...
From this link Generation of a cyclic group of prime order we know how to generate a prime order group. This illustrates why a prime order group is important. But why is modulus a prime number also important? In the theory of RSA, the modulus $N=pq$, and $\operatorname{totient}(N)=(p-1)(q-1)$, if we can find a factor...
Which version of ChaCha is more secure? XChaCha20-Poly1305-IETF ChaCha20-IETF-Poly1305 ChaCha20-Poly1305 I am looking for 256bit strength for large datasets. I am having trouble disambiguating the delta between these ciphers available in libSodium.
Assuming that I am able to read the plaintext as well as the output of round 1 of an AES-128 encryption: Is it possible (if yes: how?) to obtain the RoundKey with a lower complexity than brute-force search? Would this key be unique? (I currently think so)? The output of round 1 is: r1out = MIX(SHIFT(SUB(plaintext xor r...
Most MACs other than GMAC (and Poly1305?) are not parallelizable. Examples include CMAC and HMAC. Could these be securely parallelized by computing multiple MACs in parallel and then combining the result? This is sort of academic, just curious though. Let's say you have a message being that you split into four parts su...
In AES, the encryption and decryption functions ordered in a symmetric way, I mean the same order of functions are used inside the round structure of both encryption and decryption (subbytes, shiftrows, mixcolumn, addroundkey) (see The Design of Rijndael List 3.8 page 49) but how does it actually make the algorithm bet...
I've just been looking into RSA encryption with C++ and am wanting to make a program that can en/decrypt files of my own custom file extension. Obviously I need to choose two primes numbers (for my p and q values) to encrypt and decrypt this file, but I am curious as to how I could stop these values being pulled out of...
Searchable encryption can be separated into sequential scan and indexing. Besides increasing search speed, why do we use indexing in searchable encryption? As an end-user, we do not usually make a keyword list of our document. So, if we don't build an index for our document, is there a method to do searchable encryptio...
In this answer, it is mentioned that Easier instantiation of random oracles. Some security proofs rely on the so-called random oracle model to prove the security of a given scheme. Normally you'd use some artificial construction around a fixed-size hash function to get the desired output size, but with XOFs you can j...
Is there a gap between classical attacks and quantum attacks against some post-quantum security assumptions? (I'm particularly interested in asymmetric cryptography.) I understand that there is no polynomial-time algorithm against these problems (otherwise it will no longer be considered as a PQ security assumption). B...
In wikipedia on Digital_signature: but rather, the message to be signed is first hashed to produce a short digest, that is then padded to larger width comparable to N, then signed with the reverse trapdoor function I could not find the term reverse trapdoor function neither by web search not here on SE, what does...
I am looking for a proof of knowledge as such: $PK\{ (x,r) : C = g^xh^r \land V = g^x\}$ Where $C, V, g$ and $h$ are public information and $x$ and $r$ is known only to the prover. I.e. I have a Pedersen commit and a public key and I want to prove in zero knowledge that the committed value is the private key. Is there ...
The precomp.c file in Kyber NIST round 1 submission has three tables, could you please let me know how to generate these three tables? If I want to understand how these tables work, which paper should I read? The code with the constants in the tables follows below: /* Precomputed constants for the forward NTT and inver...
In a recent press release issued by Treadwell Stanton DuPont, the claim is made that their research laboratories have successfully broken all 64 rounds of the SHA256 hashing algorithm. They further claim that they achieved this milestone a year ago (late 2018). "While we have successfully broken all 64 rounds of pre-i...
I am currently trying to create a secure key exchange between two parties. I have a good implementation of PGP that works well for my app, but my DH is really slow and doesn't work well; so I was thinking that maybe I could perform the key exchange with PGP. My idea is this: Party 1 -> public key -> Party 2 Party 2 -...
I have three nodes in a network: $\mathcal{S}$,$\mathcal{T}$,$\mathcal{R}$. $\mathcal{S}$ supplies data $x$ to $\mathcal{T}$. $x$ is signed so $\mathcal{T}$ knows it actually comes from $\mathcal{S}$. $\mathcal{T}$ computes $f(x)=y$ and sends $y$ to $\mathcal{R}$. $\mathcal{R}$ uses the result $y$ in some computation....
There are a number of pages on web to tell how to sign apk file for Android. But none I've found telling how it works under-the-hood. The (e.g from here https://github.com/appium/sign) command is java -jar SignApk.jar testkey.x509.pem testkey.pk8 my.apk my.s.apk and it has two files with keys - .pem (certificate) and ....
After reading many posts, I am still confused about the differences between these two. Let me know if my understanding is correct: MAC is encrypted string that is generated using a secret key and a message, and it's used to check no-repudiation. HMAC is a MAC that is generated using a hash function and it's used to the...