instruction stringlengths 32 27.2k |
|---|
I am using AES ECB mode to encrypt and decrypt 128 random data. I have read on drawbacks on using ECB but it seems that it is feasible to use it for random data. However my concern is that my implementation provides an oracle. What i am concerned is key extraction. Would it be possible in reasonable time or possible at... |
I have parameters of an elliptic curve s.t $p=2n+1$ , when $n$ = order of elliptic curve over finite field of order prime p.
If I want to forge any message for such ECDSA, What can I do? Maybe the condition $p=2n+1$ will be helpful, but I have no idea for this.
|
I know that an interactive proof system $(P,V)$ is a pair of interactive machines for a language $L$ if $V$ is polynomial-time and the following two conditions hold:
1) Completeness: For every $x \in L$,
$$\Pr [\langle P,V \rangle (x) = 1] \geq \frac{2}{3}$$
2) Soundness: For every $x \not\in L$ and every interactive m... |
I am trying to understand how zkSNARKs work. Going through this article by Vitalik, in the section on 'Checking the QAP' he says " If the resulting polynomial, evaluated at every x coordinate that we used above to represent a logic gate, is equal to zero, then that means that all of the checks pass;" -
Can somebody hel... |
Can someone please point me to a book or paper that describes the Tortoise and Hare algorithm by Floyd?
I know there are ample websites out there, but for reference purposes, I need a book or paper to point to.
|
According to this report : http://www.ecrypt.eu.org/csa/documents/D5.4-FinalAlgKeySizeProt.pdf
SHA2-512, SHA3-512, Whirlpool and Blake2b are hash functions that could be safe for the next 50 years.
For a system that will never receive security updates, to hash passwords, what of these 4 functions should I use for maxim... |
My application is .NET based.
I have signed xml from third-party environment (Java based).
Its signature value base64 string contains carriage return #xd;.
<SignatureValue>rNNNqGYd4sEuEyOle0sCHHBv4UVrzBcntgxSuzqm7NrRHpD8qxPu1GpxBtcUKr3bJ0YME2J9SgFA
wsfp/Vd+0g==
According to
Canonical XML Version 1.1: Line break... |
I'm a little confused as to what constitutes a single AES round. Most sources say it's this:
t0=Te0[s0>>24]^Te1[(s1>>16)&0xff]^Te2[(s2>>8)&0xff]^Te3[s3&0xff]^rk[4];
t1=Te0[s1>>24]^Te1[(s2>>16)&0xff]^Te2[(s3>>8)&0xff]^Te3[s0&0xff]^rk[5];
t2=Te0[s2>>24]^Te1[(s3>>16)&0xff]^Te2[(s0>>8)&0xff]^Te3[s1&0xff]^rk[6];
t3=Te0[s3>... |
I would like to know if I am understanding this correctly.
Zero-knowledge proofs need a prover, verifier and witness.
So if we have a blockchain where person A pays person B 100 dollars.
In blockchain, is person A the prover? It proves to the other nodes (the verifiers) that person A has 100 dollars. A witness applies ... |
$M$ (not public) is hashed with a hash function $\text{H}$ that includes a variable $T_1$ (public), giving $C_1$ (public). The same $M$ (not public) is hashed with the same hash function with another variable $T_2$ (public), giving $C_2$ (public).
Knowing the variables, $C_2$ can be verified to be from the same data as... |
Is there a hash function h(M + t1) = c1 that relates to h(M + t2) = c2 in a way that, knowing t1, t2, c1, c2, and with no knowledge of M, it can be verified whether both use the same M?
|
How can I calculate the minimum number of active s_boxes for block cipher algorithms such as present algorithm?
I have read in that, but I couldn't understand the meaning of branch number.
|
I'm no crypto expert but I'm trying to figure out if this is possible:
I'm building an application that has access to very sensitive user data.
I receive this data in plain text but I'm not allowed to persist it in this state.
When I receive data for user X, I must immediately encrypt the data using the key of user X... |
This image is taken from Algorithm 1 from "Σoφoς – Forward Secure Searchable Encryption, CCS '16".
On line 4 there seems to be a new variable, M, that is never defined throughout the rest of the paper. Should I attain a random byte[] and set that as the value of ST_0?
This is being implemented on a Java programme.
|
I really want to learn how to calculate the number of active s _boxes for block cipher cryptographic algorithms.
I want to do that manually after running each round of an algorithm such as LED algorithm, what should I notice or compare in order to calculate the number of active s_boxes ?
I read that definition ".You ru... |
Let's say the system has a hardware randomness generator, generating random numbers using a proven truly random process. The distribution of the numbers though, is unknown.
Assume the randomness source generates data blocks $P_1$, $P_2$, ..., $P_n$. There is an one-way function $f(x)$. The output data blocks are $Q_1$,... |
I have a read-only public bulletin board that It contains a series of information to form:
$$[(a_1,g^{a'_1 \cdot m}), (a_2,g^{a'_2 \cdot m}), \cdots ,(a_n,g^{a'_n \cdot m})] \ ,$$
where $a_i\in\{0,1\}^n$ and $a'_i, m \in \mathbb{F}^*_q$ ($a'_i$ is output a PRF on input $a_i$).
I want to produce tags that are not forgea... |
How do I calculate the correlation immunity of the standard AES Sbox. All material ive read gives out calculation of correlation immunity of boolean functions with single bit outputs. How can it be translated to the 8bit AES Sbox.
|
File sharing systems sometimes use the likes of a Tiger Tree Hash to check the integrity of a file as it is downloaded.
Hash trees in general are useful to check integrity of the tree leaves without downloading the full tree, instead needing only the root and tree branch that contains the interesting leaf (plus necess... |
Finding a collision in the AES algorithm is (apparently) hard. Why ?
What is the mathematical property stating that there is a negligible probability to find a collision by taking two random plaintexts and setting the key ?
Here I mean collisions like : $\operatorname{AES}_{K}(P_1)=\operatorname{AES}_{K}(P_2)$, with ... |
From what I understand, based on the article A Beginner’s Guide: Private and Public Key Cryptography Deciphered, the public key is generated by performing $n$ tangent plus mirroring operations from the point $G$ over the elliptic curve, where $G$ is defined in secp256k1 and $n$ is a natural number that directly relates... |
In the paper "Simulation-Sound NIZK Proofs for a Practical Language and
Constant Size Group Signatures" from Groth, the section 6 describes a NIZK proof for pairing product equations.
I only know the basics in the domain of zero knowledge proofs and I saw some basic algorithm. What I would like to know is if there is... |
I want to implement ID based encryption using the RSA encryption algorithm but how can I edit the algorithm for IDs.
|
I am working on a project and I'm noticing a peculiar behavior that I was hoping someone could tell me if it is correct or not.
I have a program that is trying to generate some random numbers using BN_rand(). Snippet of code follows:
BIGNUM *test = NULL;
unsigned char buffer[2048];
int fd = open("/dev/urandom", O_RDWR... |
I am working on testing my implementation of OpenSSL using the CAVP
186-4 RSA Validation System (RSA2VS).
There are tools under openssl-fips-2.0.16/test and I am working on modifying fips_rsagtest.c to process the 186-4 test vectors the way I need them.
The fips_rsagtest.c program was originally made to take in values... |
I read the description of 1-2 oblivious transfer algorithm in wikipedia.
In the algorithm described Alice has two messages $m_0, m_1$. Bob picks value $b \in {0,1}$, and the protocol allows Bob to obtain $m_b$, while Alice does not know which value was sent to Bob.
The protocol requires that Alice creates an RSA privat... |
I have written a code to encrypt a plaintext as below. Here I am using bouncycastle crypto provider and referring to the RSA+OAEP for that.
public static void main(String [] args) throws Exception {
Security.insertProviderAt(new BouncyCastleProvider(), 1);
String ciphertext = Base64.encode(encrypt(plaintext));
... |
Let $H$ is a cryptography hash function and $\Pi=(\mathsf{G}, \mathsf{S}, \mathsf{V})$ is a digital signature, as follows:
$(h_1=g^x,h_2=g^y) \leftarrow \mathsf{G}(1^n)$, where $x,y$ uniformly random from $\mathbb{Z}^*_q \ .$
$(r=g^k,s=(H(m)-x \cdot r)\cdot k^{-1},z= y^{-1} \cdot k ) \leftarrow \mathsf{s}_{x,y}(m)$, w... |
The last days I was looking for a way to encrypt using ECC, without having to make the program myself. I was sure that someone should have done it for everyone by now.
The best approach I had was with bouncy castle. The bad thing about it, is that I never found a "encrypt" or "decrypt" method. The best thing I could fo... |
I would like some help to understand how to compute a distortion map and the result of a pairing.
I know that with this equation :
$E : y^2 = x^3 + 1$ over some $\mathbb{F}_p$ we have a distortion map $\phi(x,y) = (\beta x, y)$.
I know that I need to find a primitive cube root of unity $\beta$ such that $\beta^3 = 1$ ... |
Is there a way to encrypt data/document with multiple keys, but every key is only allowed to read/decrypt only a certain part of the document and not the whole document? The document cannot be sub divided into multiple smaller documents for various users.
|
Is there any way to assign someone a limited quota for how many cryptographic key pairs they can generate (ECC, RSA, any algorithm), and preferably non-interactively? By non-interactively I mean there is no multiple handshake or multiple round trips between me and the person doing the generating and the relationship co... |
I have few sub-questions
Do secret keys get expired, or just the public key gets expired?
Do I have to back up the master sec key each time I renew it?
For an example:
Let's say I generate gpg keypair and ssb for signing, encrypting, and a revoked certificate. And I backup the master sec key, revoked certificate and p... |
Assume user $A$ with corresponding public-private keys $(pk,sk)$ and a public information $r_1$ and $r_2$.
Let $r_{1s} = Sign(sk, r_1)$ be the signature on $r_1$ generated using $sk$ and $c = Hash(r_2 || r_{1s})$.
Now given $r_1, r_2$ and $c$ are publicly available can user $A$ produce a zero-knowledge proof that $c$ ... |
Let's say that we have an original homomorphically encrypted program with any possible code inside. What methods can it use to ensure that it is impossible to create an exact copy of it? Are there such ways?
I understand that a person without a key will not see the internal content of a homomorphically encrypted progra... |
$\require{begingroup}\begingroup
\DeclareMathOperator{\keccak}{\mathrm{Keccak}}
\DeclareMathOperator{\concat}{\|}
$According to Keccak's website, $\keccak(k \concat x)$ is safe:
Unlike SHA-1 and SHA-2, Keccak does not have the length-extension weakness, hence does not need the HMAC nested construction. Instead, MAC co... |
The command :
openssl genrsa -out RootCA.key 4096
generates a single file named RootCA.key. When I open the file, it only contains the private key.
Then the next command:
openssl req -new -x509 -days 1000 -key RootCA.key -out RootCA.crt
Generates a certificate , named RootCA.crt containing the Root's public key... |
What are the advantages and drawbacks of using long term private keys compared to session keys?
|
Am I misunderstanding length extension attacks, or is there some different reason, or is it really a bad idea to use SHA2 for file verification?
If the answer is that it's really a bad idea, would removing the last 4 bytes be advisable since now the chances of the attack succeeding will be around one in 4 million, and ... |
I have several IOT devices that transmits nearly 200 bytes of data every 10 seconds. I want to make the data secured but i also want to keep the data size nearly same. Ofcourse for IOT devices computations should be lightweight. I have been considering AES 128 for this job and RSA for key exchange. I am wondering if i ... |
There was a question on my final exam, but I could not get a point. I really want to know the right answer.
Question is:
Suppose a cryptosystem has perfect secrecy.
Prove that H(P|C) = H(P)
H(P|C) is conditional entropy.
|
If we were define such a cipher:
A reversible function that would accept a message $M$ and an initialization vector $\text{IV}_1$ $\operatorname{map}(\text{IV}_1, M)$ which can map an input $M$ to a random prime $p_1$
A key derivation function $\operatorname{kdf}$ with a similar blueprint, with key $k$ and initializat... |
I recall reading about this but forgot what it’s called.
Suppose two people want to know who is richer but don’t want to reveal their net worth to the other. How can they securely exchange info to determine who’s number is larger?
|
Is there a method of encryption where your key is made up of $n \cdot s$ bits, but also such that an attacker would know when they've successfully cracked each $s$-bit part?
For example, the full key could be $\texttt{1011 0101 1010}$, for $(n=3, s=4)$and you would be able to know if you successfully guessed that the f... |
AES256, CBC
IV is sha512 of key.
Ek[random padding | message | random padding]
How much information would be leaked from the use of the same IV & key in this way, assuming the adversary has complete access to the system, design, iv, and all information, the AES Object itself, etc etc, except the key?
|
I'm reading the article about SPDZ protocol for secure multiparty computation (and also improvements for offline phase like MASCOT).
However I'm thinking about practical application of SPDZ for AES encryption/decryption.
I have the following assumptions:
There are 3 parties $P_1, P_2, P_3$ from which $P_2, P_3$ each ha... |
As you may know, PKCS#1 defines two different padding in it's v1.5 : one for signature and one for encryption. Here they are :
The middle part is refered as PS in the standard.
There is only one thing bothering me : why does PS differ between signature and encryption ? I can't see any reason ti fixe PS to a '0xFF' st... |
In generating an LWE sample, we do
$s\xleftarrow{$}\mathbb{Z}_q^{n}, A \xleftarrow{$}\mathbb{Z}_q^{n \times m}~$and $e\xleftarrow{$}\mathbb{{\chi}^{m}}$
Then we compute $b^T$ = $s^TA$ + $e^T$ and the sample $(A,b)$ $\approx$ truly random sample.
Now suppose we have a fixed matrix (not random and public) $A \in\mathbb{... |
I'm writing a method in Java to read SSH public key in RFC 4253 format, which, in my case, can be either RSA, or DSS.
What I really need is to read exponent and modulus for RSA key and y, p, q, g values for DSS key, which, according to the standard are of type mpint (multiple precision integers).
So basically, what I'm... |
I'm a crypto beginner and reading about blinding, and my fundamental understanding about preventing timing attacks is that you need to sort of process information in a way that will produce similar processing times for each set of operations.
In CVE-2015-2141 something as simple as failure to call r = modn.Square(r); i... |
Following the response to my previous question, I would like to know if you could give me some information or give me a link on how to perform arithmetic operations once I changed a point from the field $\mathbb{F}_p$ to $\mathbb{F}_{p^2}$ ?
If I have an elliptic curve $Y^2 = X^3 + 1$ over $\mathbb{F}_p$ and I want to ... |
I don't understand the necessity of introducing the additive term δ in the differential privacy definition. Moreover, reading different papers and blogs they say that because of the δ term the mechanism is "broken" (whatever that means).
I would really appreciate some help in understanding the role and the effect of th... |
Given a polynomial $x$ with degree $n$ in $GF(2^m)$, $1 < n < m$, will any generator of $GF(2^m)$ suffice when applying the Frobenius automorphism to determine the square root of $x$ as described in the answer to this related question? And why? (anecdote or rigid proof are both welcome).
For example, given $f(x) = x^2... |
I want to encrypt the same message multiple times. I want to store the encrypted messages together. I've heard if you do this with RSA, an attacker could decrypt the message with the Chinese Remainder Theorem.
What encryption methods do not suffer from this vulnerability? Would RSA with some random bits added to the me... |
What are the minimal components to build a security model proof for a protocol?
This question might seem trivial, but having read many papers-- from the IEEE, ACM, etc., that talk about a KMP-- I still don't know where to start. For example, should I use the adversary model or a random oracle?
|
I would like to construct a distortion map from a point $\in \mathbb{F}_p$ to $\mathbb{F}_{p^2}$.
If I have an elliptic curve $Y^2 = X^3 + 1$ over $\mathbb{F}_p$ and a distortion map $\phi(x,y) \rightarrow (\beta x,y)$ that gives a point of the form $\{a+bi : a,b \in \mathbb{F_p}\}$ in $\mathbb{F}_{p^2}$. Do my comput... |
what is the branch number of the binary identity matrix?
For example, $ I $ is 4x4 binary identity matrix,
\begin{pmatrix}
1 & 0 & 0 & 0 \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
0 & 0 & 0 & 1
\end{pmatrix}
Here, the branch number is $min_x ( wt(x)+wt(Ix))=2 $.
Is that correct?
|
1) Consider the chosen-plaintext attack on the simple substitution
cipher. How many chosen plaintext characters suffice to uniquely
determine the key?
My answer was: 26!
2) Consider the chosen-ciphertext attack on the simple substitution
cipher. How many chosen ciphertext characters suffice to uniquely
deter... |
If you have 4 16-byte blocks of plaintext to encrypt does each block have a different 128 bit original key? Or do they all use the same?
|
I have done a google search for "multi-party key agreement", and there doesn't seem to be anything more recent than about 2005.
Are there any practical multi-party key agreement protocols known?
To be more precise, I want a protocol which:
Allows multiple individuals to agree a single shared secret
An adversary cann... |
Suggested definition
A positive integer is a safe RSA modulus if, after removing all its prime factors less than 512 bits, it is composite and has size at least 2048 bits.
Discussion
I want to build the smallest-possible safe RSA modulus without a trusted party. (The use case is for an RSA-based verifiable delay functi... |
For my use case, I need to maintain a secret key with the client to generate and verify HMAC for requests.
We can have multiple clients and we can not make assumptions such as a client's server will always reside in EC2.
I am considering envelop encryption for our secret keys using AWS KMS.
I have the following concern... |
I am looking for an analysis of practical mix networks with server downtime.
For example, if a message is supposed to go from A -> B -> C -> D, what happens if B wants to send the message but C is offline temporarily?
This could be a stop-and-go mix network so holding onto a message longer is OK, but I am wondering whe... |
Came across this concept on while reading up on the key-encapsulation protocol SIKE but haven't been able to find a good explanation of what a known answer test is formally.
What is a known answer test, and why is it useful?
|
How are the permuted choice tables - PC-1 and PC-2 - calculated for the DES block cipher algorithm?
|
Why do we use 64 bit as block size for the DES algorithm? Is there a reason not to use another block size, for instance 72 bits?
|
The high level details of the encryption I'm using is:
AndroidKeyStore create/store RSA key
AES key is created and wrapped with RSA/ECB/PKCS1Padding
Encrypted AES is saved to disk.
Data is encrypted with AES/GCM/NoPadding and saved to disk.
Every encryption operation generates a new initialization vector from the plat... |
According to this article, which looks at attacks on Caesar candidates beyond what they claim, they include an attack on page 6 for nonce-respecting adversaries for AES-GCM which allows IVs longer than 128-bits at the birthday bound (i.e., $2^{64}$).
My question is why is GCM not susceptible to this attack for 128-bit ... |
I am working on some tasks in Crypto, specifically on this small task: https://cryptopals.com/sets/2/challenges/9, which I aim to implement in Python.
The point is to add padding for a certain number of bytes, and the value of each byte is the number of bytes added. The example given is "YELLOW SUBMARINE\x04\x04\x04\x0... |
I am trying to understand public key encryption. I found the table below in a paper online. I am struggling to understand the meaning of this. From the bits and pieces read, I am tempted to think that the first column is just the encryption done on a secure channel with key lengths as a row. And the premise is that I a... |
Say we have a sequence of N 16-byte plaintext blocks encrypted using AES in CBC mode, with an IV, resulting in N+1 16-byte ciphertext blocks. Can this ciphertext be manipulated in such a way that, once decrypted, the plain text would become shuffled (i.e. some of its N blocks become reordered), but with no other modifi... |
Given an attacker know both the encrypted message (+ an iv) and the equivalent decrypted message, is it possible for him to craft a new encrypted message that could result in a desired decrypted message? I'm using aes-256-gcm algorithm specifically.
|
I thought of this recently:
There are some websites which have many publicly accessible pages, some of which could be embarrassing despite being public (e.g. Wikipedia). The HTML for these pages also references other resources (other pages, images, Javascript, etc) whose sizes are also known to the attacker.
An attacke... |
I have an understanding of PFS as used in most key agreement algorithms as well as things like TextSecure protocol and ratchets. My undestanding is that PFS is not possible without asymmetric (public key) cryptography. Am I missing something? Can PFS be achieved with symmetric cryptography and preshared keys only.
|
Consider having the worst possible communications channel, where bits are flipped with probability 0.5.
Is there any probability that channel errors make the change in a frame go un-detected through CBC-MAC?
|
libsodium verifies that the HMAC is correct with the following code:
return crypto_verify_32(h, correct) | (-(h == correct)) | sodium_memcmp(correct, h, 32);
where crypto_verify_32 is
for (i = 0; i < n; i++) {
d |= x[i] ^ y[i];
}
return (1 & ((d - 1) >> 8)) - 1;
and sodium_memcmp is
for (i = 0U; i < len; i++) {
... |
If I have a password pwd, and I hash it with SHA256 and send it to a server for authentication (server will apply bcrypt for storage), and then I use PBKDF2-SHA256 with a large number of iterations to derive a key for decrypting user data, does the fact that the server knows the original SHA256 hash or the bcrypt hash ... |
Let us say Alice has a list of public keys of her contacts. Bob wants to contact Ted and Bob has public key of Ted.
Now, Is it possible to confirm that Alice has the same public key, without revealing that Bob wants to contact Ted? If we ask directly Alice, there will loss in privacy for both the users. Is there any re... |
There is an elliptic curve. $y^2 = x^3 +ax+b \pmod p$ ($p$ is prime number)
To solve DLP, need to find $r$ from given points $G$, $rG$. ($G$'s order is $q$ and $q$ is prime number)
The MOV attack uses a Weil Pairing, which is a function $e$ that maps two points in an elliptic curve $E(\mathbb{F}_p)$ to a element in t... |
I am having some issues generating a proper private key,I need it to be an Elliptic Curve private key suitable for use with NIST P-256 which i than need to convert to Base64-encoded private key in PKCS #8, for some reason when I generate the key and than base64 encode the bytes I end up with a string of 108 character... |
I am new to cryptography, I have used OpenSSL and its aes-256-cfb cipher before to do stream encryption, which works great. Now I am going to try libsodium, since it's light and its APIs look concise, but I can't get it working.
I tried its XChaCha20 stream cipher, but it only has the crypto_stream_xchacha20_xor and cr... |
the following rfc describes the key-pair generation mechanism for Ed25519; the first two steps are as follows:
Hash the 32-byte private key using SHA-512, storing the digest in
a 64-octet large buffer, denoted h. Only the lower 32 bytes are
used for generating the public key.
Prune the buffer: The lowest three b... |
i've written a simple code for payload encryption, i'v done it with AES-128 CBC mode ,it works fine ,the senario is very simple : the publisher send a JSON payload format that includes the encryption key , IV (Initialisation Vector) and the encrypted data, the subscriber extract the key and IV then decrypt the data rec... |
Can someone help me understanding the CCM authenticity bound by Phillip Rogaway?
i-e Success probability < $q_{\text{dec}}/2^\tau + \sigma/2^b$.
$\tau$ is tag length, where as $b$ is block length. $q_{\text{dec}}$ is the number of forgery attempts, I can not get whats "$\sigma$" is?
Also If i am not looking for forgery... |
Hey guys i am trying to crack some hashes and it seems to be taking longer then expected (going on 7 days now). I am using John the ripper, I cant use hash cat due to pc limitations. I used online decrypters, it could decrypt some of the hashes but not all of them. I literally tried probably almost every online decrypt... |
I have a question about an implementation of the Paillier cryptosystem.
In the description of Paillier above, encryption of a plaintext message $m$ on $\mathbb {Z}_{n^{2}}$, $0\leq m<n$, proceeds by choosing a random number $r$ such that $0 < r < n$ and computing the ciphertext as $c=g^{m}\cdot r^{n}{\bmod n}^{2}$ fo... |
I've tested Twofish (256 bit) as follows. A lengthy pseudorandom sequence was generated and used as a key. Plaintext phrases 000000000..00, 00000..01, 0000...FFFFF, were generated and encoded using Twofish with the key. Ciphertexts were split in 32 bit numbers (40 million numbers total).
In theory, the cipher should pa... |
I have seen a lot of articles and research papers about breaking the Keeloq algorithm. My understanding is that the hardest part is getting the 64 bit manufacturer key. Some methods use crypto-analysis and some use power analysis to get the key. Once the manufacturer - and other parameters - have been obtained it is tr... |
I have a scenario where a client has a private set and the server has a large public set, we would like an estimate of the intersection size or more specifically the percent of the private set covered by the public set.
However we do not want to send anywhere near the entire public set over the wire, even a bloom filte... |
The Problem is as follows:
$E: y^2=x^3+17230x+22699 \pmod{23981} $
$p=23981$ is prime number
point $G$
$G$'s order $109$ : prime number
Alice creates a public key by selecting a private key $d$ ($d<q$)
public key $Q= dG= (3141,12767)$
therefore public information : $a,b,p,G,q,Q$
private key : $d$
However this curve ... |
Let me elaborate: Say we have two distinct inputs: $A$ and $B$. We also have some arbitrary deterministic mutation protocol $M$ (for example reversing the characters and performing a Caesar cipher).
Say by chance (I understand this is extremely unlikely) $A$ and $B$ result in the same hash when run through SHA-256. How... |
Given $f(x)$, a weak one-way permutation, how to prove that $f^T(x)$ is not a strong one-way function? Here $f^T$ denotes
$T$ times self composition of $f$ and $T$ is a polynomial in input length.
|
I know that RSA relies on the integer factorization problem: given two primes p and q, their product p . q is easy to compute. But not feasible (i.e., polynomial-time) an algorithm is known that could factor an arbitrary product p.q.
Why would an efficient integer factorization algorithm render RSA insecure?
|
Shamir's Secret Sharing algorithm works by breaking a single secret to multiple parts. While it is trivial to implement the reverse in a $n$-out-of-$n$ scheme, how would one implement an $m$-out-of-$n$ scheme were $k$ predefined shares $(k < m)$ are included in the share pool?
It is obvious that the resulting secret w... |
In CTR mode (not nonce-based), if we have ${IV}\stackrel{\$}{\leftarrow}\{0,1\}^{128}$ and want to encrypt message blocks $M_1, M_2, ..., M_\ell \in\{0,1\}^{128}$:
The ciphertext is $IV\parallel C_1\parallel C_2\parallel...\parallel C_\ell$, where $C_i=AES_k(IV+i-1)\oplus M_i$.
Note that $IV$ is random here.
How abou... |
Within RSA the private key can be derived if one knows both $p$ and $q$. Is it possible to derive the RSA private key or decrypt / learn something about encrypted messages if you only know one of the prime numbers and not the modulus $n=pq$? The only available knowledge of the crypto-system is the ciphertext of a singl... |
I recently discovered Tox whilst looking for alternatives to Skype, and while the Tech FAQ goes into some details about algorithms used, etc. I don't understand how keys are securely exchanged.
I understand that at least the following takes place:
Asymmetric keys are used to exchange a symmetric key.
Symmetric keys ar... |
I am trying to convert $(g^a)^{i^2}\mod p$ to an equivalent Elliptic Curve expression.
Let's assume a base point $G$ over an appropriate ECC.
Will $(g^a)^{i^2}\mod p$ be equivalent to $G\cdot a\cdot i^2$ (where the dot operation is multiplication over the elliptic curve)?
|
An ideal functionality considers reliable communication channels, whereas a real functionality must consider unreliable communication channels (e.g., channels controlled by the adversary). Thus, it seems that no real functionality (that is reliant on message delivery over an unreliable channel) can be proven equivalent... |
I'm looking for an RNG that in the case that an attacker would get all or part (most likely part) of the pseudorandom data, there will be no way for them to deduce the original seed more efficiently than brute force.
Which RNG's would comply with my requirements?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.