Questions tagged [symmetric]
Symmetric cryptosystems assume two communicating entities share a pre-established secret key.
791
questions
0
votes
1
answer
75
views
+50
would compressing encrypted data and compressing digital signatures bad for security?
I understand that compressing encrypted data and compressing digital signatures are not efficient because they are most likely incompressible. But in my application encrypted data and digital ...
3
votes
1
answer
396
views
Security Strength of Symmetric vs Asymmetric Ciphers
NIST SP 800-57 Part 1 rev 5 section 5.6.1.1 gives following comparison between different encryption types. For example, it shows that 3TDEA, RSA-2048, ECC224 provides security strength of 112 bits.
...
4
votes
2
answers
166
views
+50
In a PGP like Application , would compress and encrypt leak information
would compress and encrypt on data comromise security for PGP like application, would it be secure for use in Encrypted Messaging?
I have heard its safe for data at rest encryption , i have heard ...
-2
votes
0
answers
59
views
Is there any way to break the AES encryption mechanism? If yes, what is the most secure encryption mechanism? [closed]
I've been studying cryptography recently and from what I've seen, AES-256 and AES-128 seem like some of the best encryption mechanisms. Are these encryption mechanisms not secure compared to others ...
2
votes
1
answer
46
views
Confirming understanding of security protocol modelled in Scyther
In university, I'm currently learning how to use Scyther to model security protocols. Currently I am trying to understand what is happening in an example protocol given to me which is:
...
6
votes
3
answers
1k
views
Does symmetric key cryptography usually include hash function?
This may be a very basic question.
I know that symmetric key algorithms use the same key to encrypt and decrypt plaintext and ciphertext.
However, it seems that hash functions are often classified as ...
1
vote
1
answer
82
views
What are the best known cryptanalytic attacks against AES-128 with 9 rounds?
What are the best known cryptanalytic attacks against AES-128 with 9 rounds?
I found many such attacks on AES-192 and AES-256 with 9 rounds, but not for AES-128 with 9 rounds.
Are there any ...
6
votes
1
answer
118
views
What is the status of the NIST Lightweight Cryptography Standardisation Process?
The NIST Computer Security Resource Center called for nominations for a process to standardise lightweight symmetric primitives in August 2018.
In the update talk in the 2019 Lightweight Cryptography ...
1
vote
1
answer
211
views
Best attack estimates on AES
The wikipedia article on the Advanced Encryption Standard claims an attack against AES-128 with complexity $2^{126.1}$. The NIST call for proposals for post-quantum cryptography (table on page 18) ...
3
votes
1
answer
40
views
How to formalize part of a protocol in ProVerif?
I'm trying to formalize the following protocol in $\mathsf{ProVerif}$, where $m$, $p$ are messages, $j$, $k$, $h$ are private keys, and $\{m\}_k$ is the ciphertext obtained by encrypting $m$ with $k$. ...
1
vote
1
answer
77
views
What schemas are possible for the following encryption algorithms?
I'm trying to practice and to understand possible scenarios and the basics of symmetric encryption schemes. For the scenarios I listed below, I am not 100% sure of scenarios 1 and 3.
A symmetric ...
34
votes
2
answers
8k
views
Is AES-128 quantum safe?
I've been reading lately some contradicting messages with regards to the quantum-safe resistance of AES128. First, there are blog posts by Ericsson people like these ones:
Can quantum attackers break ...
1
vote
1
answer
37
views
How to obtain inverse key stream efficiently on Present cipher?
I was taking a look at the Present lightweight cipher presented here. You can see an implementation of it in Python here. It is basically a Substitution-Permutation (SP) cipher with ultra-lightweight ...
2
votes
2
answers
891
views
What are the performance reasons behind "xor-a-rotated-sum" instead of "add-a-rotated-xor" in Salsa20?
I'm currently reading the specification of Salsa20 (link). DJB on whether he chooses
"xor-a-rotated-sum" instead of "add-a-rotated-xor" states the following :
Should there be ...
1
vote
1
answer
124
views
Reversing an XOR encryption/decryption function
I have a help recommended high-school project that I'm stuck with. To basically explain the problem: I have an encryption function that is used as the decryption function and I need to reverse it to ...
0
votes
2
answers
161
views
Password encryption in database
I want to store passwords in a database in a way I can reuse them to authenticate users (symmetrical encryption).
I read some good information here: https://cheatsheetseries.owasp.org/cheatsheets/...
0
votes
0
answers
63
views
Difference between the eavesdropping and the CPA experiment in the case of multiple messages
while reading Introduction to modern cryptography by Katz and Lindell, I came across these two experiments:
For me, they look like it's the same thing. Can you please explain me the difference? ...
0
votes
0
answers
53
views
Exchange key and input in GGM tree
In the GGM tree construction for constructing a PRF from a PRG, the secret key is used at the root of the tree and the input is used to trace a path through the tree. Consider a construction that does ...
15
votes
6
answers
6k
views
Why do web-services tend to use preshared secret keys for client authentication instead of public keys?
Every API that I have ever signed up with gives you a secret key that you can then paste into your application. They know the key, and so do you. (The one exception may be VAPID for Web Push).
Why is ...
2
votes
0
answers
30
views
Do symmetric and skew symmetric key schedules have any known weaknesses?
A symmetric key schedule is a key schedule of the form $(k_1,\dots,k_{n-1},k_n,k_{n-1},\dots,k_1)$ or of the form $(k_1,\dots,k_{n-1},k_n,k_n,k_{n-1},\dots,k_1)$. A skew symmetric key schedule is a ...
0
votes
0
answers
40
views
How LastPass decrypts database on web browser?
According to video from Dr. Pound, password managers (LastPass in particular) holds encrypted image of your data on their servers and then with master password you authenticate to get encrypted image ...
2
votes
2
answers
163
views
How to destroy a randomly generated key after using it?
for example, I have an encryption program like this:
Input: a message, M; my public key Kpub
Step 1: randomly generate a ...
-1
votes
1
answer
181
views
AES vs Kuznechik (GOST R 34.12-2015) comparsion [closed]
Which algorithm is more crypto-resistant: AES or Kuznechik (GOST R 34.12-2015)?
0
votes
1
answer
80
views
Encrypting a document with 2 different keys
Is there a way to encrypt a file with 2 (or more) keys and then access it with only 1?
Scenario:
Bob and Alice have a tight memory and can only remember ONE key.
Bob and Alice encrypt a file with ...
2
votes
1
answer
66
views
Can raw hash be used as secret key
I am trying to use argon2 hash to derive secret key to be used for AES-GCM , in package argon2-cffi in python there is a function argon2.low_level.hash_secret_raw(secret: bytes, salt: bytes, time_cost:...
0
votes
1
answer
99
views
Can cryptographically secure randomness be used to implement one time pad?
if I use an one time pad key generated using a cryptographically secure random source like python's secret module , to encrypt a message, will the one time pad scheme be secure?
I think the entire ...
0
votes
0
answers
24
views
What happens if the number of message queries are restricted?
In this thread, we only consider symmetric key encryption.
I am not familiar with this field, so I am somewhat of an idiot myself.
The usual symmetric key encryption allows unbounded queries of ...
1
vote
0
answers
61
views
is HMAC required if i am using AES-CFB and using Digital signatures for Authentication
I researched online and found AES-GCM and ChaCha20Poly1305 aren't post quantum secure. So I am planning to use symmetric AES256 cipher in CFB mode do I need to implement MAC using HMAC like HMAC-...
0
votes
2
answers
147
views
Use blake2 permutation as a block cipher
Blake2(1024 bit state) permutation (compression function core) is basically a modified ChaCha permutation. One of the modifications is to mix in message bits (key schedule?). Given that blake2 is a ...
0
votes
1
answer
80
views
Is a static IV really less secure than an IV generated from a master key?
As an example, let's take a simple situation where AES-256-CBC with IV + MAC is used to encrypt a given plainText and offer authentication.
...
0
votes
1
answer
27
views
When would we need a bigger IV than 2 bytes when the IV is derived of a master key?
As an example, let's take a simple situation where AES-256-CBC with IV + MAC is used to encrypt a given plainText to offer both authentication and prevent identical cipherTexts.
...
0
votes
0
answers
41
views
Whats a practical and safe encryption to use today? [duplicate]
I'm new to making applications that encrypt sensitive data and so don't know where to start.
My question is what is a good encryption scheme that can be run in a good time for normal application and ...
1
vote
0
answers
52
views
Distinguishing key reuse in encryption algorithms
Let $E$ be any encryption algorithm, and consider the following game capturing key reuse.
Alice samples a key $k$
Bob sends a set of messages $\{m_1, ...,m_n\}$ to Alice
Alice flips a coin
if heads ...
2
votes
1
answer
76
views
Sponge Duplex authenticated encryption with nonce reuse or no nonce
With a Sponge permutation in a Duplex construction for authenticated encryption.
illustration example: ascon; actual interest if relevant: keccak
Suppose there is no associated data and there is no ...
0
votes
1
answer
99
views
Encrypting two messages with the same content with different keys/IVs still secure if attacker knows they are the same?
I want to store two ciphertexts inside the same file.
The data stored in each ciphertext is the same (except for padding), but the data was encrypted with different keys and IVs. Both ciphertexts were ...
3
votes
1
answer
352
views
Simon's quantum algorithm for symmetric encryption
Though there are many papers available on application of Simon's algorithm for symmetric encryption, nothing is clear on implementation - like how to build the oracle, how many PT-CT combinations are ...
1
vote
1
answer
71
views
Private key encryption based on NP-complete problem
Over a decade ago, a question was asked on Stack Overflow, which basically asked if there were any encryption schemes that are reducible to an NP-complete problem, in the sense that breaking the ...
0
votes
3
answers
235
views
Do we want to allow/Have we allowed parallelization (e.g GPU programming) to enter the cryptographic field? What are the consequences?
With the term GPU programming, I'm referring to highly parallelizable computing in general.
Lastly, I have built a bit of a background in cryptography. So I have started to wonder if/where GPU ...
0
votes
0
answers
38
views
Asymmetrical scheme: insecurity concerns of saving a hash of a hash of a password
please verify or explain how to do this properly.
I'm letting a user create keys from the client through a secure server.
I ask the user for a password on the client, then send the hashed password to ...
0
votes
2
answers
166
views
Why do we need to use Asymmetric cryptography if Diffie-Hellman solves the key exchange problem of symmetric cryptography?
I am new to cryptography and I cant get my head around this issue:
If symmetric cryptography is faster then asymmetric and given that Diffie-Hellman key exchange algorithm allows you to exchange keys ...
1
vote
1
answer
261
views
Sending encrypted message without public key from recipient (elgamal)
assume Bob and Alice use Elgamal encryption scheme. Alice wants to send Bob a message, but does not know Bobs public key. Is there a way for Alice to find out Bobs public key by receiving multiple ...
0
votes
1
answer
103
views
How to use symmetric encryption on 1on1 and group chat messenger?
Hi everyone so currently I'm trying to learn about encryption to build secure messaging app (Mobile-app, flutter based). I want the app to have 2 messaging features which are 1 on 1 messaging and ...
0
votes
3
answers
131
views
Symmetric encryption algorithm based on multiplication
I've been wondering about this paragraph for some time:
Multiplication is a great mixing function. If you work out what multiplication looks like in terms of ANDs and XORs it becomes apparent how ...
4
votes
1
answer
354
views
Can a digital signature be used to generate a key for AES encryption?
I am looking to see if using a digital signature is a secure and reasonable way to generate a key for AES encryption.
To flow would be as follows:
A user signs a message ...
2
votes
0
answers
52
views
Encrypting with one key and decrypting with a related key
Given $n$-bit block cipher $E$ (and its inverse $E^{-1}$), define block cipher $E^\prime_k(m) = E_k(E_{f(k)}^{-1}(m))$ where $k,f(k) \in \{0,1\}^n$ and $\forall k:f(k) \ne k$. Under the ideal block ...
0
votes
0
answers
10
views
$t'$ parameter in XSL Attack
In XSL Attack, $t'$ parameter can be defined as "the number of monomials in the S-Box equations to be used in $T'$ method" Without taking into account the arguments about the attack, how can ...
0
votes
0
answers
54
views
Why some people said we should use Asymmetric key to cipher the weak Symmetric key?
I heard from some people that create a software licensing. They need to generate a short license number format. So if they use RSA (Asymmetric) they will got long key. Also if they use AES (Symmetric)....
1
vote
0
answers
16
views
Connecting, joining or merging Substitution Permutation layer
I am trying to identify how the SP Network is constructed. I am looking for plausible solutions that help to connect these layers together and what are the ways that exist in literature other than Kam ...
4
votes
0
answers
102
views
Security analysis of North Korean block cipher Jipsam1
The cipher is a modification to AES and is described on this website:
The only difference between Jipsam1 and AES-256 is the S-box. Whereas in AES the S-box is public and constant, namely
$$
\begin{...
1
vote
0
answers
351
views