instruction stringlengths 32 27.2k |
|---|
As far as I know, IND-CPA is used to protect against frequency analysis. But if RSA is only used to encrypt symmetric keys, what's wrong with using only textbook RSA because random keys are very unlikely to repeat?
|
I am developing an application that is based on UDP, and I need to send a stream of packets. As you can imagine, packets can get lost or corrupted. I need to make sure that the content of those packets is encrypted, and I also need to be able to certify that the packet is correct when I receive it.
Finally, since perf... |
I am really not much of a crypto guy so I don't really get how a differential power analysis on AES works.
Can somebody explain it to me how it basically works?
|
I think we are all aware of the CAESAR-competition. Now the aim of this competition is to select a (portfolio of) winner(s) which provide authenticated encryption.
I'll now assume that the results produced by this competition are very good, meaning the cryptanalysis of the next 50+ (!) years won't yield any significant... |
For example, if $m = 10011$, $k = 11001$, $n=3$ (which is the number of 1's in k), $c = m \oplus k = 01010$. If $c$ and $n$ are revealed to the attacker, is this scheme still secure?
|
I am completely new to using AES in GCM mode of operation, and I have not a very large background in cryptography as well. I have been playing with OpenSSL trying to encrypt and decrypt some messages. From my simple experiments rise the following questions:
First of all, I noticed that the size of the output is exactl... |
Homomorphic encryption is hyped by computer sciences because it offers great potentials. For example you can perform cloud based calculation while nobody gets to know you data.
I am wondering if there is any homomorphic encryption scheme that is CCA secure. Can't you always just choose a random message, encrypt it and... |
I know the public modulus is the product of two primes. For key with length L, the public modulus N should be such 2^(L-1) <= N < 2^L.
However this implies that the most significant bit will be always 1. Doesn't this reduce the search space for the primes P and Q by half?
Shouldn't N be between 2^(L-2) and 2^L ?
|
I understand that initialization vectors (IV) should not be used twice when using AES/GCM. I am using a counter as an initialization vector. Every time I send out a new packet (I am developing an UDP based protocol that needs packet encryption) I increment the counter and use it as IV.
However, since I will generally ... |
A FAQ for an open source project makes the claim:
Indeed, an elliptic curve key of length n provides $n/2$ bits of security.
I have two questions:
What is the practical difference between "bits of entropy" and "bits of security"?
How does one estimate the number of bits of security (or entropy) for an elliptic curve... |
How can I implement following problem in java code for addition? (here I use Paillier homomrphic encryption):
Input would be to generate a new AES key, encrypt the private data with that key, encrypt the AES key with the FHE key, and send the FHE-encrypted AES key along with the AES encrypted data to the compute node.
|
Reading J-PAKE Authenticated Key Exchange Without PKI document :
J-PAKE
Round 1 : Alice sends out g^x1 and knowledge proof for x1, e.g :
To prove the knowledge of the exponent for X = g^x1
My question is : Is then the recipient (the verifier) of g^x1 + NIZK of x1
able to get the x1 value ?
|
Alice wants to share a symmetric key with Bob. She encrypts the small (64-bit) secret key $K$ with Bob’s public RSA key $(n,e)$ by padding it with zeroes to 2048 bits (the length of n) and computing
$$C\gets(\text{0..0}\|K)^e\bmod n$$
Thereupon, she sends $C$ to Bob. Discuss either why this key exchange is secure or de... |
I'm new to this space and find myself stumbling over come cryptographic/mathematical notation. Search engines are not very helpful when copying and pasting Greek letters. Is there any reference that can at least give me names of what I am looking for?
|
The four Public-key cryptosystems: RSA, ElGamel, DH, and Rabin (all with others) all require some group operations in an integer field or multiplication group of some residue classes. When it comes to encrypting blocks of bits in binary how are these public key cryptosystems performed ? Are byte blocks just converted... |
Given a field $\mathbb{F}_{2^n}$, are there any choices of primitive element $g$ that make the discrete logarithm easier for that generator? That is, are there any degenerate cases?
For example, if I choose a small generator like $g = x$ in $\mathbb{F}_{2^{256}}$, can I quickly find $n$ such that $g^n = a$ for a given ... |
In “Towards quantum-resistant cryptosystems from supersingular elliptic curve isogenies” by DeFeo, Jao and Plut (PDF), the public parameters are defined as:
Supersingular curve $E$, and
bases $P, Q$ generating the torsion subgroup $E[l]$ respectively for Alice and Bob.
The parameters for the key exchange generated by... |
Please clarify the below doubt regarding EC point addition and multiplication:
$P$-Generator Point; $a$ and $b$ are integers; $X$ and $Y$ are EC points, defined as follows:
$X = (a*P) + (b*P)$
$Y = (a+b)*P$
Questions:
Are the points $X$ and $Y$ equal?
Does computing $X$ take 1 scalar point multiplication (i.e. 0.5 +... |
A stream cipher usually generates a stream of pseudo-random bits which get XORed with the plaintext to form the ciphertext. The stream is generated using a given IV / nonce and a secret key. CTR-mode for block ciphers is usually described as turning a block cipher into a stream cipher.
It is now widely known that the C... |
I recently created a program that hashes a password using SHA256 and potentially using salt. How can I crack that if I know that the password only contains lowercase letters?
|
ECDSA and ECDH give us the following methods:
// ECDSA
var signature = ECDSA.sign(privateKey, hash);
var isValid = ECDSA.verify(publicKey, hash, signature);
// ECDH
var sharedSecret1 = ECDH.compute(node1.publicKey, node2.privateKey);
var sharedSecret2 = ECDH.compute(node2.publicKey, node1.privateKey);
// sharedSecret1... |
In Hoffstein, Pipher, and Silverman's book An Introduction to Mathematical Cryptography, the authors make the following remark:
An attack in which Eve has access to an oracle that decrypts
arbitrary ciphertexts is known as a chosen ciphertext attack. The preceding
proposition shows that the ElGamal system is secur... |
I learned from Dan Boneh's course that many cryptographic primitives (prngs, stream ciphers, hashes, hmac, key derivation functions) can be built from just one a block cipher or PRF.
For example, the sha-1 hash is based on a compression function which can be used to make a block cipher SHACAL-1. More generally a Hash f... |
When using symmetric cipher, does the following statement holds:
E(x, k) means encrypting x with key k in ECB mode
E(E(x, k1), k2) = E(E(x, k2), k1) ?
Then the decryption could go in opposite way round and the message x would be the same.
|
I would like to know how public key cryptography is used in the banking world. I am not looking for big details, but for example:
Are banking card embedding a private key used for signing (authenticating) user transactions?
During a transaction between Bank A and Bank B, is Bank A expected to sign the transaction so t... |
I am looking at some decompiled Java code from an Android app. As a security measure, a signature is passed as a parameter to a number of JSON requests.
The method that generates the signature is as so:
private String getSignature(String s, String s1)
{
try
{
Charset charset = Charset.forName("US-ASCII"... |
Suppose I have x = <64 bits of data>. I build a 128 bit block $P = x || x$, and transmit a message $M = AES(K, P)$. The receiver has the same $K$.
The receiver can then decrypt the message, split the decrypted block in two 64 bits parts, and comparing them for equality. What kind of guarantee would the equality check p... |
Say Alice has information that's already encrypted with Bob's key.
She wants Bob to decrypt it without knowing what he just decrypted.
So she encrypts it with her key and sends it to him, he decrypts with his key, and sends it back and she decrypts it with her key.
Is there a block cipher where this would work?
|
I am researching on Hashing Algorithms and would like to know if we take individual bits of MD5, say we take first 8 bits or any random 8 bits of MD5 then what is the randomness probability of having same 8-bits (at exactly the same position) in any two different MD5 hashes ?
I´ve read somewhere that MD5 being good PRF... |
I have spent the past hour reading up on salting and still don't understand how it is achieved. Forgive me if im wrong, but the way I am thinking of salting is, storing an ArrayList of random strings for example 100 strings. Now when a user registers, a method gets a random string from the array list and retrieves the ... |
Suppose I have a message $M$ for which I generate an RSA-2048 digital signature as follows:
$H = H(M)$, $H(M)$ being the SHA-256 of the message $M$
$S = H^d \bmod N$
Assume $N = pq$ is properly generated and $d$ is the RSA private key. And I verify the signature as follows:
$S^e \bmod N = H'$
where $H'$ is the SHA-256 ... |
How much more entropy gives a Hardware Random Number Generator or True Random Number Generator compared to a Pseudo Random Number Generator?
I know it depends on which TRNG is used, but I'm thinking in general. Does a TRNG generally provide more security than a PRNG?
|
It appears that the conditions for applicability of Elligator-2 against many of the SaveCurves curves, where $q \mod 4 = 3$ will inevitably poke a hole in the bit-string set over $(0, 1, .. (q-1)/2)$.
There are two conditions for use of the decoding of a bit string to a point on the curve: $(1 + u \cdot r^2) \neq 0$ an... |
The two primes $p$ and $q$ part of the public key need to be distinct.
What's the reason for them to be distinct? Is it because factorization of $p^2$ where $p$ is a prime is relatively easier, or is there some other reason?
|
We all know that textbook ElGamal falls due to chosen ciphertext attacks, because of its multiplicative homomorphic property ($E(A)*E(B)=E(AB)$).
However these attacks require the ciphertext ($E(A)$ or $E(B)$) to be given, meaning as per this answer this would mean ElGamal isn't IND-CCA2, but IND-CCA1 as the access to ... |
So. Sorry for bothering you with such a simple question, but I can't really get this done.
It's just an exam question in which I need to use CRT in order to calculate the RSA signature of a msg m=101(dec), given RSA public modulus n=527=p*q=17*31.
So using CRT I need to calculate $p^{-1}\mod q$, which is, for the Eucl... |
What is the benefit of using elliptic curves over the standard finite field, when the cyclic subgroup we consider of the EC's solution group is just isomorphic to some integer residue class of prime order? Is it because the group operation is more complex?
|
Lately I've been studying cryptography and in the current course I'm taking we're reviewing statistical tests and how they can be used to determine if a pseudo-random generator is secure or not.
Essentially, one of the requirements for a Pseudo-random generator to be secure is that the probability of guessing the next ... |
My assumptions are:
encryption must be commutative
man-in-the-middle is not an issue
I would like to implement the following scheme between 2 parties ($A$ and $B$) to exchange a key:
Lets $C = P \oplus F(K, IV)$ is a commutative encryption, resp. CTR mode of some symmetric block cipher with random key $K$, random in... |
I think most of us know the notion Shoup introduced of KEM/DEM (Key Encapsulation Mechanism / Data Encapsulation Mechanism) which is used for example by the (famous) ECIES, where the key is the hash of some random element which can only be recovered by the legitimate owner of the private key and the sender.
Now Bernste... |
Consider the point multiplication $Q=[d]P$, where $P$ a point on elliptic curve multiplied with an integer $d$ to get another point $Q$ on the same curve. This operation can be computed by a predefined sequence of point additions and point doublings. Is it possible to apply the same technique to Montgomery curves, as g... |
Point multiplication using Montgomery ladder technique over Montgomery curves only require x coordinate, which in many situation leads to faster implementation as compared to point multiplication over standard curves. However, to compute point multiplication over Montgomery curves, a differential point addition operati... |
I would like to know how to compute multiplication of two valid EC points over a curve E with generator G.
i.e. Given only P and Q points then how to compute R = P * Q
where $P = p G$, $Q = q G$ and $R = (p \cdot q)G$.
|
Crypto noob here, I am attempting to do this programming challenge. I do not have the secret key that is used to decrypt the message. However, the key is small enough for a brute force approach. I am attempting to write a function that will solve for the secret key with other variables used in the process.
She tells B... |
The symbol $\mathbb Z/q\mathbb Z$ (given that $q$ is prime) represents the prime field $\mathbb Z_q$. Basically, the elements of this field are represented by $\{0, 1, \dots, q-1\}$, let's call this the "normal representation". However, in lattice based crypto, the elements of the field are represented by $\{-(q-1)/2, ... |
In “Towards quantum-resistant cryptosystems from supersingular elliptic curve isogenies" by DeFeo, Jao and Plut, a reduction from the Decisional Supersingular Product (DSSP) problem to Decisional Supersingular Isogeny (DSSI) problem is mentioned.
However, I could not find such a reduction anywhere, or even some kind o... |
I would like to transpose the Ed25519 ref10 implementation to a similar twisted Edwards curve that is based on another prime, in order to have the same speed optimizations in place for the new curve. Most of the code is not too hard to understand.
However, I don't understand what is going on in the function 'fe_mul', w... |
I would like to clarify something about the definition of computational indistinguishability and pseudorandom number generators. Suppose we wanted to show that linear congruential generators of the form $x_t = ax_{t-1} + b \pmod m$ are not pesudorandom number generators. Then we wish to show that given a sequence of nu... |
In the Massey-Omura three pass protocol:
How many bits long should the prime modulus $M$ be in order to be secure?
Should the $M$ be secret?
Should the $M$ be generated every time or it could be reused to generate new keys?
|
I am currently trying to understand this Ring-LWE article: http://www.cims.nyu.edu/~regev/papers/ideal-lwe.pdf and I have a question.
Firstly, it is mentioned in the paper that we can view the elliptical Gaussian distributions $D_{\textbf{r}}$ (which are initially defined on $H$) as distributions on $K_{\mathbb{R}} =K ... |
I am looking for an asymmetric encryption algorithm, which allows to encrypt a secret with multiple public keys, but to reveal the secret all private keys must be used. You shouldn't be able to tell how many times secret was encrypted from ciphertext length. Ciphertext can be decrypted in reverse sequence as it was enc... |
As I understand length extension attacks, they depend on the coincidental property of most cryptographic hash functions that the hash value is exactly the hash function state after hashing the last block of data. This enables an attacker to initialize their own hash function with the state as it "left off".
This being ... |
I'm trying to understand the comment in the page 103 of the book Postquantum Cryptography. about convert the identification Stern procedure for signing. Can you write an example of signature of this conversion?
The standard method to convert the identification procedure into a procedure for signing, is to replace ver... |
Which cryptographic algorithm is suitable for implementing order-preserving encryption without using CryptDB?
|
I've thought about the following (generic) key-agreement protocol.
The only weaknesses I could have found are missing freshness guaranteees.
As for the notions:
$E^1_K(P)$ is the symmetric encryption of plaintext $P$ using key $K$. This is AES-GCM for example.
$E^2_A(P)$ can either denote symmetric encryption (e.g. AES... |
I am wondering about the setup for testing if a function family is pseudorandom. We step into a room, and query the black box with $x$, which yields $f(x)$, etc... We don't know if $f$ is a random function, or if it comes from some preset function family $F$. In the latter case, what assumptions are made about the func... |
Is there any security advantage to using a pre-determined IV in CBC mode over a null IV? I'm implementing a license key system similar to this article on CodeProject, but I'm confused by the authors use of a pre-determined IV embedded in the client code alongside the key. Presumably a properly randomized IV wasn't used... |
I'm reading about the lattice recently.In the paper, it gives a method of a vector mod a matrix:
⃗c mod B as ⃗c−⌊⃗c×B^(−1)⌉×B = [⃗c×B^(−1)]×B.
I know that a integer A mod the other integer B is A+-kB, to make A in the defined field B.
Can anyone tell me what is the meaning of a vector mod a matrix and the mid term ⌊⃗c×... |
In presence of malicious adversaries in ideal protocol of Multi Party Computation, how can honest parties get the correct output?
i.e., corrupted parties modify their inputs and give to the trusted party. Trusted Party computes the function by taking honest party inputs and modified inputs of corrupted parties which r... |
I've seen a few implementations of Paillier cryptosystem that uses probable primes to choose $p$ and $q$.
Assuming that a keypair is generated with $p$ and $q$ that are coprime and that $pq$ is coprime with $(p - 1)(q - 1)$, but either $p$ or $q$ is composite, I'm wondering what security issues afflict such a key.
For... |
Frequently, I have seen people use the term "order" in cryptography (the group-theoretic one). I have a mathematical background and "order" (say, for prime modulus $p$) is defined as the smallest integer, such that:
$$a^r \equiv 1 \pmod p$$
So, a generator (something which has the max possible order; i.e., order is $\p... |
After studying at length about weaknesses in SHA2, length extension attacks, forged signatures, etc. I have to ask why groups like Gnu provide hashes on their program texts?
As long as the public knows how the hashes were generated, a forger could substitute his own malicious code and cook up a totally valid hash for i... |
I am using EAX AEAD with an 8-byte message header which carries a 32-bit sequence number, a message length, and some other bits that I don't mind exposing. Assuming the sequence number never repeats for the same key, is there any security difference between treating that as a 4-byte nonce with 4 bytes of "associated d... |
I've recently read the claim that finding collisions on block cipher may be not a difficult task, if an attacker can control the key and the message.
So, given a pseudo-random function $f:\{0,1\}^m \times \{0,1\}^{l_0} \times ... \times \{0,1\}^{l_k}\rightarrow \{0,1\}^n$, what is the expected run-time for finding a co... |
I have a question regarding the derivation of keys in crypto.
Is it a good practice to use the plain text (in form of hashes) for derivation of keys ? these keys will be used for encryption of the same plain text later on.
What are possible drawbacks of the same if any ?
Thank You in advance.
Edit 1: For example
I ha... |
I have a locked-down production system that we'd like to process specific requests, picked-up (poll) from a less-secure location. For security and "go slow, this is production" reasons, a request must be authorized by 2 (or N) people on the team.
I can imagine how to implement this fairly simply just using openssl and... |
I have a few questions regarding universal-hash functions:
Is there a way universal hash functions can be used to provide unconditional authentication in the way the OTP provides unconditional security?
Assuming a TRNG is used how could this be combined to form a perfect cryptosystem, assuming PSK's are secured?
Is... |
Assuming that AES CCM is used with respect of the NONCE unicity // the key life cycle, I wonder about the need of using the highest size for CBC-MAC authentication tag if CTR mode encrypts both payload AND authentication tag :
If no encryption is performed (e.g AES CBC MAC only), I understand the need of highest tag, ... |
I have made some reverse engineering on proprietary software and came up with some DHE algorithm that works like this:
First and foremost, the client and the server shares some public parameters (g, p) where p is a prime number :
# the client generates some random number X
# Then...
A = g^X % p
B = 4^X % p
At this sta... |
I am new to Network Security and learning about various security features like Diffie-Helmann and others.
I understand that the Public key send by the server to the client needs to certified that it is authentic. So, a Certificate Authority (CA) needs to sign the public key. But I would like to know how is this public... |
According to the paper "Faster addition and doubling on elliptic curves" by Bernstein and Lange, the Montgomery curve (Curve25519) $$v^{2}=u^{3}+486662\cdot u^{2}+u$$ is birationally equivalent to the Edwards curve (Ed25519)
$$x^{2}+y^{2}=1+(121665/121666)\cdot x^{2}y^{2}.$$The paper says that the transformation is eas... |
I'm trying to understand the sentence in bold, in the follow paragraph of A new one-time signature scheme from syndrome decoding
Keygen: Given a security parameter $\lambda$, choose a suitable integers $k, n, r, u, w$ such that the actual difficulty of the SDP$(n,r,u)$ meets the level $2^{\lambda}$, with $u\leq w$.
Th... |
I recently used a custom construction as a commitment scheme, which was taken from the standard picture you give people while explaining commitment schemes.
Basically commitment schemes can be described in terms of physical objects, as "put the information to commit to in a lockable box, give the other person the box a... |
I'm trying to implement an AES cipher in CBC+CTS mode, but I'm unable to get the second last plaintext block to decrypt properly. I've attached my code, it's based on the steps listed under CBC ciphertext stealing decryption using a standard CBC interface on Wikipedia.
void AES::encrypt(const char* src, char* dest, siz... |
Scenario: Alice wants to verify a signature from Bob. Alice knows Bob's RSA public key (e, n). However, Alice is getting the data, the signature of the data and the public key from an attacker Eve. Assume the signature is compliant with PKCS# v1.5.
Now I know trivially Eve can generate an RSA key pair and signs the dat... |
ECDSA signatures depend on parameter k that is chosen by the signer. As a result, there are many signatures for the same private key d and message m.
What I want to achieve is a deterministic signature. That is, given private key d and message m, there should be only one valid signature. I could go with RSA (with deter... |
For example showing that it is easy to produce ciphertext from plaintext but is difficult/impossible to get plain text from ciphertext.
I am asking in general but am more interested in asymmetric crypto.
Would these things be different from what I need to prove to show it is a good digital signature?
|
I've read about the weak key issue with Blowfish, but can't seem to find anything that explains the practical effect of weak keys on Blowfish with the full 16 rounds.
Is there any actual attack upon non-reduced-round Blowfish, in the event that a weak key is chosen?
|
The basic STS protocol contains encryption of the signature as shown in Wikipedia.
https://en.wikipedia.org/wiki/Station-to-Station_protocol
If we would like to defend against MITM attack, this protocol will work even without the symmetric key encryption. A related question is asked here
In the STS Authentication Prot... |
How do I implement asymmetric key algorithm into wireless medium using NS 2.35?
For example: node $A$ is a sender and $B$ is a receiver. Now, $A$ is sending a packet using $B$s public key (encryption) and $B$ decrypts that packet using its private key .
My question is: how to produce the key into that wireless node an... |
I am researching the collision probability of MD5 and various attacks against it. Can someone help me how to learn the least probability that there will be a collision in a specific attack on MD5?
For example: MD5 has a collision probability of $1 / 2^{64}$ under the Birthday Paradox. Does this apply to any input giv... |
I recently was "directed" to FlipsCloud, a company selling security solutions (as far as I can tell).
In particular I've investigated their page and found a page on their "encryption features".
This page claims a few things (some of which deserve their own questions).
As for this question, I'm asking:
How can one const... |
Given an encrypted file, the original unencrypted (cleartext) file, and knowledge of which AES encryption algorithm was used, is it possible to determine the key that was used to encrypt the data in a reasonable period of time?
I am not looking for details on how AES works, just a simple answer.
|
I'm just a bit confused about the nonce/IV in AES-CTR ... it seems the suggested way to go is have a 64bit random nonce, and use the last 64bits as the counter, "starting at 0".
I'm just wondering why not PRNG initialize all 128bits? Still using a 'static' 64bit nonce and still with the least significant 64bits as the ... |
I am using ElGamal and Paillier schemes to encrypt a large number of short messages: typical 4-byte integers. I do this for the homomorphic properties of these schemes.
However, the way the encryptions work, with, say, a 1024-bit key a 4-byte integer will blow up into two values of overall size of 4096 bits or 512 byte... |
The dieharder tests give a clear PASSED, WEAK, etc and I'm wondering what those thresholds might be for the ent tests. While I'm sure a subjective and holistic reading of results is also helpful (especially for someone who knows a lot about RNGs and their tests), are there values that could be considered passing?
I kno... |
I've been told that prime-number factoring is based on a "russian-doll" sequence of matrices, where a seed matrix of height Y and width X exists consisting of all zeros except for a single 1 at row Y column X. For every x columns added, the matrix grows by y, and two closely related formulas sum the column vectors and... |
I am aware that,(in theory) in order to proof that a scheme is secure using simulation based proof we replace an adversary in real world with a simulator in ideal world. Then we try to show that their view are (computationally) indistinguishable (if the scheme is secure).
What I need is some simple examples (in zero ... |
We are all aware of Google's approach to introduce ChaCha/Poly1305 as TLS cipher suite. The rationale seems clear: ChaCha is newer and seems to provide better security (and maybe speed?) gained from the experiences of the design of Salsa20.
But in his "recent" paper McBits: fast constant-time code-based cryptography (b... |
Consider the following scenario:
Sender S sends a message to receiver R. He uses a hybrid encryption scheme with RSA as key-encapsulation algorithm and AES-256-CTR (4byte-counter) and SHA256-HMAC. These algorithms are specified and already known by the receiver → the receiver knows the encrypted key length:
32byte AES-... |
This is a question I had in my exam today, and I'll be glad if someone can help me to find the answer.
A student built an encryption algorithm (something between DES and 3DES), in which the encryption is based on 2 keys, $K_1$ and $K_2$, and calculated this way:
$$Cipher = E_{K_1} (E_{K_2} (plaintext))$$
where $E_{K_i}... |
As we know, breaking a Transposition Cipher is quite trivial and can be easily done by either exploiting single letter frequencies (not $d$-gram frequencies though, given that $2 < d < L$), or by employing a simple CPA, thus deriving the snippets length $L$ and the transposition matrix (key).
If we imagine to encrypt t... |
Suppose Bob has a DSA key pair, and Alice has Bob's public key. Is there any secure way that Alice can send Bob a message only he can read if Bob can not send any reply?
I think the answer is no, since DSA is only for messaging signing, so can only be used for things like authentication and Diffie-Hellman key exchange.... |
Maybe this is a newbie question:
Stream cypher, will XOR message bits with one-time pad bits.
Suppose I have a pseudorandom number generator, like a Mersenne Twister or something similar. I could use the pseudorandom string to XOR the message.
Use the password as the seed of the generator. Same password = same pseudora... |
In “Randomness Condensers for Efficiently Samplable,
Seed-Dependent Sources” by Dodis, Ristenpart, and Vadhan (PDF), I have seen the statement that:
any tuple of distributions $(X,Z)$ is $\varepsilon$-close
to $(X′, Z)$ such that $$H_\infty(X′\mid Z) ≥ H_2(X\mid Z) − \log (1/\varepsilon)$$ offering a bound on min-en... |
If I have a poor PRNG, could a cryptographically secure hash function make a better output?
Say the PRNG can produce as much numbers as you wish, reasonably random, but not good enough to be used in crypto applications.
If I split the PRNG output into chunks, say $128..512$ bits, and feed those to a cryptographically s... |
I'm working on an implementation of Krawczyk's Hashed MQV (HMQV). I'm using Crypto++, which is a C++ library.
C++ has some features where classes that represent the crypto objects can be combined even if they don't have matching security levels. As an extreme example, imagine a P-160 curve is coupled with SHA-512. Or i... |
I am trying to consider the feasibility of implementing an encrypted file sharing system, which both provides forward secrecy but also allows public key verification. I am stuck on the marriage between these two requirements that hopefully someone can help me out with.
In order to provide forward secrecy, I think a new... |
As a font designer, I was thinking that it would be very easy to design a special font that could either jumble characters of a language (or of a code) or simply (with the features offered by the OTF format) overlap into a complex design that only the other user (the reader) would be able to unscramble...
Is this somet... |
I'm quite new to this topic and have several questions concerning HMAC and NMAC:
Why does NMAC need two keys? How can it be attacked if we just used some sort of initialization vector instead of the first/second key?
What is the purpose of ipad and opad in HMAC?
What if the key is longer than the block size?
Can the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.