instruction stringlengths 32 27.2k |
|---|
Say there are 2 sides that wish to communicate: side A and side B. Let's say we are looking at side A sending messages.
When establishing connection in SSL protocol, does the protocol always require that the message is first encrypted using side A's private key (so side B knows that only A could have encrypted it) and ... |
I'm trying to figure out how long the modulus $n$ has to be in the Rabin Signature scheme, to provide 128 bit security.
We assume that the used hash function is "secure enough". Then the naive approach would be the following:
Since forging a signature is prooven to be as hard as factorization of $n$, the security leve... |
Here's a quote from Douglas Stinson:
“[i]f a cryptosystem can be ‘broken’ in some specific way, then it
would be possible to efficiently solve some well-studied problem that
is thought to be difficult. For example, it may be possible to prove a
statement of the type “a given cryptosystem is secure if a given
i... |
Here's a quote from Douglas Stinson:
“[i]f a cryptosystem can be ‘broken’ in some specific way, then it
would be possible to efficiently solve some well-studied problem that
is thought to be difficult. For example, it may be possible to prove a
statement of the type “a given cryptosystem is secure if a given
i... |
I'm reading the paper "How to Leak a Secret" (Rivest, Shamir, Tauman; 2001).
On page 8/14, in chapter 3.4, the authors present the following "combining function":
$$C_{k,v}(y_1, y_2,\ldots,y_r) = E_k(y_r \oplus E_k(y_{r−1} \oplus E_k(y_{r−2} \oplus E_k(\ldots \oplus E_k(y_1 \oplus v)\ldots)))) .$$
Is there any explanat... |
An answer explaining Dragonfly, a form of key exchange used in WPA3, has an interesting footnote:
One final note: reviewing the Firefly RFC, I see that it would (as written) leak some information if you run in on an elliptic curve that doesn't have a prime number of points (that is, has a cofactor $h \gt 1$). If you'r... |
If you are carrying a standard 52 card pack of cards (no jokers) what is the largest key size, or the amount of data the cards can hold?
Without the cards being marked or distinguishable from an identical pack, but some cards may be placed in the deck upside down.
|
I'm trying to understand how Diffie-Hellman is still secure when $A$ ends up being a power of $g$ less than $p$.
I chose $p$, where p is prime, and $g$ is a primitive root modulo $p$.
$g=2$ and $p=29$
Now considering Alice creating her $A$ where $A=2^a\mod{29}$. If she chooses $a=30$ this results in $2^{30}=4\mod{29}$... |
I read a book about one-way function. In this book, I saw 2 exercises that I can't understand and don't know how to solve. Can anyone help me to solve these?
Is $f(x,y)=x+y$ a one way function?
Is $f(x)=x^2$ a one way function?
|
I've had an idea about storing parts of SHA256 hashes and I'd like to find out how secure it is, or how much less secure it is than storing the entire hash.
For example, users can share this list of truncated hashes and each user only stores one of the entire hashes, they only need to store they're own hash, and when s... |
I'm reading the book "Serious Cryptography A Practical Introduction to Modern Encryption" from Jean-Philippe Aumasson, and in the first chapter, it is written this :
We can try to abstract out the workings of a cipher, first by identifying its two main components: a permutation and a mode of operation. A permutation i... |
Both SHA-384 and SHA-512 are limited to an input size of less than $2^{128}$ bits. Considering SHA-512 has a higher output size, couldn't it include more input data?
|
Can cryptsetup suggestion of wiping a disk before encryption with zeros written to an encryted device as described in question 2.19 as the recommended method on the CryptsetupFAQ (the part that starts with "For device set-up, do the following:" (which ends writing the encrypted random looking represantation of zeros) b... |
I'm implementing WOTS+ in a new language and I can't seem to wrap my head around the fact that WOTS+ XOR's their input with its mask right before hashing it.
I tried to look for any reasoning but so far haven't found any. In my mind I also can't seem to come up with the logic that would make this more secure. For insta... |
This is a homework assignment, so I'm not expecting full solutions, just general guidance.
Let a PRG $G:\left\{ 0,1\right\} ^{n}\to\left\{ 0,1\right\} ^{l\left(n\right)}$ (where $l\left(n\right)$ is a polynomial and
$l\left(n\right)>n$).
Is $G':x\mapsto G\left(x\|x\right)$ a PRG? (where $\|$ is the concatenation ope... |
Is it possible to prove that a given signature is a part of an aggregated BLS signature? Specifically, given:
$m_1...m_n$ are $n$ distinct messages
$p_1...p_n$ are private keys with $P_1...P_n$ being the corresponding public keys
$S_1...S_n$ are BLS signatures such that $S_i = sig(m_i, p_i)$
$A = S_1 + S_2 + ... + S_n... |
I will venture myself into studying chaotic cryptography. However, I find it hard to explain what chaotic cryptography entails to those that have some knowledge of cryptography. Neither can I explain it - at a more basic level - to those that don't know what cryptography is.
Can you help me explain chaotic cryptograph... |
Why is the Rabin mapping: $f_i(x_i)=x_i^2 \bmod N_i$ not a Permutation over $\mathbb{Z}_N^*$?
|
I understand all of the previous steps, but I don't understand what is happening to "S2" in that the number "775" showed up.
Where does the 775 come from? I can't seem to get it, and I've tried modding it, but received the wrong answer.
The answer to this is to add the modulo to the a when a is negative. As such, this... |
Please, I got the question "what is the computational complexity of SHA-3 (SHAKE128)"?
What does that mean and how can I calculate that??
*I am using SHA-3 (SHAKE128) in my mechanism to hash fix input (100-bits).
Thanks in advance...
|
What risks are involved when specific curves are chosen for an ECC implementation?
How should I audit a system that uses ECC with regards to a specific curve?
Bonus: How can I (or a cryptographer) determine if a curve is backdoored?
|
I was considering algorithm 2.40 (arbitrary reduction polynomials) in the Guide to Elliptic Curve Cryptography and... it doesn't appear to work when the order of the polynomial you're trying to reduce is less than the order of the reduction polynomial.
Say you have a reduction polynomial of $x^{128}+x^7+x^2+x^1+1$ (th... |
Assume $F$ is a pseudo-random permutation (PRP) then the tweakable block-cipher based on the Merkle-Damgård construction (take this as the way I understand, here is the equation):
$F_k[t](m) := F_{F_k(t)}(m)$
is a secure tweakable block cipher. This is marked with two stars in my notes.
First question: is it right or w... |
I'm applying the Arduino Crypto Library for the code fragments.
In the above library, example of encryption and decryption using GCM given as follows:
For encryption:
GCM<AES256> gcm;
gcm.setKey(key, sizeof(key));
gcm.setIV(iv, sizeof(iv));
gcm.addAuthData(adata, sizeof(adata));
gcm.encrypt(ciphertext, plaintext, sizeo... |
$p$ is a 2048 bit prime number
$q$ is a 224 bit prime number
I know that $q$ is a prime divisor of $p-1$, thus $p=1 \bmod q$ but I couldn't write efficient code to calculate this.
I can calculate 2048 bit prime $p$, but how to find $q$ efficiently?
Currently what I am doing is generating 224-bit primes and checking w... |
In the encryption of MixColumn you use the constants 01, 02 and 03. I don't understand why the inverse of 01 becomes both 0D and 09. I also don't understand how you get 01, 02 and 03 in the first place which is probably why the decryption doesn't make sense to me. I would appreciate any help with understanding how to c... |
What if we use a counter within the plain text and then encrypt the plain text with aes 256 to encrypt & authenticate?
For example:
encryptAES(32bit_counter+plain_text_of_96bit);
or
encryptAES(16bit_counter+plain_text_of_112bit);
This way we do not need to depend on other authentication algorithms and can send about 2^... |
Let $m \in \{0, 1\}^{2n} = m_1 || m_2$. Let's also assume that $F_k$ is a PRF and $G$ is a PRG defined as $G: \{0, 1\}^n \rightarrow \{0, 1\}^n$. Now, Let's define the $MAC$ scheme as follows:
$$MAC(m) = F_{m_1}(k \oplus G(k\oplus m_2))$$
Where $k \in \{0, 1\}^n$. I think it's correct, but I have not seen much examples... |
What if we encrypt sha-1 hash of the plain text, along with the plain text using AES-256 in CTR mode?
How much future proof the above method would be in comparison to AES-GCM or any other method where auth tag is made public?
Ultimately the question comes down to which has higher chance of getting cracked in future? AE... |
I'm wondering the state-of-art result about how many bits are needed to commit a single-bit non-interactively? I noticed in the paper of Naor's bit commitment: http://www.wisdom.weizmann.ac.il/~naor/PAPERS/bit.pdf
this paper says assured amortized O(1) bits of communication per bit commitment. However, it seems Naor's ... |
Suppose to have a chipertext that you can't decrypt, but you know that the plaintext can be A, B or C. Then arrives to you the key which is used to encrypt the chipertext.
You can decrypt the chipertext and you get a plaintext equal to A. Is it possible that the original plaintext was B or C and you have received a ke... |
In some paper, the terms "cryptographic hash function" and "deterministic hash function" would appear?
I'm wondering what's their difference, and are there some other types of hash functions?
Like the cryptonote whitepaper in 4.2.1
|
I am trying to understand the paper "Breaking Symmetric Cryptosystems using Quantum Period Finding", and I reckoned the paper is roughly implying to break secret-key cryptographic system by finding the factors of the secret key. Is that correct?
|
I am trying to implement given DSA signature generation instructions in python, there are few instructions that I couldn't understand in step 3 and 4.
Let m be an arbitrary length message. The signature is computed
as follows:
generate k (i.e., k is a random integer in [0, q − 1])
r = g^^k(mod p)
h = SHA3 256(m||r)
Wh... |
Bob decides to use $n = 697 \rightarrow 17 × 41$ and $e = 33$ as his public key for an RSA cryptosystem.
Show that the decryption exponent is $97$.
Find the encrypted form of the message $17$.
|
Is there a known risk in having two keys wrapping each other?
Let's say, an adversary has access to both AESkey1(key2) and AESkey2(key1).
Does it make it much easier for him to recover the keys?
|
I understand the concepts of confusion (substitution) and diffusion (permutation).
My understanding of what a mode is that it's an algorithm that lets us encrypt arbitrary message size. i.e. AES is a mode of operation, and confusion/diffusion are what we use to achieve a certain mode.
But that doesn't sound right.
|
I'm trying to solve the following problem:
Given two CRHF $H_1:2^{4n}\to2^{2n}$, $H_2:2^{2n}\to 2^n$, construct the following hash function $H^{*}=H_2(H_1(x))$ compressing from $2^{4n}\to 2^n$.
We want to demonstrate that if $H_1$ and $H_2$ are collision resistant then $H^*$ must be collision resistant too.
I made th... |
You take something like chacha20 and use the disk block # to seek it, xor it with the data block and then encrypt it with a block cipher in ECB mode.
Would this be secure?
Edit:
To avoid getting bogged down in implementation pitfalls lets consider an ideal scenario:
You have a constant size file (that is a multiple of ... |
An adversary $A$, eavesdrops $n$ cipher-texts, $c_{1}, c_{2} ..., c{_n}$. It also knows a value $v$ and a function $f$ such that $$f(k_{1}, k_{2}, ..., k_{n}) = v$$ where, $k_{i}$ is used to encrypt $m_{i}$ to obtain $c_{i}$, $\forall i| 1\leqslant i\leqslant n $.
As a concrete example say, $A$ listens to three cipher... |
I was wondering how you would calculate the S-box in AES. I found that you have to calculate the inverse of the polynomials in $GF(2^8)$. I found out that to calculate the inverse, you have to use the Extended Euclidean Algorithm. What I can't figure out is how do you apply this to a polynomial?
|
So while discussing the issues of password-hashing off-loading in our chat I noticed that it's easy to extend OPAQUE (CFRG draft) to essentially be a better standard password based authentication when executed over TLS. Namely one could simply append a message $F_K(2)$ (for some pre-defined PRF $F$) from the client to ... |
I know Signal provides future (backward) secrecy, and that it is based on Off-The-Record protocol. However, does OTR by itself also provide future secrecy?
|
I'm learning publick key infrastructure and certificate authority.
But I cannot understand below conecepts.
Unlike KDC or public key authority, CA does not have to be online to
provide keys to users
Why? I think KDC and public key authority are same as CA.
|
I am very new to the hashing world and despite hours of research (AKA Googling) I still don't understand this piece of information. What are the different pieces of information that are needed in order to unhash a SHA-256 key to reveal the original message, besides the original message itself? Or if I am way off base, ... |
There is $p$ (large prime number), $g$ (generator of $p$),
and $x_a$, $x_b$, $r$ (which are between $1$ and $p-1$).
I know $g^{x_a}$, $g^{x_b}$, $g^r$, $g^{x_a\cdot x_b\cdot r} \bmod p$.
How can I get $g^{x_a\cdot r}$?
|
So, I've just started looking at the subject of Cryptography and am working through Stephen Haunt's Practical Cryptography course on PluralSight but have a question that doesn't appear to be covered.
In the course, the Window's Key Container is used for encrypting and decrypting a message.
Now if I'm sending messages ... |
I have an API-based service that digitally signs messages with RSA or ECDSA (system decides during runtime). The input is base64 encoded SHA-256 hash and the output is:
signature of this hash
signature algorithm, something like: "SHA256WithRSAEncryption" - to indicate if RSA or ECDSA was used by the system.
I now wa... |
I know that DDH does not hold in $Z_p^*$ because given $g, g^a, g^b, x$, we can compute legendre symbols of $g^a, g^b$ and compare it with legendre symbol of $x$. The same attack doesn't work when we consider the group $Z_N^*$ where N is product of 2 large primes. This is because computing jacobi symbol without knowing... |
Let,
Inputs:
key = key used to encrypt the plaintext.
IV = initialization vector.
plainText = plaintext need to be encrypted.
authData = addition data need to be authenticated which is not encrypted.
Outputs:
cipherText = encrypted plain text.
authTag = Authentication tag required to verify authenticity of cipherText... |
Sophie Chen at Wired Magazine;
quantum mechanics could solve cryptography's random number problem
Such machine already exist, but it's too huge and not so fast in order to use it all the time.
Anyway, can it solve the problems connected to randomization and security or it will be still vulnerable?
|
Suppose that we have three authorities which each of them generate one secret/public key for Alice. It means that Alice has three secret keys and three related public keys. Suppose that Alice combines these three secret keys in a way with any kind of function and generate a new secret key (forth secret key), can he gen... |
What are the best cryptographically secure pseudo-random number generator algorithms, and what are their strengths/weaknesses? I can't seem to come up with a list of them (or maybe I do, but they have such weird names that I don't recognize them).
I'm trying to write a simple program that takes a message and a key and... |
Given two commitment schemes $Com_1, Com_2$ (both have the hiding property), I'd like to prove $Com_1(m) || Com_2(m)$ is also hiding.
I built these hybrids and want to show $H_0 =_c H_1 =_c H_2$.
\begin{align}
H_0 &= Com_1(m) || Com_2(m) \\
H_1 &= R_1 || Com_2(m) \\
H_2 &= R_1 || R_2
\end{align}
For $H_1 =_c H_2$: If s... |
According to Wikipedia, if Alice wants to sign some message, she computes $s = k^{-1} (z + r d_A)$ then sends $(r, s)$ to Bob.
I don't understand why they use this particular formula $s = k^{-1} (z + r d_A)$ for signing the message ? Why don't they just take $s = r d_A + z$ (i.e. $k = 1$) or $s = d_A + z$ or some other... |
My question is two parts:
when encrypting a session key which is used to encrypt bulk data using a block cipher for example, is padding with OAEP really needed [i'm assuming the key is generated using secure random generator.
What benefits does OAEP provide compared to simple padding with random bits up to size $n-1$ ... |
Proposed Cipher suite:
aes-ctr(key, ++iv, sha-1(plainText + aes-ctr(key,iv,0^128))+(plainText + aes-ctr(key,iv,0^128)));
Security targets achieved:
Encryption of the plain text.
Integrity of the plain text.
Authenticity of the plain text.
Used components and reason behind using them:
sha-1: For checking integrity of... |
Saarinen in his work GCM, GHASH and Weak Keys says that:
The GHASH algorithm belongs to a widely studied class of Wegman-Carter
polynomial universal hashes. The security bounds known (this and this) for these algorithms indicate that a $n$-bit tag will give $2^{−n/2}$ security against forgery.
It can be argued th... |
Proposed Cipher suite (using aes-ecb):
cipherText = aes-ctr(key, ++iv, (plainText)); & authTag= aes-ctr(key, iv, aes-ecb(key, sha-1(cipherText+authData+key+iv)));
Security targets:
Encryption of the plainText.
Integrity of the cipherText & authData.
Authenticity of the cipherText & authData.
Used components and re... |
If I run openssl ec on a key that I have generated with openssl ecparam -genkey I get one extra prefixing 0x00 in the private key, and one 0x04 in the public key. While I understand the 0x04 which means uncompressed format, I don't understand the 0x00 in the private one. If I use the openssl asn1parse that 0x00 gets di... |
using secp256k1_ecdsa_sign() I noticed the same data signed multiple times, coming back with the same signature. I always thought that signatures are different because random data is somehow involved.
looking at my (production) code, this is my call:
secp256k1_ecdsa_signature sign(const pb::sha256 &in) {
... |
RFC 6979 defines deterministic variants of (EC)DSA. It states in introduction
One characteristic of DSA and ECDSA is that they need to produce, for each signature generation, a fresh random value (hereafter designated as $k$). For effective security, $k$ must be chosen randomly and uniformly from a set of modular inte... |
In ZK Snarks bilinear pairings are used to do "encrypted computation". I was wondering if we can use Partial Homomorphic Encryption or Somewhat Homomorphic Encryption instead of bilinear pairings. Can you please elaborate on why they should or should not be used?
|
If the contestants were given both the plaintext and ciphertext, it's straightforward. Just bruteforce all 56-bit keys until you find one that maps the given plaintext to the given ciphertext.
But from what I understand, the contestants were given only the ciphertext and the initialization vector. I'm confused as to ho... |
There's a lot of work finding "partial collisions" in hashes, and "Parallel Collision Search with Cryptanalytic Applications" seems to be the go-to paper for this work. I'm trying to understand why finding partial collisions, particularly by brute force, is such a topic of interest. As an example, let's say we have a ... |
After we've concluded that 64-bit is an insecurity for classical computers, I think many would like to know, how secure in a perspective view, is 64 quantum bits security.
As we know, the Grover's algorithm halves the security strength offered by symmetric key primitives - a 128-bit-key block cipher would effectively ... |
I have a file system with share resources over the network (like a shared FTP)
Is it possible to use the client's ECC public key to encrypt the AES key, and then use the AES in CRT mode for the file encryption? File size can be 1GB to 1TB.
|
Alice wishes to publish under a pseudonym a series of texts online. She expects the texts to circulate, and she will not include any way of contacting her. Bob will not know the identity of the pseudonymous author but he will seek to confuse the author's audience by publishing texts that he falsely attributes to the sa... |
In elementary concepts, mostly scalar exponents shows up in group operations:
$g^x$
As one may encounter in more advanced papers, there are rational exponents over generators. Simply seems like:
$g^{1/x}$
For example, it can be seen at the fouth definition in the paper: q-weak Diffie Hellman assumption
Q1: How should ... |
When I am studying about linear cryptanalysis, I have a question about correlation of linear trail.
Let $U=(u_0, u_1 , ...,u_n)$ be a linear trail
Then we can compute a correlaton of linear trail $U$ such that $C_{U}=\prod_{i}C^{r_i}_{u_{i}u_{i-1}} $
where $C^{r_i}_{u_{i}u_{i-1}}$ is a correlation of $r_i $th round. ... |
$\operatorname{AES-ECB}(key,\operatorname{SHA1}(data+key))$ vs $\operatorname{HMAC-SHA1}(key, data)$
Which is more secure?
Which is faster?
There is a similar comparison here; HMAC-SHA1(key, data) vs sha-1(data+key)
|
This question is motivated by some bad Verilog. Due to someone being sloppy with port assignments and a output statement, I have an AES core that has a single-bit from a S-Box in the key schedule tied to a pin. This was caught in my audit of the HDL; however, it's sort of a neat error. Due to the nature of the hardw... |
In the past, there were export and other restrictions on publishing information, source code or otherwise making new strong cryptographic items available without prior government approvals.
There are many conflicting regulations, laws, constitutional freedoms like freedom of speech and various legal precedents that mak... |
I just need to know is it correct to classify the RSASSAPSS scheme and sha[256 | 512 | 1]WithRSAEncryption all under RSA signature?
|
I want to know how to send a secure message protected with elliptic curve private and public keys.
|
Motivation: An encryption scheme is used to encrypt the message which belongs to the plaintext space. The scheme designer does not know what kinds of message is valid (i.e. what the plaintext space is). So I believe that the (provable) security does not depend on the size of the plaintext space. However there are some ... |
I can understand the usefulness of one-way private set intersection methods. Where Alice and Bob both have listed but only Alice learns the intersection of those lists while Bob learns nothing.
I don't understand the usefulness of two-way private set intersection protocols though. If Alice and Bob both learn the inter... |
Here the key stream is used as keys for the second level of block cipher encryption.
I guess this is not vulnerable to:
padding oracle attack because it is basically counter mode
stream cipher attack, because it isn't just simply XOR-d
malleability, because XOR-ing something on the ciphertext changes the entire plain... |
I want to identify the proportion of certificates that use unrecommend ECDSA key length for TLS certificates based on some data I collected.
By looking at a standard like NIST for example, I find this in this website:
My data shows use of ecdsa-with-SHA256.
My question is: Which if the following key algorithms the E... |
If a TLS certificate public-key algorithm is ECC secp384r1 or ECC prime256v1, is it possible to have RSA as a signature algorithm? Or does it use ECDSA for signature? Or can it use any of them (ECDSA or RSA)?
|
Sorry in advance if this question is silly.
Suppose we want to break RSA, that is find the message $m$ s.t. $c \equiv m^e \pmod n$
Now suppose we know an $x$ s.t. $c \equiv x^e \pmod n$. Could we use that information to somehow find $m$?
|
Are there any clear conditions on $p,\ell$ and $m$ under which the equation $\gamma \equiv \sum_{i=1}^m \xi_i\cdot x_i\bmod p$ has at most one solution with $|x_i|<\ell$ with high probability over a random choice of $\gamma$ and the $\xi_i$?
This is closely related to the SIS problem, but instead of having several eq... |
Is there any way to show CCA-secure symmetric-key encryption does not have to be an authenticated encryption?
I know you can create a set up that isn't authenticated, but how will you go about it?
|
It would be great if you can point out the mathematical formulation or R1CS form of the NP statement of Zcash.
|
Let's say my public key is defined as $P = p \cdot G$, where $p$ is my private key and $G$ is a generator point of an elliptic curve. If I wanted to sign a message $m$, could I do the following?
Hash $m$ to a number using a hash function: $h = Hash(m)$.
Compute signature as $S = \frac{p}{h} \cdot G$.
The verification... |
I have been tasked with moving an authentication service from our provider to somewhere else. The code base for the current service is not available to me, but I know these things:
I have a 65 character plaintext key
Something labeled a "nonce" with 3 characters and in plain text
An encrypted string which (possibly co... |
This site contains various discussions of one-way functions and their relation to P versus NP.
Some of these discussions use a language
$L=\{(x',y) ~\mid~ x'\le x \text{ and } f(x)=y \}$, where $f:\Sigma^*\to\Sigma^*$ is the one-way function and $x'\le x$ is the prefix relation.
Now one central claim is that this lang... |
It seems to me, that it should be possible to hash BLS signature to achieve significant space saving. Here is how it could work:
Assuming we have a pairing-friendly elliptic curve with two generator points $G_1$ and $G_2$. Let's say my public key is $P = p \cdot G_1$, where $p$ is my private key. The standard BLS signa... |
We can use the technique described in this answer to prove key equivalence across two elliptic curves of different order. I'm wondering if modifying the technique as described below would compromise anything.
So, let's say I have committed to 2 points $A$ and $A'$ on two different elliptic curves with generators $G$ an... |
Wikipedia contains the following claim for $\text{Keccak-}f[25w]$:
It is defined for any power-of-two word size, $w = 2^ℓ$ bits.
Although all official descriptions of Keccak do not explicitly mention well-definedness of $\text{Keccak-}f[25n]$ for any $n$ above $64$.
So I have two related questions:
Can we assu... |
How can I perform a division of two integers homomorphically?
(Simplifying assumptions can be made if needed, that is, I am fine with dividing numbers that are whole and the result will be whole as well, e.g., simple divisions such as 4 divided by 2 are fine)
Given two ElGamal ciphertexts:
$$ C_1 = (C^{1}_{1}, C^2_1) ... |
Is there a way for an algorithm to run securely on one end, whilst the other end is able to be notified and also verify that it has run and done the work without knowing what the actual payload is?
For example, $A$ provides an algorithm that adds $1$ to any number.
$B$ takes this algorithm and performs it $N$ number of... |
Given a key $e = 3$ (the public exponent for RSA) and a group of numbers, say $Z_n^*$ (the multiplicative group of $n = pq$, where $p$ and $q$ are primes as requested by RSA).
I can find the decryption key: $d = e^{-1}$
Is it correct to say than any member $a$ in $Z_n^*$ has a source such that: $source = a ^ d$?
Edit: ... |
NIST SP 800-38D § 6.4 GHASH Function describes the GHASH algorithm thusly:
Prerequisites: block $H$, the hash subkey.
Input: bit string $X$ such that len($X$) = $128m$ for some positive integer m.
Output: block $GHASH_H$ ($X$).
Steps:
Let $X_1$, $X_2$, ... , $X_{m-1}$, $X_m$ denote the unique sequence of blocks such ... |
I am currently developing a protocol which would be able to "upgrade" the strength of a bcrypt password hashes without the knowledge of the user-password so a system may upgrade it without user interaction.
Bcrypt requires the password as input to calculate the hash, if you already have a hash, there is no way to "calc... |
I'm wondering what does the "constant rate" mean in universal composable commitment scheme? I have known the rate of a commitment scheme is message length divided by the communication complexity of the scheme. What's the "constant" mean here? Must the constant be a number less than 1?
|
Suppose we have an RSA encryption oracle $E(m)$ which basically just calculates $m^e \mod n$ for a given message $m$. Here $e=65537$ is known but $n$ is not. Can we determine the value of $n$ without trying all values below $n$, assuming $2^{1023}\leq n <2^{1024}$?
I thought of using $E(-1)$ but sadly only positive mes... |
Given a public key $(e,n)$, if we are free to choose the plaintext does that mean we are able to generate any possible ciphertext in $Z_n$ ?
Because if we were given $e$ we can say that the decryption key is $e^{-1} = k \mod n$ and then choose the ciphertext we wish to generate, say $c$, perform $c^k$ and that shows ... |
Does the size of base, exponent, and modulus thwart the Giant-step/Baby-step algorithm in solving DLP using modular arithmetic or is it the use of a property of a particular prime as the modulus, or something else?
|
I'm looking for a one-way compression function that is secure and efficient within a zk-SNARK circuit. The motivation behind this comes from these considerations:
SHA256-compression is highly inefficient for SNARKs
The Pedersen hash function is efficient, but has an upper input limit of 32 bytes and outputs 32 bytes
A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.