instruction stringlengths 32 27.2k |
|---|
As I understand it, CTS pads the last block and swaps it with the second last to compensate for a partial block of data. I have written a DRBG (Deterministic Random Bit Generator) using AES-CBC that only accepts an input size which falls on the block boundary.
Is CTS really necessary here? I can't imagine a way in whi... |
If someone finds an efficient way (ridiculous or not) to turn NP into P (such as creating multiple universes, saving the one with the correct answer), would we have any good algorithms for encryption, hashing and so on that are still secure? What other algorithms would become way more efficient? Constant-time sorting? ... |
I decided to learn more about the application of formal methods to cryptographic protocols and found this interesting talk by Cathy Meadows at YouTube.
After doing research about how people are using formal methods, it seems to me that they're not being used for design. In other words, formal methods are being applied ... |
I managed to implement the proxy re-encryption scheme from http://eprint.iacr.org/2009/189.pdf in Python 2.7, however I am having performance issues. As it is, I can run the algorithm for key sizes up to 5 bits, which is impractical.
I think the problem is the lack of mod operations throughout the algorithm. As the pa... |
Maybe this better fits, the security stackexchange...
I'm building a web API. We want to enable some relatively simple encryption, instead of going full-blown OAuth2 (which frankly, IMO, sucks). So I decided to use JWT. Anyway, it could happen for some requests that the request or response payloads are very small. Some... |
I am currently working on an implementation of the candidate construction for an indistinguishability obfuscator that was recently proposed by Garg et al. The relevant paper can be found here. Specifically I am only implementing the construction for circuits in NC1, because the construction for polynomial-sized circuit... |
Alice has $K$;
Bob has $E(K, m)$;
Is there such a scheme that enables Alice decrypts $E(K, m)$ without knowing $m$, and Bob gets $m$ ?
|
I use AES256 for various purposes in my app. However, the purpose I am now trying to achieve is the following:
Input is for example AU00000001 and I would like a hashed or encrypted output of this with the same length (10 characters). I need to keep the output as small as possible, to convert it into a simple (minimal... |
The scenario is like this:
$P_1$ has $m_1$, $P_2$ has $m_2$, they want to compare whether $m_1=m_2$ via the server $S$. After the protocol, only $S$ knows the result, and there is no interaction between $P_1$ and $P_2$.
An example solution:
$P_1$ encrypts $m_1$ with his public key $PK_1$; Then he sends $E(PK_1,m_1)$ ... |
I am supposed to prove that $x = y \mod (pq) \iff x = y \mod p$ and $x = y \mod q$ with $p$ and $q$ are prime numbers. It somewhat sounds reasonable to me, but unfortunately I don't have any clue how to prove it.
|
p is a prime greater than 2 and $a \in \mathbb{Z}_p$. Why are there exactly three solutions for a³ = a mod p?
Obviously 0 and 1 are both in $\mathbb{Z}$ and valid solutions, but that still means, there is one element (and only one) missing. I can't figure out which one and neither do I understand why there could not be... |
As I found out the OpenSSL implementation provided by PHP (openssl_sign) only allows DSS1 as the hashing algorithm for DSA signatures (see also my related question).
I’d prefer DSA over RSA in my use case because of the significantly shorter signatures. However, I have doubts regarding DSS1 which is basically SHA1 and... |
I recently tried to send 1536-bit modulus CSR to COMODO. They refused to sign the certificate.
I later found out that it's because NIST mandated 2048-bit modulus on the SSL certificate.
I think it's overkill so maybe I can use smaller private exponent. (which I hope will lessen server load with reduced security margin ... |
I wanted to know how I could manage to do what I'm going to tell you next, with the RSA encryption/decryption scheme.
So Alice and Bob each have a public key $(n, e)$ and a private key $(p, q, d)$; where $n = p\cdot q$; $p$ and $q$ are odd distinct primes; and $e\cdot d \equiv 1 \pmod{\varphi(n)}$ with $1 < d < \varphi... |
When I read some books about elliptic curve cryptography noticed that. sometimes symbolized elliptic curve over $F_p$ is $E(F_p)$ and sometimes symbolized elliptic curve over $Z_p$ is $E(Z_p)$.
I know p is prime number In both cases.
I wonder. Is there a difference between that symbols or they have same meaning .
|
This is Oxford's computer security exam question:
Suppose that Bob has published an RSA encryption key $ke$ (retaining in secret the corresponding
decryption key $kd$), and Alice has published a public RSA verification key $kv$
(retaining in secret the corresponding signing key $ks$). Alice wants to send an integrity p... |
I'm looking into multiplication-homomorphic schemes now and basically I see that there are 3 options: RSA, Boneh-Goh-Nissim and ElGamal.
RSA was proved to be insecure unless message is randomly padded, which action breaks the homomorphic property of the scheme.
Boneh-Goh-Nissim allows for one multiplication, but the de... |
This is an exam question in Oxford 's Computer Security course:
Here is the start of a protocol, based on a long-term secret key $k_{AB}$ previously shared between Alice and Bob, designed to offer bilateral authentication and establishment of a session key $k_s$. The session, which begins at message 4, is supposed to ... |
After researching ECC encryption, I found that we can use ElGamal cryptosystem with elliptic curve and can we use Menezes-Vanstone cryptosystem with elliptic curve. What is the essential difference between the two systems? Which one is better with regards to complexity/performance?
|
I am planning to encrypt the different fields of a database independently, using a symmetric encryption scheme (probably 3DES). Since some of the fields are as small as an integer, may that be problematic?
|
I should implement a security protocol as a part of which I need to:
Encrypt the message with receiver public key.
Sign it with my private key.
Send it to receiver.
Suppose that the system uses a modulus with at least 1024 bits and data is in blocks of 512 bits.
The problem is that when the receiver's n (modulus) is ... |
Is there any cryptographic obfuscation scheme that will let me obfuscate a program that reveals my secret, if you reveal yours?
Formalization. Let $C(\cdot),V(\cdot)$ be a secure commitment scheme. In other words, $C(x,r)$ is a commitment to $x$ under randomness $r$, and $V(\cdot)$ is the corresponding verification f... |
I read about elliptic curve cryptography $E$ over $Z_p$ where $p$ is prime number and $G$ is a base point on the curve. I noticed the points resulting from multiplication e.g. $2G$,$3G$,.....,$(N-1)G$ are always be positive numbers for $x , y$ and don't contain any negative values.
Whats the reason for these results no... |
What does it mean that a protocol realizes "strong mutual authentication"? And what does it mean that a protocol realizes "weak mutual authentication"? Can you define them formally ?
I have found a definition for "strong mutual authentication" here on slide 36 (not formal):
Strong mutual authentication requires not on... |
I have a question regarding the random $k$ number of ECDSA encryption. As far as I know, it is possible to retrieve $k$ (and thus the private key) from two signed messages if both used the same $k$. This was done for the PlayStation 3 hack. I'm now trying to reproduce it in Python, using this library.
My problem is tha... |
I used rsa-json.native to generate RSA keys for a node.js application that will use secure-peer later to connect two clients with each other. Now I have 2 questions:
In secure-peer/index.js I've found defaultCiphers = ['RC4'] - is this acceptable? I've heard that RC4 is broken.
Are my example RSA keys flawed? They con... |
I have a question regarding the random $k$ number of ECDSA encryption. As far as I know, it is possible to retrieve $k$ (and thus the private key) from two signed messages if both used the same $k$. This was done for the PlayStation 3 hack. I'm now trying to reproduce it in Python, using this library: https://github.co... |
In a single round of SHA-512, in the operations $\Sigma_0(A)$, $\Sigma_1(E)$ why are the constants $28$, $34$, and $39$ used for the number of rotations? What significance do these numbers have? What if they are changed?
|
I've just been skimming NIST's "Five Confidentiality Modes". I understand those block cipher modes are used to securely encrypt input longer that the block cipher length. However, the common block cipher modes all assume my input length is evenly divisible by my block cipher length.
What is a recommended way to deal wi... |
(Note: This post is not about "rolling my own", but rather trying to deepen my understanding of the underlying structures.)
I'm having difficulties finding clear answers to some questions about the construction of HMACs:
Assuming we have one key for encryption and one key for message integrity checks, and we are using ... |
Say that a friend of mine and I have both generated new PGP keys, and we want to use a video call to verify each other's new keys because we live on opposite sides of the planet. While we could both somehow share our public key and then read back the fingerprint, reading a fingerprint is a bit cumbersome, especially gi... |
Suppose we have a hash function $H: \{0,1\}^* \mapsto \{0,1\}^n$, that doesn't get all the $n$ length
bitstrings as a value for any input, but is otherwise secure. Can that fact be detected?
For example, let $H$ be a secure $n$-bit hash function. You are given a black box function $F$ and told it's either $H$ or $H\hs... |
Suppose Alice wants to prove to Bob that t1 is less than t2. t1 and t2 represent timestamps. Alice does not want to reveal t1 and t2. However, she needs to receive Bob’s confirmation that t1 < t2. In order to prevent Bob from performing a brute-force attack to find t1 and t2, Alice wants to use some salt with the times... |
I want to use Elliptic Curve based blind signature scheme for my research.
There is no proper implementation of ECC-based blind signatures.
Can someone describe to me which things I need to follow when implementing this?
|
In the Pointcheval paper “Security arguments for digital signatures and blind signatures”, they have proved the security of Schnorr signature for existential forgery under adaptively chosen-message attack.
The proof requires a simulator that can produce transcripts that are indistinguishable from the actual messages g... |
What is the best way to generate a unique 64 bit numeric database key from a string?
For example: if the string is a URL, you could generate a 64 bit key using SipHash or by truncating a SHA256 hash to 64 bits, but collisions are likely at $2^{32}$ (~ 4 billion) entries.
However, if instead you truncated the hash to (6... |
I am trying to understand the Fiat-Shamir identification protocol, but have a problem with understanding how this protocol is supposed to be save, even if you repeat it several times. I am using algorithm's description from http://www.cs.rit.edu/~jjk8346/paper.pdf.
If I do the maths, A can always convince B without kno... |
I am trying to understand how RSA digital signatures can incorporate any data from a PRNG into the final signature. Does this mean that separate implementations might fail to verify each others signatures if they chose a different method for coming up with random padding based on the input or a hash of the input?
Is t... |
Assume that I have two sources of entropy (say, a hardware RNG and a CSPRNG) and that the two sources are independent (do not know anything about the internal state of the other RNG). Can I mix them by XORing blocks safely? If one of the two has been compromised/subverted, is there any way it can reduce the total ent... |
Suppose we have $n$ bits, so we can have $2^n$ different bit sequences. Some sequences don't look random, say, all $1$ or $0$. There are also other patterns like $10101010…$, $11001100…$ and such.
I'm not certain but aren't there ways to evaluate a given sequence as random with some given satisfied error? Given $n$ bit... |
We have
a HMAC key (128 bit/16 bytes)
an AES key (128 bit/16 bytes)
an AES IV (128 bit/16 bytes)
a random salt (128 bit/16 bytes)
Each packet is signed with a HMAC (SHA256)
After each packet is sent, all those keys are packed together into a 64 byte array (HMAC + AES Key + AES IV + salt). Take the SHA512-hash of that... |
The question asks for a signature scheme, with a public verification procedure, that is tolerant to minor alterations of the signed data during its transmission [possibly in analog form over some noisy channel], where the signature is a small digital appendix sent over a digital channel assumed error-free in the absenc... |
With Secure Remote Password protocol SRP6a random numbers are used for s, a and b. Where s is the salt registered with the user, a and b are random one time ephemeral keys of the user and host respectively. What would be the risk of letting some clients (old webbrowsers which don't have the WebCryptoAPI secure random n... |
Suppose one had a complete list of primes up to $2^{n+1}-1$. Then wouldn't one be able to crack an $n$-bit RSA public key in time $O(\pi(2^{n+1}-1))$, making RSA insecure?
Thanks,
René
|
The encrypted file can be opened by following combinations (either any 2 DK, or 1 MK):
DK1 + DK2
DK1 + DK3
DK2 + DK3
DK1 + DK2 + DK3
MK
Any heads-up with Python KDF logic? Any good documentation/reference will also suffice the purpose.
I tried deriving keys with KDF(MK, "pass1") -> DK1 but then the combination logic ... |
Is it possible to find $m'$ such that $\operatorname{MD5}(m'||m_1)=\operatorname{MD5}(m_1||m_2)$ if I know $m_2$ and $\operatorname{MD5}(m_1||m_2)$? Is this a collision or a preimage attack?
Also in this case is it possible to find $m'$ and $H$ such that $\operatorname{MD5}(m_1||m')=H$ if I know $\operatorname{MD5}(m_1... |
The context for this question (it's quite involved) can be found in this document: https://docs.google.com/file/d/0B15itpMWb2ztWTJrYTgzX204OVU
However, I want to make it clear that you don't have to read or understand all of that document to answer this question.
Basically, this technique allows the audit of a TLS 1.0/... |
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" is just one example for a cipher suite, as far as I'm concerned it means this:
It uses the TLS protocol, exchanges keys with Elliptic Curve Diffie Hellman Ephemeral, whose public keys are signed with RSA and afterwards AES 128 bit is used with the Galois Counter Mode, which provi... |
I'm looking for specific names and literature on crypto algorithms that accept every passphrase input by the user, in order to 'decrypt' - even with false passphrase - and present the unlegit user with a false plaintext. The unlegit user should not be able to determine whether the 'decrypted' text is real or fake - as ... |
I need to decrypt a huge file that I own previously encoded by myself with a RSA public key (it's possible for this step using a symmetric algorithm key). Problem is that I can't load it in my disposable memory for specific embedded architecture reasons.
I need to decrypt it with the private key associated to the ident... |
Alice has a secret key which she uses to encrypt messages in CTR mode. CTR mode is critically vulnerable to counter reuse, and Alice has a problem: she has terrible memory and no pen to write anything down. She has good enough memory to send one message, but between messages she sometimes forgets the counter values tha... |
There has been talk in literature about doing multiple encryption with different block ciphers or stream ciphers several times before, and the benefits and risks of such efforts. There may be hidden assumptions or weaknesses in designs of symmetric cipher algorithms, or perhaps they have been deliberately sabotaged by ... |
Are there functions that satisfy the second-preimage resistance property without satisfying the others (preimage and collision resistance) ?
I'm looking about such functions that compress data (exit the identity function).
|
The Diffie-Hellman on curve25519 is usually calculated using the base point $(9,…)$ which induces a cyclic subgroup of $G:=\{\infty\}\cup(E(F_{p^2})\cap(F_p\times F_p))$ with index 8, i.e. there is a prime $p_1$ such that $|G|=8p_1$ and the order of $(9,…)$ is $p_1$. An attacker does not have to use a multiple of $(9,…... |
In AES the forward affine tranformation matrix is defined as:
$$
\begin{bmatrix}
1& 0& 0& 0& 1& 1& 1& 1 \\
1& 1& 0& 0& 0& 1& 1& 1 \\
1& 1& 1& 0& 0& 0& 1& 1 \\
1& 1& 1& 1& 0& 0& 0& 1 \\
1& 1& 1& 1& 1& 0& 0& 0 \\
0& 1& 1& 1& 1& 1& 0& 0 \\
0& 0& 1& 1& 1& 1& 1& 0 \\
0& 0& 0& 1& 1& 1& 1& 1 \\
\end{bmatrix}$$
and the inver... |
I'm trying to understand prime number generation (more correctly, the primality checking) as described in Handbook of Applied Cryptography.
The context is circa pages 145 - 150, and specifically Table 4.4 (p. 148). The table presents (k,t) pairs, where 'k' is the number of bits in the candidate and 't' is the number of... |
Take a McEliece cryptosystem with public generator matrix $G' = S G P$ where $G$ is a generator of a secret code with known fast decoding (not necessarily a Goppa code over $\mathbb{F}_2$), $S$ is random & non-singular and $P$ is a permutation.
Let's say an attacker Eve has a way to find $G$ from $G'$ but not $S$ or $P... |
I've just watched a video on the TLS protocol and learnt that it uses unidirectional keys (meaning keys for both sides, from browser to server and from server to browser).
Given that the server uses TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 , how are all those keys shared? We need:
AES 256-bit key for the browser
AES 256-bi... |
I was thinking of doing symmetric encryption using just hashing and simple XOR encryption. It would work as:
Alice and Bob share a symmetric key
Alice manages to send an (authenticated) IV to Bob
Bob and Alice both combine the IV with the symmetric key and use it to seed a PRNG
the output of the PRNG is hashed (SHA256... |
If an attackers sets out to crack the symmetric key of e.g. AES-CTR, would they prefer to have access to many small cryptotexts or one large cryptotext? I.e. is it more interesting for the attacker to see cryptotexts of many IVs than of a single IV?
Does the answer change if also the plaintexts (many small, possibly si... |
I understand in theory how the common modulus attack works (as described here: how to use common modulus attack?)
Though, I did not understand completely how it worked with a negative $s_i$. Since $e_bs_1+e_cs_2=1$ one of the $s_i$ will be negative, so when I calculate $C_j^{s_i}$ it will be a fraction and not out of $... |
Are there any cryptographic algorithms or primitives that have been developed and studied that make use of non-commutative or non-associative algebraic structures such as quaternion integers or octonion integers? It seems to me that many of these structures can preserve the things that make them useful to cryptography ... |
Is it possible to combine SHA1 digest values to get the SHA1 of the concatenated parts ?
I know the "S1" SHA1 of "part 1" and the "S2" SHA1 of the "part 2" and I would like to know the SHA1 of the "part 1" concatenated with "part 2" calculated from "S1" and "S2".
Is it possible ?
|
HMAC does nested hashing in order to prevent Length Extension Attacks.
Given that you use the SHA-3 hash (which is resistant against length extension attacks), would you still need to go through that procedure in order to produce a secure MAC?
Needless to say we'd still use a key, which we prepend or append to the mess... |
There are String1 and String2 - some variables-strings.
The probability of collision for different String1 and String2 is
P{SHA1(`String1`) == SHA1(`String2`)} = p
What's the probability of
P{SHA1(SHA1(`String1`))} == P{SHA1(SHA1(`String2`))} //two times
P{SHA1(...(SHA1(`String1`)))} == P{SHA1(...(SHA1(`String2`)))} ... |
I'm looking for an algorithm where n participants each have a different secret number between $[0..x]$ (and where $x$ is known) and where the participants then select randomly another, non-secret, number between $[0..x]$ which must not clash with the secret of any participant and which must not reveal any number used b... |
Is there any known way to construct a length-preserving all-or-nothing transform? In other words, a secure all-or-nothing transform where the length of the output is the same as the length of the input.
My thanks to @Ricky Demer for suggesting this question.
|
I'm pretty sure this is a really bad approach (in theory), but one of my clients is doing this and I was wondering… How bad it is to perform pbkdf-2 in this way (with 2000 iterations)?
a = PBKDF2(x, y)
b = PBKDF2(y, x)
x is the username (password in pbkdf2)
y is the password (salt in pbkdf2)
2000 iterations
a is then... |
I am trying to understand two protocols for mutual authentication and if they are secure or not.
$K$ is the session key, and it's calculated $k=H(TimeStamp)$.
Are the following both cases secure? Could they provide mutual authentication?
$Alice \rightarrow \{[TimeStamp]alice\}bob,K \rightarrow BOB\\
Alice \leftarro... |
What I want to do is to digitally sign a document. I am new to cryptography and was wondering what issues to take into account.
The only criteria is that a textual document signed should produce a code that is different if lines in the same document are shifted. I heard that MD5 is broken and that one should avoid SHA... |
I am currently stuck at an exercise for my Cryptography Class in University which is:
Alice wants to send a message $M = (M_1,M_2) =$ "Pay Bob \$100 from bank accout $12345$" to her bank (encrypted). Therefore she picks a random Initial Value ($IV$) coded $(IV, M_1, M_2)$ in 8-bit-ASCII, encrypts this and gets the Chif... |
This may seem an elementary question about LFSRs, and their link to Markov chains. LFSRs show Markov chain behaviour in that there can be a transition matrix defined over the LFSR, this follows from the very definition of the LFSR. Is there any formal formulation for the LFSR as a Markov chain?
|
Say I'm trying to brute force the original plain text of an SHA256 hash, does knowing the RIPEMD160 hash of the same text help? In other words, does providing access to hash values of the same text generated by multiple algorithms decrease security?
|
I have a question regarding the Fiat–Shamir identification protocol. In this source (pdf) for example it says on pages 9 and 10 that the random commitment $r$ and the private key $s$ have to be smaller than $n$ (the RSA-like Modulus). I am wondering why this has to be.
The verification works even if $r$ and $s$ are gre... |
Is there a fast algorithm for mapping $n$-bit numbers $s$ (for fixed $n$) into a cyclic subgroup of an elliptic curve (over a finite field) in which the Discrete Logarithm Problem is hard?
By fast, I mean it takes about as long as a point addition (and is much faster than a point scalar multiplication in the elliptic c... |
My implementation of the parallelized Pollard's Rho algorithm is using Jacobian coordinates to avoid the costly inversion operation when performing point addition.
I am wondering if there are any methods to check for distinguished points while in Jacobian form, since switching back to affine coordinates requires an inv... |
I have been trying to wrap my head around different definitions of protocol security (stand alone, sequential composition, parallel composition, universal composition) and how the proofs of any of these cases are obtained. However, at current state I find it quite complicated. Can you recommend any good lecture materia... |
Not all elliptic curves are safe to use for cryptography, especially from an ECC safety perspective. The site http://safecurves.cr.yp.to/index.html shows that two tested Brainpool curves, brainpoolP256t1 and brainpoolP384t1, are not ECC security safe even though they are ECDLP safe. Not all the Brainpool curves were ev... |
For a decentralized login where a user is left to select the password, salt, and iterations, what minimums for each should be enforced?
In other words, because none are ever stored by the implementation, can standard login authentication guidelines also with a 4-digit PIN be enforced to produce theoretically uncrackabl... |
RFC 5959 specifies the encrypted storage of private keys based on PBKDF2-HMAC-SHA-256 and AES encryption (in ECB mode).
Is there a particular reason AES is used, instead of simply XORing the key material with the PBKDF2 output? Is it simply to make storage of long keys faster, because a long PBKDF2 output takes long to... |
I am trying to create a decentralized moderation system for the game Diplomacy, a game for seven players. In each round of a face-to-face game, each player writes their moves on paper then puts it in a box; all moves are read at once. The game was popular as play-by-mail: you mail your moves to a magazine publisher, wh... |
I have been watching Christof Paar on his YouTube lectures also I used bcrypt to store two passwords with salts and I find that I have a few questions.
I am interested in what bcrypt does to the start of the final hash.
$2a$10$
I have two thoughts on this:
I know that Christof is speaking about HMACS in the lecture a... |
I would like to know how to calculate the bit-strength of Integer Factorization Cryptography (IFC) such as RSA by using Python. I gathered it is based off the complexity of factorizing the modulus (public key). I want to be able to calculate the bit strength of arbitrary key-lengths of RSA for example, such as 4096 whi... |
I'm implementing SHA-256 in PHP using strings. Where do you truncate in the algorithm?
There are a lot of places where there's binary addition happening so the number of bits in $W(i)$ keep increasing. Same case with the compression function. So, where do I truncate the values?
When I var_dump my array I get this:
arra... |
I'd like to get an overview of how the signatures with message recovery work, especially in case EMV and other smart card systems. Is there a nice overview available without being required to read the whole ISO/IEC 9796-2?
I've already had a look at the “Practical Cryptanalysis of ISO/IEC 9796-2 and EMV Signatures” pa... |
I'm unsure of how exactly the salt is manipulated by scrypt and its potential contribution if any to overall password entropy if passwords & salts are stored only in human memory for a decentralized implementation.
For this implementation, a cryptocurrency login where the salt does not exist in any repository such as a... |
I am generating RSA Public and Private keys with node.js instead of reading them from pem/crt files as I can hide them inside a private object using this module https://www.npmjs.org/package/private
this node.js module https://www.npmjs.org/package/keypair puts text in front and at the end of each public and private (-... |
I'm searching for way to generate secure pseudo random sequence with a fixed Hamming weight using a seed. I found below code but I need a seed to generate a sequence ... (and need know if is possible add secure property too . i.e one-way)
from random import shuffle
def gen(ham, bits=32):
# generate a list with th... |
I have at least three, distinct motivations for having a simple way to use asymmetric key encryption by hand or without modern computers.
First, I was recently demonstrating to a 12-year-old how encryption works. I created some basic cyphers and had him figure them out. (I recommend this; it's quite fun.) Wanting to up... |
In FIPS-197 §5.1.1, it says the first transformation in the SubBytes() transformation is:
Take the multiplicative inverse in the finite field $\text{GF}(2^8)$ described in Sec. 4.2; the element $\{00\}$ is mapped to itself.
Looking at Sec. 4.2, it says that for a given non-zero polynomial $b(x)$ you can find the in... |
It seems like email is at least analogous to public-key cryptography, the public portion of the key being your email address, and the private portion of the key being the password to the email account. Is this merely an analogy, or is email in fact an instance of public-key cryptography?
|
I've been reading this question where a detailed description of mine is given, I've understood that a polynomial-time adversary is an adversary for which the only feasible strategy are those that take polynomial time to run; anyway, I just can't understand why do we require the adversary to be probabilistic.
In Katz' b... |
There's a program that uses the following OpenSSL function...
DH_generate_parameters(256, 5, NULL, NULL)
...to create DH parameters which are later used for hundreds of key exchanges (and the one-time keys used to encrypt login details sent over Internet).
The manual page says 256 is prime_len in bits. How secure is t... |
I'll be using AES from OpenSSL. I understand why I don't want to use ECB from reading pages like this Wikipedia article, which has a great example of what happens when you attempt to encrypt with electronic codebook.
But what I'm missing, is some sort of comparison table with all the other modes so I understand the po... |
I saw this awesome video which shows how encryption works using "discrete logarithm".
The example says: $3^x\mod17$. I understood that $3$ is called “generator”, because it has no "straight" root and when used with any exponents it walks through entire clock (till $17$ in that case).
Would saying $3^x \mod 449825$ mak... |
I was just wondering, is there a type of deterministic number generator that allows me to share some (not all) numbers I've generated using a smallish seed?
I have pairs of random numbers and need to make one number from each pair public. The point of sharing with a type of seed is, that my application needs to do hund... |
I have an encryption scheme that uses a 256-bit master key, from which 2 separate keys (one for AES-256-CTR encryption and one for a HMAC-SHA256) are derived using HKDF. However, I'm not sure exactly how to utilize HKDF without screwing it up, so straight to my concerns:
Is it safe to just use SHA-512 as the hashing a... |
Assuming we have an El-Gamal pk tuple $(G,q,g,g^s)$. Someone, knows only the first three parameters.
In round $i$, I send him $X_i=(g^s)^{t_i}$ (the $t_i$ values are chosen randomly for each round), and I want to prove to him that I know also $s$ or $st_i$, so I choose a random $\rho \in \{0,1,...,q-1\}$, and send him ... |
Assume Alice authenticates a message $M$ with nonce $N$ and secret key $K$, creating authenticator $A$. She then sends $A$ across the network.
The Poly1305 paper does not seem to specify whether it is possible for an adversary, whom has seen $A$, to determine whether $A$ is just random bytes or has characteristics of a... |
In public key cryptography, how many keys are required for secure communication between n parties?
In my view the answer should be $n^2$.
Reason: There are ‘$n$’ Parties. Every Party has One (1) Public Key (for Encryption). Also, every party has $(n-1)$ private keys (paired) (for Decryption). So every party has $$ 1 + ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.