instruction stringlengths 32 27.2k |
|---|
I have a question about linear block erasure codes that are described in this paper.
I briefly describe the idea behind the linear erasure codes and then I ask my question.
Given a set $d=\langle x_i \in GF(2^q)|i=1,\cdots,k\rangle$ of data packets, the general idea of (systematic) erasure codes is to generate $n-k$ ex... |
I'm learning about the proof of the RSA encryption algorithm, and I'm clearly fudging or missing something, because for me it doesn't add up.
When generating keys for RSA encryption, we make sure that:
$ed \equiv 1\pmod{\varphi(n)}$
But when encrypting or decrypting, we use:
$C \equiv M^e \pmod{n}$
Now I would understa... |
I’ve spent a couple of days researching the topic of creating a license system for my desktop software. While I fully understand that there’s no perfect copy protection, this approach seems to have the best balance for me.
There are a couple of details that I can’t fully get my head around before starting with the impl... |
In some literature I am reading – where they are explaining the permutation cipher – they have two examples, which encrypt a small block of text. But they seem to contradict each other:
First example:
permutation: ${1\text{ }2\text{ }3 \choose 3\text{ }1\text{ }2}$, plaintext: VEN, ciphertext =NVE
Second example:
... |
i wondered what the security implications are if I do the following. If I had a large file encrypted with a OTP and want to change only a few bytes in the plaintext. what security vulnerabilities do I get if I only generate a new OTP for the changing bytes leave the old OTP as is and substitute the new OTP, and do this... |
I'm wondering why hash constructions aren't parallel like CTR mode for encryption?
For example: We have ideal block cipher E, where we encrypt message block with counter and xor output block with message block. Then we xor (sum) all blocks and encrypt it with length of message and xor with sum of all blocks to get hash... |
I have more bits than the degree of the NTRU polynomial.
For example: $x^{11}-1$
message: Hello (I am using ascii, 8 bits for 1 symbol)
got: 0100100001100101011011000110110001101111.
How should I split up message into blocks? Please answer with example.
|
I'd like to encrypt the contents of a log file that my application writes. The log system has the following characteristics:
The file format is binary.
Log files are left open while the application is still running.
New data is appended as a log entry is made.
Log entries have varying lengths, I cannot align that with... |
I have recently learned that Encrypt-then-MAC is recommended when using symmetric encryption.
I have two closely related questions related to that, which is why I am posting them as one:
Looking at the different kinds of available MACs (UMAC, HMAC, etc.), does it matter which one I use? Meaning: does the choice of MA... |
Let us say Alice publishes a book under the name of Claire. The book becomes wildly popular and now Bob comes along, claiming to be Claire, to reap all the success. How does Alice prove that she wrote the book (and Bob did not) as Claire without revealing that she is Alice? More specifically: what information can she i... |
Example: http://jsfiddle.net/KGtUE/
https://code.google.com/p/crypto-js/#Progressive_Hashing
sha256.update("abc");
sha256.update("def");
sha256.update("ghi");
vs
CryptoJS.SHA256("abcdefghi");
How does this work?
|
Related: What is the lowest level of mathematics required in order to understand how encryption algorithms work? and Recommended skills for a job in cryptology
In the context of putting crypto into applications, in a secure manner, could it be argued to achieve this (securely implementing a crypto system) you would req... |
I would like to know what (if any) are the advantages of using Montgomery Power ladder over the Double-and-Add-Always algorithm.
I think that firstly, Monty would be slightly faster than DoubleAndAdd. But I'm not too sure about side-channel security.
I'm asking this in the context of RSA's modular exponentiation and EC... |
I have implemented a ECC key generation scheme successfully. Now I need to find ECC key sizes of each generating key pairs. I assumed that ECC key size is the size of the ECC private Key.
So I would like to to know whether this is correct?
|
Is it good or bad practice to design crypto protocols for key compromise by using additional keys? Argument for bad practice would be: When you have a key you should trust it and not throw more keys at the protocol "just in case". Is there any research/substance to that argument? Eventually, does it all boil down to a ... |
Are precomputation attacks - such as outlined in RFC 3610 chapter 5 - possible on RSA PKCS#1 v1.5 signature generation? If yes, are such attacks taken into account when calculating the cryptographic key strength of RSA? Do they have the same impact on the security strength of RSA as on block ciphers (i.e. halving the c... |
This is an exam question:
$A \to B$: Alice, $nonce_A$
$B \to A$: $nonce_B$, $E_{k_{AB}}(nonce_A \| k_1)$
$A \to B$: $E_{k_{AB}}(nonce_B \| k_2)$
Alice and Bob both compute $k_s$ = $k_1$ xor $k_2$
$A \to B$: $E_{k_s}(...)$
$B \to A$: $E_{k_s}(...)$
The protocol is based on a long term secret $k_{AB}$ shared betwe... |
I'm new to programming and I'm getting ready to design a proof of concept for an app that I'm thinking of building. Problem is I'm a complete noob to cryptography and need a little nudge to point me in the right direction.
I would like to design a method by which data sent to my application on a cloud server is process... |
If you consider a 26 letter alphabet, and a cipher where 24 of the letters are sent to themselves, and only 2 letters switch, how many different substitution alphabet ciphers are there, and what percentage are they of total possible?
I thought it would be there are $26\cdot25=650$ such possible ciphers, for a percentag... |
In Sweden in the late 90's they deployed a electronic prepaid cash system system, and if I remember correctly you could transfer money between cards without online access. Wikipedia states that the dis-continued systems TransCash, 247card and iKobo had the same function.
On usage would be
You load up your card at a AT... |
I'm learning the POK notion and definitions and as a self exercise I wante to prove the statement that the Hamiltonicity protocol is a POK system with knowledge error $1/2$.
So the question will be self-contained, I provide here the slide describing the protocol (credits to Moni Naor, Weizmann institute).
And the de... |
I've come to understand that twisted curves, as for instance defined in the Brainpool specifications, are $F(p)$-isomorphic to their regular $F(p)$ equivalents. So brainpoolP256r1 is isomorphic to brainpoolP256t1.
In a protocol, does it make sense to specify support for twisted curves? Should it be possible to specify ... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.