instruction stringlengths 32 27.2k |
|---|
I've been studying many papers on differential cryptanalysis and I see that in the published differential characteristics, such as in the appendices of [1], [2] and [3], some differences are left "unspecified" (usually denoted by ** or -).
Why are these differences left unspecified? Since the differentials pass through... |
My custom web server software uses a 'server identity' which is a public/private bitcoin keypair. It's for extremely limited resource environments ie..IOT, which is why I don't use a common stack with OAuth etc..
I use the private key to sign certain messages I send to the app clients, so they can verify authenticity. ... |
I am trying to understand AES-GCM and I do not understand what I should transmit to Auth Data during encryption. What kind of data is that?
|
So, I'm kinda newbie in this cryptography stuff, I just like to understand complex things.A couple of months ago I was learning and I maybe found a pattern in prime numbers and their multiplications, lets check out.
So, it's high demanding to multiplicate random prime numbers, correct? I thought this: Instead of multip... |
We're working on web3.0 decentralized internet, a big part of which is a decentralized file storage system where clients upload files to storage providers and pay them for the services. Storage providers return signed messages, with the content hashes included, as guarantees, such that if they lose the file and fail to... |
I'm very new to cryptography, I wanted to know what exactly do I have to do to encrypt a three-letter message using RSA? for example if I wanted to encrypt this message $M= \text{HCP}, p=11 q=13$.
Do I have to change the letters into numbers? ($H = 7, C=2, P=15$) and then encrypt each letter alone? or add/multiply them... |
I was reading a paper on attacks on RSA variants, and the paper equates $\phi(N) = (p^2-1)(q^2-1)$. Before, I have always seen $\phi(N) = (p-1)(q-1)$ and don't understand why it is different here.
I have added a screenshot of one part where they mention this below. Thanks :)
|
I'm currently developing a AES implementation in a graduation project at university.
As far as I know, AES uses a 128 bit block length as input .
if the entered string to encrypt is not 128 bits such as 32 bits .
what should be done for data that is less than 128 bits ? What's the best solution ?
|
With a key $k$ of sufficient length, say 128 bits, is it possible to use $k^{th}$ multiple of $\pi$ as a one-time pad?
Please enlighten on the security as well as practical aspects (only if secure of course).
|
Consider the exponential ElGamal cryptosystem over some group $G$ with generator $g$. Let $m$ be a plaintext, and $(R, C) = (g^r, g^m \cdot y^r)$ an encryption thereof for some public key $y$.
Assume a prover $P$ wants to prove knowledge of $m$ to a verifier $V$.
To me, the $C$ of the ciphertext looks a fair bit like a... |
Let's say there's a decentralized email service where parties' public keys are known. A sender sends a message to a recipient by encrypting via RSA with the recipient's public key and posting the ciphertext publicly somewhere where everybody can see, e.g. a public blockchain.
Senders don't want others to know which add... |
As a theorist, I often motivate the need for strong cryptography via simplistic methods, such as "If this did not exist, your online bank transactions would be vulnerable". This is of course true if "this did not exist" means that we are in Minicrypt (or some weaker "world"), but I also sometimes use this to motivate s... |
Statistical: $|\Pr[E_K(m_0)\in T]-\Pr[E_K(m_1)\in T]|\leq\epsilon$
Computational: $|\Pr[A(E_K(m_0))=1]-\Pr[A(E_K(m_1))=1]|\leq\epsilon(n)$
What is the $1$ doing there? Why isn't it $Pr[A(E_K(m_0))\in T]$? Is there something deep behind these different notations? or is it simply a convention of the PPT $A$ having a bool... |
I'm trying to implement public key encryption that support key pairs generated by different libraries:
Curve25519 - libsodium cryptoBoxKeypair()
Ed25519 - Google Tink Ed25519Sign.KeyPair.newKeyPair()
sr25519 - Polkadot Schnorrkel over Ristretto
I'm using libsodium cryptoBoxSealOpenEasy() for encryption that is works,... |
I have all but the last round key in AES-256 CBC decryption, and would like to build the master key, but I am unsure how to go about it.
I have read I can convert decryption roundkeys to encryption roundkeys via forward MixColumns. Then perhaps xor key n-3, n-2 to get n-1 (one i need). Does S-box substitution come into... |
Related question here.
I'm reading RFC 8291, which describes a protocol to protect web push messages sent between an application server and a user agent (typically a mobile browser or other mobile application), using an untrusted "push service" (think APNS or FCM) as an intermediary. The constraints appear to be as fol... |
Consider the following (simplification of a) PAKE protocol: Alice and Bob start with a pre-agreed password pw. To establish a new session key $k$, first Alice samples a random nonce $r$ and sends it to Bob. Bob samples a nonce $r'$ and sends it to Alice. The session key is $k = \mathcal{O}(pw,r,r')$, where $\mathcal{O}... |
I am trying to handle when a parsers goes off the rails and reads an EC public keys wrong (just the X and Y components, I know the curve prior).
Right now I check for the following (false means invalid):
Is the key even on the Curve?
Is the Public Key X component less than the Curve's Base Point X?
I am pretty confid... |
I know that Bob can calculate the shared DH key without knowing the private key. If he sends to Alice a public key = 1, then the the DH key would be 1.
Can i achieve something like this in ECDH? where Bob can calculate the shared key without knowing the private key?
|
(G, E, D) is a computationally secure encryption scheme over the message space $\{0,1\}^n$. Show that the probability that a PPT adversary can recover the key after seeing the encryption of a random (uniform distribution) message is negligible.
I want to show that if the attacker A has the ability to recover the key w... |
I was trying to work out the security of an system that used the polarized LCD panel over an OLED display (the point being that you can only block certain pixels) and the pixels are either on or off (white or bleck). When the device is enabled someone a random key (lets aim for the best, one time pad quality) is genera... |
This is a multidisciplinary question, hopefully I can stay on topic.
It has been published that we can now use (try?) fully homomorphic encryption computation on cipher text inputs. But I'd like to ask how practical it is to use this technology.
So here's a specific question.
If Alice has a one megabyte text file (like... |
Given a big number $x$(1024 bits) and a large prime $N$($N>x$), I want to encrypt it with a smaller number $y$(128 bits).
$$Enc(x) = xy \mod{N}.$$
Is it safe? If not, how do I evaluate its leakage?
|
the encrypt code is "ARJHNRIUCGQHPFGQFHTXPDEHTLNOC", and the part that i know of the plaintext is "DERUNA".
The key is period of 2, so the key are 2 letters. Each letter of the code would specify in turn the magnitude of the cyclical shift.
How i can find the key? And how I can break the cipher?
I have to create a pro... |
Consider the elliptic curve $E_1: y^2 = x^3+7$ over $\mathbb F_{17}$ with the base point $G=(15, 13)$
and the second elliptic curve $E_2: y^2 = x^3+7$ over $\mathbb F_{31}$ with the same base point $G=(15, 13)$.
My question is: is there any way to calculate the equivalent point of $\mathbb F_{31}$ based on $\mathbb F_... |
Let's start by saying I'm no cryptography expert, I'm just a developer, so feel free to correct me (using words, not downvotes) if what I'm saying is non-sense.
Context: I'm doing some crypto as a service for embedded devices. Users of this service don't have access to any key. They're only able to tell the device "use... |
How can we prove mathematically that in Paillier cryptosystem decryption, our message is equal to the right side of
$$M=L(c^{\lambda(n)}\bmod n^2)\,\mu\bmod n$$
|
As I understand it, the salt is used to ensure that a hash of two of the same strings results in a different hash.
The salt is often stored with the hash, either prepended or as a separate field.
As this just needs to be "different" for every input, would using something like:
DateCreated.ToString("yyyyMMddHHmmssffffff... |
I want to be able to encrypt some data like JohnSmith@domain.com|1234|A in a form that I can send to a user as a clickable link like:
https://example.com/click/this/NiUGgvamNOVmI1SzlTN0ZIRlQ0WklCazI3LzRxY09RVFRjOTByZ1o1OFJyT0lUeWd3PQ2....
Then the user clicks the link and when I receive the token, I can decrypt it and... |
Another potentially silly question here, but I seem to have developed tunnel vision and I am missing something very basic.
In RFC 8032 one can find a number of test vectors for Ed488 - for example:
SECRET KEY:
c4eab05d357007c632f3dbb48489924d
552b08fe0c353a0d4a1f00acda2c463a
fbea67c5e8d2877c5e3bc397a659949e
... |
I'm studying the performance of post-quantum KEM in TLS with the OQS (OQS is a project that integrate liboqs to openssl).
I don't know why, but the KEM algorithms performance in TLS is 10 times slower than using the openssl speed command.
For example, Kyber512 takes more or less 2.20 ms to perform the key generation in... |
I am currently trying to solve the following problem (2.18) from the book "Introduction to Modern Cryptography (3rd edition)" by Katz and Lindell:
Let $\epsilon > 0$ be a constant. Say an encryption scheme is $\epsilon$-perfectly secret if for every adversary $A$ it holds that $Pr[PrivK^{eav}_{A,\Pi}] \leq 1/2 + \epsil... |
Recently reading about CPA, CCA safety security proof.
After reading a few papers, the author is in the process of proof. The challenger maintains some lists. I really don’t understand why the challenger wants to maintain some lists, and some of the following steps need to check the list, and some do not need to check?... |
I am by no means an expert in the PQC field and am just trying to self teach myself about it. I was hoping to look into error correcting in lattice. I want learn about error or fault detection as it applies to lattice, but I am unable to find many resources.
Does something like CRC apply to a lattice? Or are there latt... |
Are there any hard problems related to matrix factorization?
Suppose $E$ is hermitian with public eigenvectors such that $U^T\Lambda U = E$ with $U$ public but $E,\Lambda$ secret. Given $X$ secret, we would "encrypt" it as $EX = U^T\Lambda UX$ can you create instances such that $f(U,EX) \rightarrow X$ is not polynomial... |
I'm trying to implement X3DH (extended triple Diffie-Hellman) in a network of mine.
The way I understand it, a bundle (IPKb,SPKb,OTKb) is retrieved by Alice from Bob, through the server, and
using her own public keys IPKa and EPKa she calculates:
DH(IPKa,SPKb)
and some others.
What I do not understand is: what are thes... |
Let $\rho_s(x) = e^{-\pi x^2/s^2}$ be the Gaussian measures, then the discrete Gaussian distribution on $\mathbb{Z}$ could be defined as $D_{\mathbb{Z},s}(x) = \rho_s(x)/\sum_{n\in \mathbb{Z}}\rho_s(n)$.
In [Regev05], the distribution $\Psi_s(r)$ on torus $\mathbb{T}=\mathbb{R}/\mathbb{Z}$ is defined :
$$\Psi_s(r)=\sum... |
Consider a biased RNG badrand() generating 1 with probability $0.9$ and 0 with probability $0.1$.
This excellent answer explains that we need 849 bits of badrand() to generate 1 bit of betterrand() with less bias than the NIST recommended $2^{-64}$.
The minimum entropy per bit of badrand() is 0.152 bits/bit.
Considerin... |
I want to teach some people about crypto basics, and one of the topic will be key exchange with a public and private keys.
The audience is made of people working in InfoSec, but mostly junior fresh out of school.
I am looking for a visual/experimental way to show how we can achieve key exchange with both parties having... |
I'm having trouble understanding the role of probability distributions in the definitions of computational/statistical indistinguishability, especially in the definition of zero-knowledge.
From A Perfect Zero-Knowledge Proof for a Problem Equivalent to Discrete Logarithm:
An interactive proof is called perfect zero-kn... |
Recently I have been reading this paper by Dan Boneh et al., where the authors are going to use a general form of forking lemma, to prove the security of their Schnorr multi-signature.
As I understood, this general form of forking lemma is about having several crucial points, rather than a single point (by crucial I m... |
In How To Prove Yourself: Practical Solutions to Identification and Signature Problems, Fiat and Shamir introduce a zero-knowledge identification scheme where
The prover sends a commitment to the verifier
The verifier sends a challenge to the prover (in shape of random coin tosses)
The prover sends a response to the v... |
Let's suppose I want to encrypt my disk partition with AES-256 in CTR mode 2 times using two different keys and IVs.
Will I get 512 bits of encryption strength?
|
Seedless Fruit is the Sweetest: Random Number Generation, Revisited introduces a theoretical framework for "seedless" RNGs.
AFAICT, this framework injects entropy directly into the underlying cryptographic primitive instead of treating the entropy collection/estimation and randomness extraction as two separate phases. ... |
Let
$F:\{0,1\}^n \times \{0,1\}^n \rightarrow \{0,1\}^n$ be a secure PRF (i.e. a PRF where the key space, input space, and output space are all $\{0,1\}^n$) and say $n=128$.
My assignment is to show that the function
$F'(k,x) = F(k,x)$ when $x \ne 0^n$ and $F'(k,x)=k$ when $x=0^n$ is
not a secure PRF, but the function ... |
I'm looking for Schnorr groups allowing fast modular reduction. Say, using the notation in DSA, with 256-bit prime $q$ and 3072-bit prime $p$, and $p\equiv1\pmod q$.
Are there standards, RFC, or other references about this?
I'm considering choosing $p$ with all bits at $1$, except for a relatively short segment not too... |
I am playing around with the idea of modelling clustered data storage as a series of AEAD messages. XChaCha20-Poly1305 has nice properties for my intended design, as the ability to use random IVs decouples constructing AEAD messages from the state of the storage cluster. However FIPS compliant primitives would be a bus... |
Notation: eps_c (epsilon central), eps_l (epsilon local), n (number of users), d (number of attributes). A single attribute A_i may have |A_i|=r different values for i in [1,d].
Let's suppose each user holds d discrete attributes (e.g., A_1 = Gender with 2 values, A_2 = Age ranges with r_2 values, ..., A_d = Hours onli... |
I've to prove that RSA still works with a public key $(e,pq)$ where p is a prime and q is a Carmichael number such that $q<p$ and $\gcd(e,(p-1)(q-1))=1$
I know how RSA works wiht $p,q$ primes but when $q$ is not a prime how can I prove that
$$M^{(p-1)(q-1)n}\equiv 1 \mod{pq}$$
with $n$ integer and $\gcd (M,pq)=1$.
|
I'm working on a C implementation of the FF1 and FF3-1 format-preserving encryption algorithms, here.
For FF1, NIST provides test vectors, here; however, none of the test vectors is crafted such that d is ever greater than 8, such that Step 6iii is never executed in the code. Does anyone know of any test vectors that e... |
Silly question – is it possible to find out size of original file from encrypted file? Encrypted with aes-128-cbc.
Looks like there is no way to calculate it. As far as I understand ,all original files with length between let’s say 33 and 47 will have length 48 bytes after aes-128-cbc encryption (should be rounded to ... |
This may seem like a strange question. Lets say I have $g^x \bmod p$ and $g^{xy} \bmod p$. How can I efficiently obtain $g^y \bmod p$? I assume I must use modular inverse but I don't know where.
|
Paillier has additive homomorphic property that states:
if two ciphers c1 and c2, are multiplied, and the result is decrypted, it is equal to addition of the two plaintexts.
D(c1*c2)= m1+m2
Paillier also allows two ciphers to be added. If the addition result is decrypted, we get the addition of the two plaintexts a... |
We all know that HMAC has the form of $H(ikey || H(okey || M))$. I'm wondering what if we replace the H(okey || M) into H(okey) $\oplus$ H(M)? In other words, is $$H\Big( ikey \mathbin\| \big( H(okey) \oplus H(M)\big)\Big)$$ also as secure as HMAC? How does this transformation will affect the security of MAC?
I have le... |
Is the elliptic curve scalar multiplication $[n]G$ defined if $n=0$?
I saw multiple software implementations with multiple results such that, $[0]G=0$ or $[0]G=G$.
This made me wonder, how can i compute $[0]G$ on 25519 curve, where G is the base point. $G=(9,1478161944758954479102059356840998688726460613461647528896488... |
The mathematical problems used for Post-Quantum Cryptography problems I came across, are NP-complete, e.g.
Solving quadratic equations over finite fields
short lattice vectors and close lattice vectors
bounded distance decoding over finite fields
At least the general version of these is NP-complete
I am asking myself... |
I'm a graduate student that just finished a first course on quantum computation. I've also done a graduate-level course in (classical) cryptography.
I'm interested in Quantum Cryptography and would like to know what people would consider the most important papers for me to read if I want to get an intro to QC, for some... |
What is the meaning of a "trusted setup" in this context? It is often said all around that zk-STARKs and Bulletproofs does not require a trusted setup. How do zk-STARKs and Bulletproofs manage to avoid the need for a trusted setup?
|
I've read all other related answers and googled this extensively. My intention and background in asking this question is that I am delving into cryptocurrency and blockchain technology in general. There is considerable misinformation out there regarding Byzantine Fault Tolerance (BFT) and it's relationship to cryptocur... |
I was just reviewing the source-code of the NBitcoin-package. As far as i can see when you create a new bitcoin-keypair
Key privateKey = new Key();
(without passing some random data to be used as private key generated by yourself) then the library generates a private key using a random-number-generator for you. Very us... |
I have a question regarding the proof that RSA works
I understand that $m^{(ed \bmod z)} \bmod n = m \bmod n$ , but I don't understand why $m \bmod n = m$
(This question assumes m is the message, $z=(p-1)(q-1)$, $d$ is such that $(ed \bmod z) = 1$, and $e$ is such that $e$ is relatively prime with $z$)
|
I am trying to evaluate the effective security levels that a digital signature scheme (namely post-quantum digital schemes like WOT-S (Winternitz one time signature scheme) and Dilithium Crystals). How should I do that for a particular message?
For WOT-S I am using the standard python library For Dilithium I am using L... |
Let protocol A and protocol B be HVZK proof systems. If we construct a protocol C composed of protocol A and protocol B, will it be HVZK as well? Is there some formal proof in the literature regarding this?
|
My question is about commitment schemes for arbitrarily large integers. One scheme I know uses groups of unknown order (RSA or class group) and depends on the strong-RSA assumption.
You chose a random element $g$ in a group $\mathbb{G}$ of unknown order and define the commitment $Com(n):= g^n$ for any integer $n$. You ... |
I have been trying to implement my own SHA3 256 function in python to try and learn and understand how it works. I have been comparing my hashes with an online sha3 tool found here https://emn178.github.io/online-tools/sha3_256.html and the test files on the NIST website found here https://csrc.nist.gov/projects/crypto... |
SHA-512 cannot be really run on a 32-bit ARM microcontroller since it uses the 64-bit constants, but since SHAKE-256 uses only 32-bit values, can it be run on a microcontroller with 32-bit registers?
|
I want to compare two digital signature schemes of different nature. One is Hash-based (Winternitz one time signature scheme) and the other is lattice-based (Dilithium Crystals). What about be an academically accepted way to compare their latency and security?
|
In Lindell's tutorial "How to simulate it" [2016/046], section 4.3, he gives a semi-honest protocol for oblivious transfer, based on enhanced trapdoor permutations and a corresponding hard-core predicate. I don't understand some details in the proof and hope somebody can explain it to me.
He gives the following definit... |
Let's suppose I encrypt something with a stream cipher (CSPRNG) two times using two 256-bit keys and different IVs.
Will I get 512-bit encryption strength?
|
This is the paper - https://wstein.org/edu/2010/414/projects/novotney.pdf
In Section 2.1
I see 2 chunks of code/commands in SageMath
sage: #Group Order Compare SLOW
sage: m = 21345332
sage: p = 4516284508517
sage: E = EllipticCurve(GF(p), [7,1])
sage: Q = E.gens()[0]
sage: mQ = m*Q;
sage: print E.order().factor()
sage:... |
https://iopscience.iop.org/article/10.1088/1742-6596/978/1/012116/pdf
Each operation performs a nonlinear function on three of a, b, c,and d.
F(X,Y,Z) = XY v not(X) Z
G(X,Y,Z) = XZ v Y not(Z)
H(X,Y,Z) = X xor Y xor Z
I(X,Y,Z) = Y xor (X v not(Z))
So MD5 Algorithm is nonlinear?
|
In this paper, Coppersmith and Shamir used lattice reduction to attack NTRU. At the very end of the paper, they note that developing non-commutative variants of NTRU would be wise, in light of their attack, and indeed numerous such variants have been developed (e.g. here, here, and here). Moreover, the authors of such ... |
There are not many successful companies in cryptographic primitives market. Certicom holds many patents attached to the ECC. RSA Security probably made some profits from the patent. Are there more examples?
Why do people, scientists not try to commercialize their achievements, despite the fact that they could do so, es... |
I have seen this question on MD5 replacement for 128 bit digests. It is said numerous times that having a 128 bit digest is impossible today because finding a collision would only require $2^{64}$ operations, which is in the means of big organisations nowadays. However, I think that these answers miss a fairly importan... |
Shor's algorithm shows how a quantum computer (with sufficiently many qubits) can solve the factorization problem efficiently. Also the discrete logarithm problem can be solved efficiently with such a quantum computer.
Both boil down into finding the period of a certain function.
Can quantum computer find the period of... |
I have been taking a look at ETSI TS 133 501 V16.3.0 to see how exactly does a User Equipment actually authenticates itself to the Home Network.
This is supposed to be done during the AKA procedure, but when I look at it, the HN is able to retrieve the SUPI from the SUCI without the UE having sent its ephemeral public ... |
I have been looking into error-correcting codes in lattice, I am specifically hoping to find some information on hardware implementations for the NIST PQ PKE/KEM finalists (Saber, CRYSTALS-Kyber, NTRU).
I was reading this article on Timing Attacks on Error Correcting Codes in Post-Quantum Schemes and it mentions:
Kybe... |
Suppose Alice and Bob are engaged in the graph 3-colorability Zero-knowledge protocol in which Alice permutes a coloring $\varphi:V\rightarrow \{1,2,3\}$ for a graph $G(V,E)$, and then sends a commitment of each vertex $v$, $\{\pi(\varphi(v))\}_k$ to Bob. Bob then randomly selects an edge of this graph to which Alice ... |
We all know that simple repeated XOR cipher over plaintext is trivially vulnerable to known plaintext attack, even when just a part of plain text is known and even to ciphertext only attack if you know the underlying message structure. But what if the plaintext is random/pseudo random. My reasoning is it should be secu... |
It is well known that one can construct a simple commitment scheme in the random oracle model (ROM) by setting
$\mathsf{Commit}(m;r) = H(r||m)$, where $m \in \{0,1\}^k$, $r \in \{0,1\}^{2k}$ and $H: \{0,1\}^* \to \{0,1\}^k$ is modelled as a Random Oracle.
My question is: How can I formally prove that this scheme is sta... |
I am looking for an encryption scheme $E$ and a commitment scheme $C$ which allow
encrypting the message $m$ for the public key $y$ as $e = E_y(m)$, so that the ciphertext $e$ does not reveal any information about the recipient public key $y$
committing to $y$ and $m$ as $c_y = C(y)$ and $c_m = C(m)$,
to prove that th... |
Scott Aaronson likes to motivate the factoring-to-period-finding algorithm used inside Shor's algorithm as follows.
Now, I want you to step back and think about what this means. It means that, if we can find the period of the sequence
$$x \bmod N,\quad x^2 \bmod N, \quad x^3 \bmod N, \quad x^4 \bmod N, \quad \dots $$
... |
Let $G$ be a group of prime order $p$ and generator $g$.
Let $msk_i = (x_i, y_i) \in Z_p^2$ be two master secret keys and $mpk_i = (g^{x_i}, g^{y_i})$ the corresponding master public keys, $i \in [0, 1]$.
Let $dpk = g^{x_i} \cdot g^{H(y_i)} \in Z_p, i \in [0, 1]$ and $H$ is a hash function, be a derived public key from... |
I have a power constrained environment where I do not have enough power to update an encryption key. For this reason, the symmetric key will be programmed before the devices are distributed, and this key is used to encrypt a payload. I have two different things that I could possibly change, one is a nonce, and the ot... |
In RFC6979, on page 14, Section 3.6 "Variants":
o. Additional data may be added to the input of HMAC, concatenated
after bits2octets(H(m)):
K = HMAC_K(V || 0x00 || int2octets(x) || bits2octets(h1) || k')
However, in the terminology of SP800-90Ar1, k' is the "additional
input" that can be set as a parameter when ... |
One can note that, given an elliptic curve mod $p$, that the set of points together with the usual addition law gives a finite Abelian group.
Now by the fundamental theorem of finite abelian groups, $$E\cong\mathbb{Z}/p_1^{a_1}\mathbb{Z}\otimes\dots\otimes\mathbb{Z}/p_k^{a_k}\mathbb{Z},$$ where $$E=\{(x,y)\in\mathbb{Z}... |
I’d like some feedback on an encrypting algorithm. I’m not rolling my own, but even putting together well-proved pieces may create many pitfalls. (I don’t know if I'm stretching questioning in this forum. I'm after concrete feedback on concrete, potential pitfalls.)
The purpose:
Cold storage of encrypted cryptocurrenc... |
Is there a simple example of a cryptographic protocol that is secure when used on its own (with only one instance active at a time) but becomes insecure in a concurrent setting, i.e., a failure of parallel composition? (Ideally, one that doesn't require understanding zero-knowledge proofs or multiparty secure computat... |
Let's say that I'm selling a product, and I want to get authentic feedback from my customers. However, I have the following two constraints:
My customers must be able to give [at least some of] their feedback anonymously (and, due to practical constraints and legal reasons, it is impossible for I and many customers to... |
Would hashing a ciphertext (so $H(Enc(pk,m))$) compromise it in any way if both schemes are secure by themselves? This doesn't seem to be the case but I couldn't find a definitive answer.
|
My company has a requirement to allow a partner vendor to log people into our web app via some kind of single sign on. We need this to be a simple process for them, not involving the use of substantial new middleware or learning curve.
We can pre-exchange any secrets that we need, as well as a database of their users, ... |
$Setup$:
Let's assume a quorum of $n$ nodes where each have a secret share $y_i$ from a know and safe leaderless DKG protocol.
Define $\mathcal{L}^i(y_i) = y$ as the lagrange interpolation for $x=0$, giving $y$ as the secret that can only be known from at least $f + 1$ shares.
Define $y \times G = Y$ as the public key... |
Is the solution to a discrete logarithm a reasonable commitment scheme?
By my analysis, the following scheme is a reasonable commitment scheme:
Let $p$ and $q$ be large primes such that $q∣(p−1)$, let $g$ be a generator of the order-$q$ subgroup of $Z^*_P$. Let $m$ be a value from $Z_q$, and $c=g^m\text{ mod }p$. The c... |
In https://safecurves.cr.yp.to/rho.html Bernstein talks about fastest possible rho method that uses "batched affine" additions and requires only 5 multiplications mod p, 1 squaring mod p and some small "extra" work that is negligible. Affine means conventional (X,Y) coordinates, no projective coordinates. How is it pos... |
I'm supposed to use the following information to solve the question, but I don't know how.
$$\begin{align}
19^2 &\equiv 2^3 \times 3^1 \times 5^0 \times 7^0&\pmod{337}\\
19^5 &\equiv 2^5 \times 3^0 \times 5^1 \times 7^0&\pmod{337}\\
19^6 &\equiv 2^0 \times 3^0 \times 5^0 \times 7^1&\pmod{337}\\
19^8 &\equiv 2^3 \times ... |
If we used Cipher.getInstance("AES/CBC/NoPadding"), will it be vulnerable to padding oracle attacks?
|
Given that A wants to send a message M to B,
I have 2 scenarios as shown:
The difference between the 2 is that for case 1, the digital signature is appended to the message before being encrypted using the symmetric key. For case 2, the digital signature is not encrypted using the symmetric key.
May I know which case i... |
I want to use PBKDF2 with 1,000,000 iterations (I don't know yet exactly how many I will choose) to derive a 256-bit symmetric key K from a password provided by a user (at least 40 bits of entropy). Then I would like to have a proof that the user has/knows the key K. The key will be hashed once with a SHA256 function a... |
In Safety of a private key when knowing the full content of an encrypted message in case of fixed initialization vector, an answer says
using a fixed IV is bad practice since it allows statistical analysis attacks (read about it here). While K may not be leaked, M might leak from statistical patterns.
In my situation... |
Context: Designing a TinyUrl system. The user inputs a lengthy URL and the system computes the hash and encodes it binary64 and sends it back to the user.
From what I understood so far (from this forum and also from Wikipedia) that SHA-2 algorithms are not collision-free. If these functions are indeed not collision-fre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.