instruction stringlengths 32 27.2k |
|---|
In McEliece cryptosystem, G matrix is scrambled using S and P so that scrambled G matrix is G' = SGP. Here G is the generator matrix of a linear code and after scrambling it is converted into another matrix G' of the same size. How can we ensure that G' is another possible G matrix of the code with same distance proper... |
Can we prove a minimal message expansion for a Digital Signature scheme (possibly with Message Recovery), for $b$-bit security (that is expected $O(2^b)$ work to break the system)?
Define message expansion as the maximum over all messages (perhaps at least a certain threshold $t$ in size) of the difference in size betw... |
My understanding of XML Digital Signatures:
Let's use a SAML token as an example.
Note - for the sake of simplicity I'm omitting some details like CanonicalizationMethod, base64 encoding, etc.
In order for me to sign the <saml:Assertion> node I use a private/public key pair:
Create a hash of the <saml:Assertion> blo... |
As per wikipedia
$$c = m^e \bmod n$$
where $c$ is the cipher text and $m$ is the original message.
To decrypt $$m = (c^d) \bmod n$$ that is $$m = (m^e \bmod n)^d \bmod n$$
My question is how do we have the following equivalence? $$(m^e \bmod n)^d \bmod n \equiv (m^e)^d \pmod n$$
|
I am familiar with the fundamentals of cryptography as well as Digital Signatures. I understand how DSA like RSA works and the fundamentals of mathematics behind digital signing and verification. I also have a reasonable understanding of how bitcoin works. However I can not understand the role of hash function (SHA-256... |
Entropy defined in cipher system as a measure of information or uncertainty. Is it possible to be zero or infinite? What would it mean
based on Entropy formula:
$$H(X)=-\sum_{x \in X} P(x) \log_2{P(x)}$$
I think 0 would be the absolute certainty like a coin with both side heads but I cant "understand it mathematicall... |
So I am doing a CTF and I have found a text that is full with hexadecimal encrypted value with XOR (that was a given hint from the previous flag). I don't have the key but I know the length of the key is $8$. I also know that the word Congratulations is in the file somewhere. So, I guessed that if I XORed Congratu with... |
Does anyone care to explain what is the idea behind the init-update-final functions of cartographic hash functions (e.g. SHA*_Init, SHA*_Update, SHA*_Final from OpenSSL)?
|
Does running a plaintext through AES multiple times with the same password offers any security benefit akin to triple DES?
Note that I'm assuming “same password for each iteration”.
|
If through a previous attack, cipher misuse or two time pad etc. I receive $c=m_1 \oplus m_2$. Where $m_1$ and $m_2$ are compressed messages, for instance GZIPped English text documents. Can we recover something significant about the messages?
Obviously if we can guess two prefixes we can verify. Can we do more? Can s... |
i was requested to write a programmer that can generate A SHA2 certificate. So i wrote a tester class to try and mimic Keytool process of generating One (referencing base of this: url https://www.sslsupportdesk.com/java-keytool-commands/).
And i'm facing problem with Getting Subjectdetails... how can get those values ... |
I'm working through Pairings for Beginners by Craig Costello, and am trying to understand the Tate pairing.
He defines $rE = \{r*P | P \in E(\mathbb{F}_{q^k})\}$ and then forms the quotient group $E(\mathbb{F}_{q^k})/rE$. He then claims:
if $r^2 || \#E(\mathbb{F}_{q^k})$, then $E[r] \cap rE = \{\mathcal{O}\}$.
where ... |
I have a primitive that is able to generate a AES-128-CMAC from a message.
$\operatorname{CMAC}(\text{MessageAddress}, \text{MessageLength}) \rightarrow \text{result}$
I cannot change this primitive. I don't have direct access to the key, nor to the internals of that function.
Let's say that I want to authenticate a me... |
I just learned HMAC in class.
Keys are zero-padded in HMAC hashing function.
10 and 1 will be both transformed into the same final key (e.g. 1000).
Isn't that a problem?
|
My challenge is to transform a text into a representation of numbers 0-9. The number representation has to be as short as possible. What are the best options to achieve this?
Edit: I also need to transfer it back to text.
|
The private key version of McEliece known as Rao-Nam scheme, the encryption is done as c = (mSG + e)P. What is the need for applying permutation matrix on the error vector?
|
One of the basic requirements of DSA is to choose some prime $p$ of certain bit length. The security then lies in the intractability of solving $y = g^x \pmod{p}$ for $x$.
Is there any “easy” way to solve the discrete log problem when $p$ is composite? I thought about the Chinese Remainder Theorem but can't seem to fig... |
Note: This is not the same as Multiple iterations of AES for key derivation?.
Almost everyone has AES-NI nowadays - when building a cryptographic application, is is possible to leverage this to create a kdf that is about as slow for the attacker to attempt a single key on a single CPU as it is for the user to derive ... |
Can GCM be implemented with a stream cipher instead of a block cipher? If no, then what security flaw does it have?
If yes, then which possibility from below two is better in terms of security? In terms of speed, option ONE seems better as Stream cipher will be initialized only once in it (assume the input data consi... |
The usual way for a user to authenticate themselves to a website at the application layer is with a shared secret - the user's password. If a user is connecting to a bank, they give the bank their password, and the bank stores the password, hopefully not in plaintext, but as a salted hash run through a slow KDF.
There ... |
I am reading a paper which defines an algorithm as following: Suppose for the BLS algorithm I have parameters (p,g , G, GT ,e) where , G and GT are multiplicative cyclic groups of prime order p , g is a generator of G and e: G X G --> GT.
Now the client choses a random x from Zp as secret key and from here the public ... |
Quoting a blog authored by Vitalik Buterin regarding ZKP and Ethereum
One natural use case for the technology is in identity systems. For
example, suppose that you want to prove to a system that you are (i) a
citizen of a given country, and (ii) over 19 years old. Suppose that
your government is technologically ... |
AES has been rigorously tested against all known attacks. However, I believe there are 30 suitable irreducible polynomials that could be used for AES. If we were to change the current irreducible poly to another suitable one:
how can we be sure it will still be protected against DCA and LCA attacks?
can we show it is ... |
I write some certificate Authority that has it's own private/public cert keys .
This CA signs public keys of user.
If for example i have user that has a public cert that signed by the CA.
How I can verify later that the user's certificate as indeed signed by that CA if he has the public cert of the CA ?
I'm using crypt... |
Would appending a known string to the end of plain text then validating the string after decrypting adequately verify the authenticity of the cipher text?
|
Let $f$ be a length-preserving one-way function, and let $\text{hc}$ be a hard-core predicate of $f$. Define $G$ as $G(x)=f(x)\|\text{hc}(x)$. Is $G$ necessarily a pseudorandom generator?
The answer is yes if $f$ is a pseudorandom permutation according to theorem 7.6 in the book. I am fairly certain that the answer i... |
I have some confusion that concerns the message digest.
I know that the message digest is the real message hashed with function and we use it to verify the integrity of the message.
I understand the usefulness of using this with asymmetric encryption but I can't find the utility of this with symmetric encryption.
I wil... |
Fairly new to zk proofs. I am trying to find a article or use case of zero knowledge proofs that can prove that more than one entity owns the same data without revealing the data contents.
Entity A
- some userID
Entity B
- same userID as entity A
Is if possible to generate of proof for the userID and ask both A and... |
In "A practical implementation of the timing attack", the authors take advantage of a timing difference that stems from "extra reductions" that occur when multiplying numbers in the Montgomery form. After implementing a toy example of this attack, I thought I understood it. I created two sets of messages, one set conta... |
Here: http://safecurves.cr.yp.to/ , I read that the NIST P-256 elliptic-curve is not safe.
The article lists several aspects (off-curve point, side-channel, etc.) where implementing P256 can fail the security, how should we understand these?
I think this is valid for encrypting, but are these also valid for signing?
|
We know that escrow mechanisms are easy to implement when it involves a trusted 3rd party. For example if A and B don't trust each other they can simply send their goods to C whom they both trust. Then C can distribute the goods to them fairly.
However, is there a primitive that achieves the same when there isn't a tru... |
Recently I was working on the Rabin cryptosystem. But in the decryption part of the algorithm, there are two ways to decrypt the cipher.
The first solution which has $p$ and $q$ equal to $3\pmod4$ is very clear for me. But the second solution which $p$ and $q$ can be any prime number isn't. In the second solution: (HA... |
I was trying to implement a SHA1 algorithm last night, and I got stuck at preprocessing the chunks in SHA1.
As I have understood it, the message that has to be hashed, has to be broken into chunks of 512 bits, and if the last chunk is not equal to 512 bits, a 1 is appended to the bits, followed by '0', and at the end t... |
I'm working on a safe way to store a mnemonic key.
It's 24 words long.
Each word is 11 bits of entropy
I want to store it in 3 locations
One plate should not allow you to unlock the code
Two plates should allow you to unlock the code
Now to the interesting challenges:
If I die, I want my loved ones to be able to ext... |
CECPQ1 (combined elliptic Curve and Post-Quantum Cryptography Key Exchange) is a new key exhange developed by google, which combine X25519 with NewHope (elliptic Curve KE + Post-quantum KE).
Google has implemented CECPQ1 in boringSSL But there isn't a documentation or clarified explanation, how it works.
Looking at th... |
I want to find any two strings with same hash in any hash algorithm ( at least try to find depends on its collision resistance). What kind of algorithm should I follow? Should I constantly produce two random strings and compare them until I find a collision? Or I also think to produce a large rainbow table and check if... |
could you guys please help me with the following problem or tell me where to find an example or something to understand it:
Find a pair of values a and b so that the elliptic curve forms an abelian group
module 2459, then find the following:
(a) 245 * P where P is an element of the group, specify the value of P
(b) 133... |
On the page 31 of the Book "Efficient Secure Two-Party Protocols by Y. Lindell and C. Hazay", while defining the notion of security in case of covert adversaries, it is mentioned:
Define an adversary to be covert if the distribution over the messages that it sends during an execution is computationally indistinguishab... |
Suppose I have a set of numbers:
[1, 7, 6, 4, 8, 9, 4, 6, 3, 3, 1, 5, 4]
Suppose also that a verifier knows the merkle root of that set, R, but he doesn't know the set itself. Is it possible to convince him that the sum of all even numbers - i.e., 6 + 4 + 8 + 4 + 6 + 4 is 32 with a string of a small, constant size (i.... |
How can i define the base point of the elliptic curve group element used as the elliptic curve domain parameter over Fp (prime)
|
This answer talks about how non-prime numbers would make the algorithm easier to break, not that the algorithm doesn't work full-stop:
Why does RSA need p and q to be prime numbers?
Question 1:
this implementation uses the number 57, which is not prime as it divides by 3.
Choose p = 13, q = 57, e = 5 and message 'm' =... |
How to decrypt message
modulus => n
DD3C06552E24C0176790978159A347B8D57401E8BD740BF7A52969D8125623842BDC993648AE4392F76BEFAEE9F5B1FA7AA93B58A34D9CF22368C883825ADED338A3CA7B2E59336980A38CAF3A6A1186B6A6ED52C9706AE2C4203EE837229208E08E9D1C70B2CF4054BF7187306BA2F211A675A197FF3CE0CE7738F531437CC4DCE5259399D81CD9E8DABA29D0C5... |
I am new to cryptography, and there is one thing that is bothering me. I hope you can kindly help me to understand.
Let's imagine an attacker harvests the plaintext as well the ciphertext from a message that had been encrypted with a One-Time Pad (OTP). I am aware that OTP uses a reverse XOR operation to encrypt the da... |
From Katz & Lindell's book, theorem 7.19:
Let f be a one way permutation with hard-core predicate hc.
Then the algorithm $G(s)=f(s)||hc(s)$ is a PRG with expansion factor $\ell(n)=n+1$.
But what about if we use a one-way function? I know that there could be $f(x)=f(x^{'})$ when $x\neq x^{'}$, we lost some entropy her... |
Lets say I have a database that contains X SHA256 hashes . How do I calculate the likelihood of a me creating a hash out of random values that collides with any hash in the stored database?
|
I want to send a message consisting of a string of number (e.g: 124124134235235)
Then, p:125243 q:56454547
e: 2659043
d: 5261378624675
However, it will be too large...so, is there any solution to easily encrypt the message?
Or, I can divide "124124134235235" as 1 2 4 1 2 .... encrypting each number before sending the ... |
Is it a severe security issue using a short-lived dynamic key for both AES-CTR and AES-CMAC?
CMAC is generated on the cleartext and 32 bit of it are attached to the message (MAC-and-Encrypt)
The key exchange ensures that dynamic key and NONCE values are never in the clear on the wire.
|
It seems that a feedback shift register is counted as a linear feedback shift register whenever it only includes XOR operations. This leads me to believe that a non-linear feedback shift register is any feedback shift register that does not just use XOR operations and would include the use of S-boxes, AND operations, p... |
Suppose that:
$MK \in \{0, 1\}^{n}$ and the main key of a block cipher.
$RK_{r} \in \{0, 1\}^{n}$ and is the $r$th round key.
$RC_{r} \in \{0, 1\}^{n}$ and is the $r$th round constant.
$RK_{r} = MK \oplus RC_{r}$
What's the security of this key schedule. I'm imagining that it is not very strong.
|
There is a device which has three software running on it, the main purpose is the control of some machinery.
a GUI front-end, running on a single-board computer with easily accessible storage (hard disk or SD card, etc.)
a back-end, running on the same SBC as the above.
a microcontroller which drives the hardware, an... |
In general, can we construct a collision resistant hash function from a one-way function?
|
I am aware of basics of public key encryption algorithms , for eg. RSA.
If A wants to send a message to B, A uses the public key of B to encrypt the message A wants to send to B, and only B can decrypt the message using his private key.
What I don't understand is that what exactly is the digital signature, if for e... |
What are feasible options for an equivalent of Shamir Secret Sharing using small tables, preferably usable with pen-and-paper? We want to share a secret $K$ into $n\ge2$ shares, so that $m$ shares ($2\le m\le n$) are necessary to reconstruct the secret, and less than $m$ shares reveal no information about $K$.
For $m=... |
In this note, the manufacturer of a RSA key generation gizmo vulnerable to the new ROCA attack (see second section) explains that
it is common practice to employ acceleration algorithms in order to generate key pairs, especially if time resources are sparse. (We) also utilizes such an acceleration algorithm in time-re... |
Given a valid, signed X.509 certificate using the MD5 digest algorithm and an RSA public key, how feasible would it be to generate a public key which would, all other parts of the certificate being identical, not invalidate the existing digital signature when substituted into the certificate?
|
I'am working on searchable encryption.
First I create an index for a set of files. The index is B+ tree. The leaf of this tree is a bloom filter which represents the words in each file. Each bloom filter represents one file. Inner nodes represent XOR of these leaf nodes.
Last but not least: to encrypt this tree, I'ld l... |
I have encrypted files stored on a public cloud, in the same directory on the cloud I have the sha256 hash of the files before they were encrypted in a text file.
The keys used to encrypt the files are stored locally. Is it plausible that someone after downloading the files could use the original hashes to help brute f... |
Let's suppose I have a bunch of PBKDF2 hashes in a database. For the sake of keeping this simple, let's say I've used 10 iterations. A few years later I decide to upgrade to 20 iterations. I want to upgrade all hashes in one go so I rehash the old hashes instead of waiting for all users to log in. Do I use 20 or 10 ite... |
I often encounter the term “security parameter” when I read crypto related stuff. My basic understanding is that it just denotes some bit-length however, I'm not so sure.
For example, when it says
… output strings of length 2K where K is the security parameter
how should I understand that ?
|
In terms of cryptography, how secure is Apple Secure Notes? Can one store sensitive information there? The relevant section of the Apple white paper is quoted below:
The Notes app includes a Secure Notes feature that allows users to protect the contents of specific notes. Secure notes are encrypted using a user-provid... |
I am trying to perform simple power analysis on RSA. In particular focusing the
modular exponentiation module and for this I have implemented left-to-right variant of binary exponentiation.
pseudo code of the implemented algorithm is as follows:
Result = a^b mod N
k = length(b);
Result = 1;
for i = k-1 to 0 do
Resu... |
This refers to answer 2 on a similar question:Design properties of the Rijndael finite field
I am unsure what many of the terms mean in this answer. I think a bit-wise linear isomorphism of irreducible polynomial A refers to: $$A(x) = x^8+x^4+x^3+x+1=100011011$$ or $11B$ in hex. And I assume B refers to another irreduc... |
OpenPGP is generally used for encrypting and signing e-mails.
Are there any other use cases?
If yes, which cases?
|
This is continuation-question based on: If PRESENT had different permutations s would that protect it against Statistical Saturation Attack?
Can we protect PRESENT from Statistical Saturation Attacks by using:
unique perms for each round or just some rounds? (In this case, how many might some have to be?)
random, key-... |
Suppose that:
We have a polynomial $g(x)$ of degree $n$.
$n > 8$.
$q$ is the multiplicative inverse of $p$ in $G(2^n)$ modulo $g(x)$. If $p = 0$, then $q = 0$.
This could be used:
As a non-linear substitution stage in a block cipher, where $y_i = S(x_i)$ and $S: \{0, 1\}^{16} \rightarrow \{0, 1\}^{16}$.
In the decry... |
Is there a web page that gives a graphical (or, alternatively, a textual) overview of known implications and separations between cryptographic primitives?
More specifically, I am looking for something like the following, but more comprehensive and with references to the respective works.
(The following graphic is taken... |
According to Wikipedia RSA definitions are :
so we have $n$ and $e$
because $p$ and $q$ are prime so there is only one $p$ & $q$ which fit to n so from n we can have $p$ and $q$
so we have $\phi(n)$
in the algorithm $d$ is an integer which doesn't effect rest of algorithm, that done before so any $d$ with definition of... |
I have gone through the paper (PDF) available at krackattacks.com.
However, from what I understood you force a key reinstallation causing you a nonce reuse over 2 blob of data. As it is a keystream, you might be able to decrypt the data.
Limitations are:
You MUST know clear text of one of both data
It is one shot as t... |
I'm having a hard time creating a functioning RSA algorithm for some reason even though I have all the steps right (or at least I think I do). So I have the following :
I picked prime numbers, $p$ and $q$ as:
$$p = 13691$$
$$q = 29387$$
I picked $n$ as $p \cdot q$
$$n = 402337417$$
So
$$\phi(n) = 402294340$$
I picked ... |
I have a doubt about AES-GCM on how can I avoid replay attacks. We have 2 users (Alice and Bob). After that the entities negotiate crypto parameters and generate a symmetric key, they'll exchange encrypted message.
The possible encryption algorithms are two: AES-128-GCM and AES-128-CBC.
By using AES-128-GCM, Alice and ... |
On page 21 of his HKDF paper, Krawczyk criticized one of the stated desirable features of KDFs from the paper “On The Security of Key Derivation Functions” (Emphasis mine):
Due to the way the hash function is used by these schemes, their
strength (measured by the work factor it takes to guess the output
of the KDF... |
Talking about symmetric encryption, I have 3 elements which I keep trying to puzzle together: IV, encryption mode, and padding.
My question really is which of these elements makes the ciphertext be random?
What I believe right now:
Padding:
The padding does not "add" randomness. It only solves the problem of being able... |
Let $F$ denote a function that returns the first $800$ bits of the input.
Let $G(N)$ denote a function that returns the last $800$ bits of the binary encoding of the given number $N$. For example,
$$\begin{array}{l}
G(0) = 00\underbrace \ldots _{{\rm{796\;zeroes}}}00,\\
G(1) = 00\underbrace \ldots _{{\rm{796\;zer... |
We first need to show that for each pair of plaintext-ciphertext
letters ( x,y ), there are exactly 12 keys that encrypt x to y . For
each choice of a , the key ( a,y − ax ) encrypts the plaintext letter
x to the ciphertext letter y , since ax
+ ( y − ax ) = y . There are twelve possible choices for a so the... |
Assume a scenario where a symmetric encryption algorithm (for example: AES) wasn't implemented in a way it would safeguard against timing attacks. This symmetric encryption implementation is only used locally to encrypt/decrypt data.
The only time that data is passed via a network (if at all), it is done so as pre-encr... |
Shamir's scheme for implementing an $(n, k)$ sharing of a secret $S$ involves a random polynomial $F$ of degree $k-1$ such that $F (0) = S$. Each of the $n$ shares of $S$ is a pair $(x, F (x))$ for $x$ between $1$ and $n$. Consider a setting with $n$ participants $P_1, P_2, \dots, P_n$, and 2 secrets $S1$, $S2$. Each p... |
I was working with one-time pad, and as I understand , for one time pad to be 100% secure a key shouldn't be repeated. So assuming Alice and Bob have to exchange messages over the network secured over OTP, they both have to have the same key, which should happen by physically meeting and sharing the key on a drive for ... |
From some time I am working with "pen and paper" encrypted text.
Keys are not known, algorithm is not known.
I managed to find simple algorithm and key that seems to be nearly perfect.
Nearly perfect means that using this algorithm and key I can decrypt part of the encryption into meaningful text (~10 consecutive lette... |
Would using the ciphertext of the previous block as key instead of XOR:ing the block and encrypting with the normal key work?
Normally it's done like this:
What if we instead do this:
Seems like it should be more or less the same thing in the end?
|
I've tried to do something very simple here, which is to encrypt a message with a one-time-pad (OTP) and include the next OTP as part of that same encrypted message. i.e. The first message consists of the actual text of the message and then the next OTP added to the end. The length of the OTP should always stay the sam... |
In textbook RSA with no padding schemes, is it possible to forge a ciphertext that decrypts to a known plaintext when the ciphertext is encrypted using the private key and decrypted with the public key?
Specifically, assume the plaintext and public key are known. The private key is unknown. In this scheme, person A enc... |
I am a beginner learning about encryption. The Searchable Symmetric Encryption is better than Deterministic encryption? When I say better I mean smaller leakage.
|
I am using standard encryption AES/CBC.
I wonder if I can invest some time adding my own custom encoding/decoding after the encryption just as an extra security layer.
Does it really add any value in case the public algorithm is broken and the key still not compromised?
Is unknown custom algorithm (encoding/decoding)... |
Here is a hypothetical application of AES-CTR encryption.
Encryption:
Step 1: Generate random key and IV for new object;
Step 2: Use said key and iv to encrypt some data, which is then
stored on a content server;
Step 3: Encrypt key and IV using some secret master key, and store
the wrapped keys in a database table.
... |
Assume Alice wants to communicate with Bob. Bob provides his public parameters $(g,n,y)$ with $y=g^x$ where $x$ is his secret key
Now Alice wants to send $m$ to Bob. She generates a random $r$ and computes $u = g^r$ and $c=my^r$ and sends back to Bob $(u,c)$.
You intercept $(g,n,y)$ and $(u,c)$ and you also know what $... |
I need to generate 1024 pseudo-random bits from a 100 bytes string seed (only valid lowercase chars)
One thing I'm pretty sure would be secure enough would be to repeat this 100 bytes string 20 times and encrypt it (using itself as the key with AES for instance) and then return the first 1024 bits
Does that seems fine?... |
Let $G: \{0, 1\}^n → \{0, 1\}^m$ be a PRG. We construct a function $G': \{0, 1\}^{m + n} → \{0, 1\}^{2m}$ defined as follows
$G'(x || y) = x || (G(y) ⊕ x)$
for all $x ∊ \{0, 1\}^m$ and $y ∊ \{0, 1\}^n$. (The symbol || denotes here the concatenation of binary strings.)
Is $G'$ a PRG?
I believe that it is not, but I co... |
Ok, I have a wordlist of many many links (of the same site with a bit of difference in URL).
I'm certain that the majority of then will return the same result, a error page. But one will return the "correct" page.
The point is:
Is there a automatic way to test all of those links searching for the different one?
|
I have data sample of 1,000,000 bytes generated by a hardware RNG. The device is certified by ENT test suite, NIST SP800-22, DIE HARDER and TestU01.
I have tested my sample by SP800-90B_EntropyAssessment (github.com/usnistgov/SP800-90B_EntropyAssessment). Minimum Entropy Estimate is 7.88237 after which I run Restart Te... |
The same message results in different cipher text every time AES-GCM is applied. If an attacker collects repeated messages over time, will he be able to extract the plain text if enough cipher text is collected?
|
I would like to know if there are some symptoms that let me detect if my integrated circuit is actually subject to a side channel attack.
For example, are the following potential indicators?
Energy consumption becomes too high
Temperature becomes too high
|
Meaning the same key is used for encryption and decryption (symmetric). The same message always results in the same cipher text (deterministic) and has no memory (conetext free) like nounce or intialisation vector (IV).
Which algorithms exist and are recommended?
|
Problem: want to encrypt messages/objects/files using AES-GCM with the same secret key in a safe way, but want to do it in distributed/stateless way, so the IV of previous encryptions with the same key are not known and as I understand AES-GCM is not so secure with many messages if random IV is used.
Would example of t... |
I'm having a hard to finding out how I can detect if protocols are vulnerable to impersonation of Alice/Bob by Eves' replay attack! I have an example here:
$$\begin{array}{lclcl}
\mathsf A & \to & \mathsf B & : & \mathtt{Hello} \\
\mathsf B & \to & \mathsf A & : & B, K_{ab}\{B\} \\
\mathsf A & \to & \mathsf B & : & A... |
so in rabin decryption, we get 4 answers due to the square root and one of them is the correct one although I've seen the correct result multiple times sometimes i.e. 2 out of the 4 square roots. Is this normal?
|
The two main advantages of lattice-based cryptography are
resistance against quantum attacks
Cryptosystems constructed using lattice are worst-case hardness.
Are there are other advantages of lattice-based cryptography over ECC. Can we mention, cryptosystems based on lattices are simple to implement as it simpler ope... |
Both block ciphers and symmetric-key encryption use a secret key to transform plaintext into ciphertext, and do so in a reversible manner. Are they the same? Or does symmetric-key encryption also includes things other than block ciphers?
|
I'm having a hard time understanding the concept of LFSR, polynomials and finite field and how to solve exercises like picture below. Could anyone give me some pointer on where to start?
|
Specifically: Alice and Bob want to know if they like each other, but won't admit it if the other person doesn't reciprocate. (They're teenagers, or physicists.) They don't trust anyone else, so want to do it cryptographically.
So, say A->B=1 if Alice likes Bob, 0 otherwise. And let B->A=1 if Bob likes Alice, and zero ... |
The RFC 5246 defines generic block cipher as follow:
struct {
opaque IV[SecurityParameters.record_iv_length];
block-ciphered struct {
opaque content[TLSCompressed.length];
opaque MAC[SecurityParameters.mac_length];
uint8 padding[GenericBlockCipher.padding_length];
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.