instruction stringlengths 32 27.2k |
|---|
I have a question about a cryptographic nonce. I understand the use of a nonce, however there is one particular part that I don't understand. Please consider the picture below.
I don't really understand why a replay attack is impossible, if the nonce is not encrypted. Because, if it isn't encrypted and I (as an attack... |
In a recent study SHA-1 is a Shambles - First Chosen-Prefix Collision on SHA-1 and Application to the PGP Web of Trust by Gaëtan Leurent and Thomas Peyrin. 2020, they showed the first practical chosen-prefix collision attack that required two months of computations using 900 Nvidia GTX 1060 GPUs.
Chosen-prefix collisi... |
I am studying elliptic curves in particular point counting. If I have coordinates P and 2P, is there a way to calculate the total points in between P and 2P using either curve parameters or algorithm?
The reason for the question is to determine if there is difference in the total number for each nP, without having to ... |
I'm more of a visual person, so a chart or table layout usually works best to help me "see".
I'm just trying to locate a resource that shows me where the various ciphers fall in relation to each other based on the various configurations they can be used.
Same for file hashing (using SHA-1 vs HMAC SHA-1, etc).
NOTE: As ... |
Does anybody know applications of higher reciprocity laws (i.e. the reciprocity laws "higher" than the quadratic one, like the cubic or quartic reciprocity law) in cryptography?
So far I have found this paper that uses the quartic reciprocity law to identify the messages in the Rabin cryptosystem.
|
In the following paper (page 5) they have a proof that a triple $\left(g,b_{i-1},b_{i}\right)$ is of the form: $\left(g,g^{x},g^{x^{2}}\right)$ for some x.
The relevant text from the paper is as follows:
They say the protocol is based on a classic proof that a tuple is a DH tuple, however I don't agree because I thin... |
To give some context:
I am looking for a suite of techniques and tools that can theoretically enable me to conduct analysis such as classification on image datasets in a manner in which a naive observer cannot derive "much" information from an image e.g. if the image is of a person/object then the naive observer cannot... |
I'm trying to solve an exercise where you have to compute two plaintexts $p_1$ and $p_2$, knowing the corresponding ciphertexts $c_1$ and $c_2$ and the public key, of which $e=3$, and $n$ is a large number.
Also given is a relation between $p_1$ and $p_2$. $p_2 = c_1 \cdot p_1 + c_2$. Where $c_1$ and $c_2$ are constan... |
Let's say I have a message 0123456789abcdefghijklmnopqrstuvwxyz which gives me the SHA-256 hash 74e7e5bb9d22d6db26bf76946d40fff3ea9f0346b884fd0694920fccfad15e33.
I want to prove to someone that I know a part of the message that hash to the hash, for example xxx34567xxxxxxxxxxxxxxx is it possible to do this?
Obviously t... |
In many applications, the MD5 algorithm is used which produces a 128-bit output which is represented as a sequence of 32 hexadecimal digits.
This output is further encoded using a base62 or base64 scheme.
I wanted to understand what is the need for further encoding the hash value.
Why could we not use the same hash val... |
It is known that a cipher has a keyspace of cryptographic algorithm whose key length is $n$ is given by $2^n$, but the keyspace of the substitution cipher is $2^{88}$ which is an approximation of $26!$. (I am considering an alphabet of 26 letters)
Assuming the key length is 26 (which it should be for the alphabet) Why ... |
if we assume that the s-boxes in DES were optimal. that is for each s-box, every cell in the DDT equals to 4. is there a differential characteristic in a good probability?
|
I am interested in algorithms that consume as less space available on a memory, for low consuming power devices such as wireless nodes. From a search I have found this article here:
https://dl.acm.org/doi/pdf/10.1145/2103380.2103433?download=true
I have read it but I cannot understand where it is based in order to prov... |
I read about Niederreiter Cryptosystem. I understood the Key Generator, encryption and decryption of the cryptosystem, but if I want to prove that is a correct cryptosystem, what should I do?
|
Kind of a noob question. Suppose;
We generate 1,000 cryptographic-ally secure random numbers & store each of them in an array1.
For each number in this array1, we take the hash sha256(CSRN) then store the digests in array2
For simplicity, lest say array2 has 3 digests,
array2 = [a22110a41f165b6b0f3cc053b50214b284add... |
The destination is software (within a remote trust boundary) that expects SHA-1 results. Would it be safer for the source (that's within my own trust boundary) to replace my SHA-1 computation at my source with a SHA-512/160 instead?
|
My question is very simple. Can I use Post-Quantum encryption/decryption algorithms in IoT devices such as RaspberryPi, Arduino etc, or should the hardware infrastructure obey in quantum logic?
|
If 3DES/TDES (officially TDEA or Triple DEA - Triple Data Encryption Algorithm) encryption is used twice, using 6 different keys K1-K6 :
ciphertext = EK6(DK5(EK4(EK3(DK2(EK1(plaintext))))))
plaintext = DK1(EK2(DK3(DK4(EK5(DK6(ciphertext))))))
would be such encryption more strong and less vulnerable to attacks than a ... |
Consider the problem of proving knowledge of a message $m$ which has a certain public SHA-256 hash $h$, without disclosing $m$ or usable information about it, while minimizing the information exchange (across a bidirectional channel assumed to provide integrity). First restrict to single-block SHA-256 ($m$ less than 44... |
Total amateur to crypto here but I've searched and searched and am at the extent of my knowledge. I've gone down several avenues to satisfy what I'm looking for but I'm just going to describe what I'd like to achieve and see what comes back.
I am creating a transactional peer to peer pub/sub network and I need the foll... |
I understand that the role of a Certificate Authority is to SIGN (not encrypt) a certificate. The signed certificate will theoretically contain:
Plain text of data, including the server's public key
Signature of hashed version of plain text of data in (1) so that a user can verify (using CA public key) that the certif... |
If the attacker - some guy who really, really wants to steal bitcoins - somehow finds the ephemeral key used in an 256-bit ECDSA signature, can he recover the private key?
If so, would knowing the partial bits of the ephemeral key be sufficient to recover the private key entirely?
|
I would like to know whether a specific PRNG satisfy the next-bit test or not.
will satisfying all of NIST statistical tests on PRNG guarantees passing the next-bit test? Or is there a specific algorithm to test for this?
|
Recently a paper has been released about SHA-1 chosen prefix collision.
They present what a chosen prefix collision is, but I don't understand how is it more interesting than a standard collision ? They briefly mention x509 rogue certificate, but I still can't get the point.
Can anyone explain to me how interesting it ... |
Let $P=(x_p,y_p)$ be a point on elliptic curve $E (a, b) := y^2=x^3+ax+b$, for an integer $n$, there exists a point $Q=(x_q,y_q)=nP$ on $E (a, b)$.
If $(x_q,y_q)$ and $n$ are given, what is the algorithm to find $(x_p,y_p)$?
If possible provide code for python.
|
I came to a problem when calculating some values for RSA encryption task.
So the data I have is this:
$e*d=81$
$C=5$
Now I have to calculate the original message($m$) and I have an issue because I can see what the solution for $m$ should be, but I get a different answer.
So far, I was able to figure out that $e=27$ and... |
Reading online I've found out that for example the RSA implementation that you usually find on textook is not secure.
Where I can find some secure implementation of algorithm such as RSA, ECDH, ECDSA?
(written in C or C++ or python)
|
Is using scrypt or argon2 a better key stretching technique with AES compared to PBKDF2 or bcrypt with regards to
a quantum computer brute force attack. The brute force attack I'm referring to is trying to generate keys from lets say a million
passwords and trying them on an encrypted text to get the password. In other... |
The authors of this paper: Fast Parallel Molecular Algorithms for DNA-Based Computation: Solving the Elliptic Curve Discrete Logarithm Problem over $GF(2^n)$ proposed a novel algorithm based on DNA computing which they claim (in theory, at least) can solve elliptic curve algorithms in polynomial time.
An excerpt from ... |
From my understanding on the internet about length-extension attack, I have understood that hash(secret_key|known_data) can be exploited to produce hash(secret_key|known_data|appended_data) even without knowing the exact value of the secret_key by just knowing the length of the key. I tried implementing this using hash... |
I'd some EFS-encrypted files on a HDD which were deleted unintentionally. I used a data recovery software to restore them, but afterward, windows does not recognize those recovered files as encrypted anymore. I've pfx which files were encrypted with, but I'm unable to use it. Is there any way to recover my data?
|
A leader should be selected by randomly choosing one of three parties A, B and C. The parties use the following
protocol:
$A → B: N_A$ (where $N_A$ is a nonce)
$B → C:$ $N_{AB}$ $= N_A$ ^ $N_B$ (where $N_B$ is a nonce, and ^ is the ex-or operation}
$C → A:$ $N_{ABC}$ $= N_{AB}$ ^ $N_C$ (where $N_C$ is a nonce)
( Now b... |
I have a plaintext about 18 bit size.
I have to encipher it using RSA.
How large have to be p and q?
So M (message to encipher) = 2**18 bit
I tried, using a Python coded RSA algorithm, different sizes for p and q, and my results are these:
p=61, q=31 not working
p=61, q=127 not working
p=997, q=4253 OK working
I tried... |
I recently made a very naive implementation of AES using lookup tables, but it's totally unsafe because of timing attacks. I am not interested in using the processor specific instructions for AES, which is used practically, since I wanted to make a cool project with AES ! Is there any way to prevent my AES implementati... |
I'm reading this paper
https://eprint.iacr.org/2011/344.pdf
It says that
"The secret-key encryption scheme whose security is based on the LWE assumption is rather straightforward.
To encrypt a bit, $m \in \{0, 1\}$ using secret key $\mathbf{s} \in \mathbb{Z}_q^n$, we choose a random vector $\mathbf{a}\in \mathbb{Z}^n_... |
I'm studying how zero knowledge for quadratic arithmetic programs works (GRO16 page 17) and try do understand proof simulation part.
If I understood right, if malicious party knows $\alpha , \beta ,\delta$ from setup it will be possible to construct $A,B,C $ that will satisfy verification equation.
Are there are any ... |
I want to know how I can implement this protocol. I know how Shamir three pass protocol operates without elliptic curve, but I don't know how I can perform it with elliptic curve.
I read about this protocol; if Alice want to send to Bob then:
Alice convert the message in a point $M$ of the elliptic curve. Then she pic... |
I've heard of password cracking attacks using a list of commonly used passwords. Suppose in my situation, I can never be sure about the strength of the password, that a user inputs to my interface. So if I compute the SHA 256 hash of the user inputted password, then hash the hash again n times will that increase its ov... |
https://raw.githubusercontent.com/andres-erbsen/salsa20/master/salsa20.c
I tried it, and it's working fine. Now question: is it real salsa20?
|
I'm sort of a beginner on cryptography so this is probably a really elementary question. I only know the historic ciphers and the general background on cryptography as well as it's general meaning. I'm just starting to dive into modern ciphers like RSA and DES.
When looking at RSA, aside from using different keys for ... |
NIST 800-90B recommends Section 4.4.1 Repetition Count Test & Adaptive Proportion Test for health test on Noise sources.
In the equation to calculate the cut-off value C for Repetition Count Test, C = 1 + [-log_base_2 Alpha / H]; Alpha is 2^-20 but how is Min Entropy H being calculated ?
In the equation to calculate ... |
Given that much of our ECC crypto primitives provide “only” 128-bit security when defined over a 256-bit curve due to pollard-rho, is it then still safe in 2020 to consider 128-bit security safe for the medium term (5-8 years).
I’m looking for an answer from an energy/thermodynamic POV given advances in current lithog... |
PKCS11 cryptoki version 2.40 Current mechanism specification (section 2.8.5), says below statement for AES CBC wrap:
For wrapping, the mechanism encrypts the value of the CKA_VALUE attribute of the key that is wrapped, padded on the trailing end with up to block size minus one null bytes so that the resulting length i... |
TL;DR: Is there such a thing as a hashmap whose contents cannot be read unless you have the right encryption key, and where each encryption key only works for a specific key value pair?
More context:
Say you're building an offline first web application and want to save the client from having to do a bunch of round trip... |
This is a semantics Question. Typically, in many asymmetric schemes, for this question specifically, digital signatures, we see that designers describe the key given to the verifier as Public Key.
However, in some contexts, specially identity based games, I would imagine the key used for verification should remain sec... |
Here's a question. I have a file that have to be encrypted with strong cipher (I've choosen AES-CTR-128). I'm using MVC 2019 to compile C++ program. Firstly, I create RSA-2048 key pair (public and private), then I read all data from file to buffer (filesize ±300kb), encrypt with AES-CTR-128 buffer with data from file, ... |
Is it possible to ever have a commitment scheme that is statistically binding but not perfectly binding?
The sender would be computationally unbounded, hence could always computationally trudge through all potential (message,key) pairs. Statistically binding would mean the probability of finding a pair is very very un... |
I want to do "hash visualization", i.e. derive a human-meaningful information from a hash, like a phrase or an avatar. But the current techniques usually don't use many bits, for example tripphrases by Bret Victor only use roughly 43 bits. This is a problem because all the hash isn't used, so using a "big" hash functio... |
there is a Scrypt cipher which is used for exmaple by some cryptos like LItecoin for their mining algorithm.
I never heared of scrypt. I know eg SHA256 which is well analyzed and considered as secure until now.
1) ANy known crypatanalysis for scrypt / vulnerabilities?
2) is scrypt considered in the community as a secur... |
I am new to cryptography and have a question.
If I try to wrap some key using an AES key using DES3_CBC_PAD as a wrapping mechanism will this go to work?
I am doing this operation inside an HSM.
|
There is a scrypt cipher that is used for example by some cryptos like LItecoin for their mining algorithm.
I never heard of scrypt. I know eg SHA-256 which is well analyzed and considered as secure until now.
Any known cryptanalysis for scrypt / vulnerabilities?
is scrypt considered in the community as a secure (c... |
I'm looking for a non-interactive proof of work scheme. I want for it to (1) be faster to find solutions to if you're in the possession of an arbitrary secret, like a private key, and (2) for the domain of the solutions to be bounded, so that if you're in the possession of the key you can trivially enumerate the soluti... |
Although the ElGamal scheme states that the message $M$ must be $1 \le M \le p-1$ in this paper: A Secure and Optimally Efficient
Multi-Authority Election Scheme they propose a method where the message can be $-l \le M \le l$ where $|\ l\ | \lt p/2$. This is stated in page 9.
The idea behind the paper is that for 2-way... |
I read this question in my book (that doesn't have a response).
2DES is doubly more secure than DES?
I know that 2DES can be attacked from meet in the middle attack.
In fact, from Wikipedia Meet in the middle say :
The MITM attack is one of the reasons why Data Encryption Standard
(DES) was replaced with Triple DES... |
Here is what I mean with "Mickey Mouse Version":
CHARLIE makes a keypair key1 and key2
CHARLIE sends key1 to ALICE
CHARLIE sends key2 to BOB
ALICE encrypts a custom message with key1 into code
ALICE sends code to BOB
=> that's true one-way encryption
=> (ALICE has no way to decrypt the message again)
BOB decrypts c... |
I am working on a puzzle and think there is a message hidden in one of the files that is a BMP file. I am wondering if there is a program somewhere that could find it?
|
First if this is the wrong place to post this please forgive me.
I know my passphrase. I don't remember specifically how I entered it. ex. If the phrase is "The house at the end is blue and white. I like it." I would have used the first letters of each word... "thateibawili" My problem is I can't remember if I, in thi... |
I'm building a website. I have an API which takes 2 parameters: delete_user(user_id, hash).
And there is method to evaluate hash using SHA512:
String hash(String user_id)
{
String key = "23jfk3jf...343fk";
return SHA512(user_id + SHA512(key));
}
And the second method to validate:
bool validate(String user_id, ... |
Given a short Weierstrass elliptic curve $C$ over $F_p$ and a point $(x, y)$, it is easy to verify that $(x, y)$ either satisfies the curve equation (on-curve) or does not (off-curve).
In the case that it is off-curve, is there an efficient way to test if $(x, y)$ is on a quadratic twist of the curve? I can easily gene... |
Is there a way to prove/verify that an exponential ElGamal ciphertext of a message representative $\widetilde{m}=mG$ is well-formed, meaning that $r_1 = r_2$ in:
$$C = (R, S) = (r_1G, \widetilde m + r_2Y)$$
with $Y = xG$.
|
I saw in another thread: Is using 7-8 random words from all words of a language as password a good idea?
These calculations:
If we assume that English has 171,476 words. Then with 8 words the entropy is:
$$P(171476,8) \approx 7.474 \times 10^{41} \approx 2^{140}$$
Therefore you will have lower entropy than Bip-39, ag... |
For the AES-GCM mode within many cryptomodules, their FIPS-validation certificates list the options:
Payload Length: 504, 512, 1016, 1024
AAD Length: 0, 504, 512, 1016, 1024
For example in OpenSSL, "int aad_len" is the term for the 'AAD Length'.
What do these numbers refer to?
Are these maximum allowed, minimum all... |
For example, I'm using AES-CTR.
I use fixed (random generated) key and random IV. I know that I have to encrypt key but I don't know about IV.
If I will encrypt 1 block of data with fixed key and first IV then encrypt another block of data with fixed key and second IV - does this violate the security of AES-CTR?
|
What are the latest advances in fully homomorphic encryption? First of all, I am interested in cryptosystems based on LWE / RLWE and NTRU problems.
|
Say that there are different live situations where you have to select own PIN numbers.
Can someone say if it is possible to guess a 8 digit pin within 3 tries, given any methods or resources?
Is this too hard with today's technologies or possible? What about quantum computing?
And if you know, could you tell me the ent... |
An adversary wants to find $a$ in
$$m \equiv g^a \bmod P$$
He knows prime $P = 2 \cdot c \cdot k +1$ with it's primes $c,k$, value $m$ and $g$. And he also knows that $g$ only has an order of $k$, so:
$$g^k \equiv 1 \bmod P$$
Question:
If now the prime value $P$ gets increased for constant $k$ (order of $g$ still $k... |
In a correct implementation of X25519+XSalsa20+Poly1305, I think I have the right understanding in saying that the Poly1305 message authentication code is a function of the secret key + plaintext.
With such a construction, on the recipient side, is there the need to supply some extra secret to check the validity of the... |
I just read about Diffie–Hellman key exchange and was wondering how the value created from that can be used for any encryption method. Here is a link of where I read it from.
|
So I downloaded the Breach Compilation (the 1.4 billion usernames w/ respective passwords). When doing so, the friendly dev-like homies they are over @ github where the .torrent file for the latter is posted, were kind enough to implement a sort utility, among others (such as a lookup tool etc.).
just wondering how I a... |
My textbook states, that the DDH-assumption is not satisfied when we use the group
$\mathbb{Z}/p \mathbb{Z}$ and demonstrates an attack using Eulers Criterion. After that, it states that one should use the group of quadratic residues ($\operatorname{QR}$) over $\mathbb{Z}/p \mathbb{Z}$, where $p=2q+1$ is a safe prime.
... |
So I am at the same step as someone from math.stackexchange but he never recieved an answer so I will copy-paste his question here:
Say, for N = 90283, I compute bound =(12+(1))(ln()ln(ln√))=44, where I take (1)=0.22 (just a random guess, I assume). What is the best way to pick good (1)?
Then I take =⌈$\sqrt{n}$⌉=301
T... |
I am working with an embedded system that accepts firmware updates only if they are validly signed by a particular 2048-bit RSA private key (the embedded system's bootloader knows the corresponding public key).
On the publishing side, the signature is generated by:
computing the SHA-256 hash of the firmware image
padd... |
This question doesn't cover any technical aspects of PQC but I would want to know if undergraduate computer scientists study at a good level any of the available PQC schemes in literature during their stance at university in whatever country you know.
Don't get my wrong, in the country where I live there is no PhD on C... |
I’m trying to figure out how I could create a private group that was P2P yet still allowed someone to moderate members (no public access to messages). I’m assuming standard hybrid encryption (RSA/EC + AES) for actual messages.
I am thinking about having the owner create a master group keypair, then create a new subkey... |
(This is inspired by this question 1; have also read this question 2 but it's one-time pad)
I would like to know, given two message $m_1$ and $m_2$, as well as public keys $(e,n_1)$ and $(e,n_2)$, can I create a ciphertext $C$ such that decryption with private key 1 $(d_1, n_1)$ gives $m_1$ and $(d_2, n_2)$ gives $m_2$... |
Alice, Bob, and Charlie are working on three projects.
Alice is the manager. At the beginning of each day, she chooses one
project to work on (this choice is based on her preferences and is
not random) and then assigns the other projects to Bob and Charlie.
Bob and Charlie demand that this assignment be 50/50 random a... |
To overcome short key length of DES, Triple DES was devised. What would go wrong or why didn't people redesign the key scheduling algorithm to use longer keys?
|
Is the PCG family of PRNG algorithms cryptographically secure, and if not, what about them makes them inadequate for that?
I have a good enough understanding of the general problem space that if you mention something like "backtracking resistance" and give a sentence summary of what it means, I can connect the dots eno... |
I'm trying to reverse the Java random seed using 81 calls to nextInt(bound) with a bound of 4. I am wondering if it is at all possible to reverse the random seed.
In this situation Java's random number generator is called 81 times, and for each call I know if the returned value is either 0 or not 0. Looking at the int ... |
Full paper
Would you mind telling me based on the attached file, why in case 3(corrupted client B), the authors did not use the real input which is $S_B$ and instead they have generated $S'_B$? In this case, I think the reason why authors have generated $S'_A$ is that party B has no access to $S_A$(belongs to party A),... |
I'm Alice, and I generate a public/private key pair. I securely & confidentially share my public key with Bob and Carol, who securely & confidentially share it with various other benevolent users – all of whom can now send me encrypted messages that only I can decrypt.
I'd like to authenticate that the encrypted messag... |
There are public key algorithmic differences for how PGP computes fingerprints and keygrips. For the v4 protocol, fingerprints are not exclusively computed from public keys while keygrips are. RFC 4880 makes no mention about keygrips.
After digging into code at $10$ different places in the libgcrypt, it is still a myst... |
I know Symmetric encryption systems. Can someone explain the difference
|
I'm trying to create a message-transfer system where
The encrypted messages are stored in a public database.
It is possible to verify who is the sender of this message.
The sender cannot prove to anyone else the content of the message. I mean, he/she cannot re-encrypt the plaintext message and match with the ciphertex... |
I am a beginner in cryptography, i recently learned about RSA algorithm : In short, my understanding for this is :
Sender needs receiver's public key to encrypt the message to a cipher so that only receiver can decrypt the cipher text to original message and vice versa.
When i try to understand the implementation in ne... |
Does a simulator in the semi-honest model in IDEAL/REAL model paradigm necessarily make use of the corrupted party's input?
For example, suppose a simulator given an input named $I$ and an output named $O$, tries to simulate the view of the real world. In this case, should the simulator necessarily use the input $I$ fo... |
I have a doubt about parallelizability and preprocessing in modes of operation.
I understand that these two technologies are able just when the "block" is independent.
In another way, ad example in CBC, since the second(and so on) block depend on the previous one, we can't apply this two property.
I saw this question ... |
I would like to proof that I am in possession of private key sk for public key pk using libsodium.
Therefore I am signing a constant message m using libsodium's crypto_sign function. The signed message (signature + m) is then published.
libsodium crypto_sign uses Ed25519 as digital signature scheme.
Questions:
Does th... |
Suppose we have a two-party protocol in the semi-honest model, which is based on an additive homomorphic cryptosystem like Paillier.(P2 will generate the public and private key and publish the public key to P1)
P2 will compute $R_1, ..., R_n$ using some operations and then send the vector $V=(R_1, ..., R_n)$ to P1. Sin... |
Based on the question proposed on page 27, we propose a modified question as follows:
Suppose the protocol is based on Paillier cryptosystem and $P_2$ has generated related public and private keys ($P_2$ publishes its pub key). Then, $P_1$ will encrypt $x$ using the public key and send it to $P_2$.
Considering this s... |
So I was contemplating this answer to my last question, and it got me thinking:
If I understand it right, one of the required properties of a CSPRNG is that it resists leaking information about its internal state from the outputs it produces.
So say we have a PRNG that meets all other properties of a CSPRNG (I do not y... |
Consider a normal PKI encryption flow - hash the plaintext, then encrypt the hash with the private key of the sender and then encrypt it with the public key of the recipient. All this is good - and I am good even with the decryption steps taken by the recipient.
I still don't understand how the recipient gets the pla... |
Suppose a ciphertext $c$ was encrypted from plaintext $m$, and we know something about the form of $m$; say, for example, that $m$ is English text.
We can attempt to brute-force $m$ from $c$ by computing $E^{-1}(c)$ for all possible encryption functions $E$ and discarding the values of $E^{-1}(c)$ which are not English... |
"Skull" or "Skull and Roses" is a table top game. The rules can be found here.
I was thinking of how I could play this game P2P. At first it seemed easy: Each time I had to place a card face down I would make a choice hash it, send it to my opponent, and then when it needed to be checked you could give out your answer ... |
In several prime generation schemes I saw we pick a random number uniformly at random from a wide range and find the next prime after it.
Obviously with such a scheme some primes are more likely than others, a prime is as likely as the distance to the previous prime.
The question is how unbalanced is this? If a friendl... |
Recently Blake3 has been announced, which can be used as PRF.
I'm wondering which PRF is faster, namely PRF based on Blake3 or the one based on AES-CTR?
|
We are working on an application in Android using Java. In our project, we used to generate EC key pairs (of size 384 bits) using SpongyCastle - an old Android version of Bouncy Castle.
The problem we face is users losing their phones or private keys. Since we are not the only ones facing this problem, I took to the I... |
For encryption a prime $P = 2 \cdot Q \cdot R \cdot S +1$ was used.
An adversary want to solve the discrete log problem $m \equiv g^i \bmod P$. For this he want to use the Pholig-Hellmann algorithm.
To use this he need the factorization of $P-1 = 2 \cdot Q \cdot R \cdot S$.
Factor $2$ is trivial so he only need to kno... |
My question is how safe is XORing two algorithm outputs together...
...For Symmetric Encryption:
Master key from CSPRNG ==> MK
HKDF-Expand(MK, info="AES") ==> AES Key
HKDF-Expand(MK, info="ChaCha20") ==> ChaCha20 Key
Ciphertext = Message XOR AES-256-CTR_STREAM(AES Key, counter) XOR ChaCha20_STREAM(ChaCha20 Key, counte... |
I want to discuss a simplistic scheme that comes to my mind, after I read about zero-knowledge proof and some fermentation time. I should mention that this is not born out of a business need or academic studies / research. So please bear my level in security in general.
Assumptions:
With n participants and m < n commun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.