Questions tagged [aes]

AES (Advanced Encryption Standard) is a symmetrical block-cipher algorithm with a 128-bit block size, and key sizes of 128, 192 or 256 bits.

Filter by
Sorted by
Tagged with
1
vote
0answers
46 views

How to calculate how long it will take to break deliberately weakened AES encryption?

for a project I'm looking to make as an art project a series of encrypted "time capsules" that have deliberately weak encryption, enough that it isn't feasible to crack them now, but could ...
0
votes
1answer
51 views

AES-128 CBC encryption : ciphertext size seems too large

I am trying to encrypt messages with the AES symmetric algorithm using C language. I am using a key, an Initialization Vector (IV) and a plaintext, all with a length of 16 bytes. I expected as output ...
0
votes
0answers
61 views

Is AES/CBC/PKCS5Padding vulnerable if used for store data on a db

Is padding oracle attack applicable to data stored on a DB in AES/CBC/PKCS5Padding? Specifically I would like to be able to use Postgres with pgcrypto https://www.postgresql.org/docs/13/pgcrypto.html#...
1
vote
2answers
78 views

Is it cryptographically insecure to use fixed-length AES-GCM messages?

Is there any weaknesses to encrypting fixed-length messages? Should a random amount of padding be added to the message to decrease the odds of some sort of attack?
1
vote
1answer
53 views

AES (or otherwise): can you decrypt concatenated encrypted messages as one?

Say I have 20 distinct encrypted messages. Using AES, I am only getting the correct output if I decrypt each of the 20 messages individually. Is it possible using AES or another method to call my ...
2
votes
2answers
240 views

Benchmark for CSPRNG as stream ciphers?

My limitation in my security protocol is that I want my RNG as CSPRNG and I also want it to be super fast. If I use Salsa20 or ChaCha or AES counter mode, I don't get the desired speed. I want my PRNG ...
2
votes
2answers
126 views

Secure AES IV with static salt

I have an (offline) shared secret key (symmetric) which is used to encrypt/decrypt data. Now this data belongs to a specific user which is known on the backend and frontend. My idea was to use the ...
0
votes
0answers
58 views

Stick figure AES: what does “I take each column and mix the bits in it” do? [duplicate]

I've been reading A Stick Figure Guide to the Advanced Encryption Standard (AES) to help me understand how AES works. In this picture it says: I take each column and mix the bits in it. But then ...
-2
votes
0answers
32 views

AES CBC Encryption Key & Special ASCII characters [duplicate]

Can we add characters like α π Σ µ ...
8
votes
3answers
516 views

What is this AES SBOX triplet property?

While playing around with the AES SBOX, I found out that there are 85 unordered triplets (a, b, c) that have the following characteristics: ...
-1
votes
2answers
294 views

Special characters in AES Encryption Key

We all know that AES uses Key, IV and salt. But what if we add special ASCII characters like Alternate 255 (" ") or Alternatively 163 ("£") or Alternate 224 ("α") in the ...
0
votes
1answer
110 views

AES speed compared to permuted LCG

What is the speed of AES and how to estimate it well? Here: https://security.stackexchange.com/questions/92074/aes-algorithm-encryption-time they wrote it could be 700 MB/s. But here: https://www.cse....
2
votes
1answer
140 views

Linear AES : expression of K in AES(P) = AP+K

I am currently trying to attack a modified AES with an identity S-box. I found this topic which explains that we have the equation $AES(P) = AP + K$, with $A$ a 128x128 matrix that is not key-...
7
votes
1answer
939 views

Does AES encryption work like a padlock or like a safe?

If I encrypt a plaintext p using AES-256 in GCM mode with the keys $k_1 ... k_n$ and I want to decrypt it later, can I use the keys in any order when decrypting or do I have to use the same order as ...
0
votes
0answers
49 views

Number of false keys in exhaustive key search for block ciphers

I'm doing a self study through Understanding Cryptography by Christof Paar and I have a question about Theorem 5.2.1 in the book: Given a block cipher with a key length of $k$ bits and block size of $...
0
votes
2answers
120 views

Encrypting cryptocurrency seeds for cold storage

I’d like some feedback on an encrypting algorithm. I’m not rolling my own, but even putting together well-proved pieces may create many pitfalls. (I don’t know if I'm stretching questioning in this ...
15
votes
5answers
2k views

AES GCM : is it acceptable to return the wrong plaintext if the tag is incorrect?

Let's start by saying I'm no cryptography expert, I'm just a developer, so feel free to correct me (using words, not downvotes) if what I'm saying is non-sense. Context: I'm doing some crypto as a ...
1
vote
1answer
47 views

find master key given all but last decryption round keys

I have all but the last round key in AES-256 CBC decryption, and would like to build the master key, but I am unsure how to go about it. I have read I can convert decryption roundkeys to encryption ...
0
votes
2answers
111 views

AES plaintext is smaller than 128 bits [duplicate]

I'm currently developing a AES implementation in a graduation project at university. As far as I know, AES uses a 128 bit block length as input . if the entered string to encrypt is not 128 bits such ...
0
votes
2answers
55 views

what is auth data in AES-GCM

I am trying to understand AES-GCM and I do not understand what I should transmit to Auth Data during encryption. What kind of data is that?
2
votes
1answer
51 views

How to do unmasked addition on SSS masked shares?

I'm trying to understand how Shamir's Secret Sharing algorithm is applied to AES when doing threshold masking. I understand how the secrets are created and the secret is calculated and I'm now trying ...
0
votes
1answer
135 views

Is a random string good for an AES-256 instance

I have a randomly generated string of about 256 characters long. This string is hashed to for a key and initialization vector for a program running on the .NET framework 4.8. Is this method secure ...
3
votes
1answer
72 views

Number of plaintext–ciphertext pairs needed to rule out false keys with a reasonable likelihood in AES

I am new to cryptography and I've got the following question from Understanding Cryptography: Imagine that aliens — rather than abducting earthlings and performing strange experiments on them — drop a ...
0
votes
0answers
89 views

CNG/BCrypt/NCrypt Import an ephemeral AES key wrapped with a persistent RSA key

I will write some kind of security client/server pair: The server part provides wrapped AES keys. The client part, based on CNG win32 API (ncrypt.h+...
2
votes
1answer
107 views

AES or One-time-pad for encrypting a single 128bit block?

I just started my network security course and came across the below question. Could some one help me here. User A wish to send a 128-bit secret message, S, to user B. As the preliminary step, both A ...
0
votes
1answer
50 views

In a hybrid cryptosystem is safe to send the encrypted key together with the encrypted message?

I am encrypting a message using an hybrid cryptosystem: I encrypt my message using AES-256 and I encrypt the symmetric cipher key using RSA. The following questions come to my mind: I want to know if ...
0
votes
1answer
152 views

AES Password Based Key Derivation Iterations

I have been writing my own implementation of the Advanced Encryption Standard with cipher block chaining in python3 for the last several months, mimicking the OpenSSL command line interface. I can ...
0
votes
1answer
344 views

AES/GCM/PKCS5Padding giving issues while AES/CBC/PKCS5Padding works fine for my use case

I have a requirement to read-encypt-save plus its reverse i.e. read-decypt-save files through chunk/block mechanism (single operation not feasible because of huge(GBs) file sizes). So essentially the ...
2
votes
2answers
124 views

How much data can we encrypt using AES 256 before changing the key?

Although this question has been answered in this link (After How Much Data Encryption (AES-256) we should change key?), I am not satisfied with the answers because the Recommendation for Block Cipher ...
3
votes
1answer
130 views

How does AES bit security increase by round?

As AES progresses through multiple rounds, approximately how does it security increase round by round up to its maximum? I'm curious about the shape of the curve. Is it linear, some kind of ...
1
vote
1answer
63 views

Can Stream Cipher be Used to Encrypt & Decrypt a File (Eg: .txt .docx .exe .zip)?

I was new to cryptography. And I know that in the world of cryptography there are two types of Symmetric Algorithms: Stream Cipher (RC4, Salsa & Chacha) Block Cipher (DES, AES) And when doing ...
4
votes
1answer
118 views

Is there any correlation in between two AES with a key differ only by one bit? (ECB mode)

Given two AES (128bit, ECB mode) with almost equal keys $k_1,k_2$: 127 of the 128 key bits are equal. Is there any correlation in between the ciphers they build? $$AES_1(m_i) = c_i$$ $$AES_2(m_i) = ...
0
votes
2answers
69 views

AES Implementation for Image Encryption

I've been delving into cryptography for fun and trying to implement a visualization for AES using image encryption. So far, represented each pixel's RGB values as hexadecimal numbers, then split it ...
2
votes
1answer
77 views

How to create the ciphertext that generates a desired plaintext in CBC (previous cipher- and plaintext are known)

I'm struggling with understanding this part of the literature: It can be assumed that the entire ciphertext AND plaintext is known. Considering the encryption method is $C_i = enc_k ( P_i \oplus C_{...
1
vote
1answer
122 views

Low Encrypted Entropy on PDF File

Thank you for the answers, I have edited my questions. It is a known fact that encrypting the files increases the file entropy. You can see the average entropy values of encrypted and non-encrypted ...
1
vote
1answer
109 views

CTR block generation

From what I understand, CTR works by taking a counter, concatenating it with a nonce, and encrypting the result, which gets XORed to the ciphertext. For a 128-bit block cipher (ie. AES), my ...
4
votes
2answers
772 views

Changing an Encryption scheme from AES to ChaCha20

I am using the AES cipher for my OTT platform. Almost all Chip vendors (ARM, Intel, etc) have built-in AES for faster and secure processing. Now, how feasible it is to move from AES to ChaCha20? ...
1
vote
0answers
44 views

Combining ECC And RSA for a Web Based Chat system

I'm a building a Web application chat message system(Over TLS) and i would like to know if the following theory is correct. Sender I'm generating keyPairs using RSA and another KeyPairs using ECC. By ...
1
vote
1answer
46 views

Exploitability of AES in CBC Mode For Recovery of Plain Text

I'm aware of existing literature that shows in a comprehensive manner just how simple it is to tweak the ciphertext of AES-CBC such that the decrypted message ends up being entirely different than ...
1
vote
1answer
72 views

Is AES strictly speaking a SP network?

Forgive me if this seems like a trivial question. I've read that AES is a SP network. However, when reading about P-boxes in SPNs they say that they simply shuffle bits around. In AES the ShiftRows ...
0
votes
1answer
55 views

Can we design a block cipher based on SP-network without loss of E/D similarity theoretically?

I understand what SP-network (Substitution-Permutation Network) and Feistel Network look like. And those ciphers based on Feistel (e.g. DES) often achieve so called E/D similarity, which indicates ...
0
votes
0answers
19 views

Conditional probability being Constant in Threshold Cryptography

I am working on Threshold implementation of algorithms to prevent side channel attacks. I am not that much proficient in Statistics and Probability theory. I want to know what is the significance of ...
1
vote
1answer
252 views

Finding the IV of AES CBC (CTF)

We have a python program that encrypts/decrypts plaintext given in hex to a cipher using AES CBC. We know that the IV is the same and is not going to change (it is stored in a file). How can we ...
0
votes
0answers
27 views

Using pin code as a lockscreen for a mobile application

So I am developing an iOS & Android Application where a lock screen is used for authenticate a user. There are 4 options to unlock the screen: Password, biometric, pin code and nothing. I wanted ...
0
votes
1answer
67 views

Is it safe to reuse an IV 100 times to a single key with AES CBC? [duplicate]

I have a unique 6 digit number that I am generating a IV from. I am trying to make it as unique as possible. From my programming, I am able to get it down to only have 100 duplicate IVs per unique 6 ...
8
votes
1answer
1k views

Triple AES-128 encryption with 2 keys

We have a system where two devices communicate. Due to restrictions on one of them, we can only use AES-128 (so no AES-256) for encrypting the communication. However, new requirements on these kinds ...
0
votes
1answer
44 views

AES MixColumn Polynomial Transformation [duplicate]

I just read about the AES MixColumn step, which can be calculated as: $$b(x)=c(x)a(x) \pmod{X^4 +1}$$ $a(x)$ is the column to encode and $c(x)=3x^3+x^2+x+2$ My question is: how did they calculate $c(x)...
0
votes
1answer
83 views

Which encryption technique should be adopted to keep the search functionalities?

I am in exactly the same situation as described in this post. I must be able to encrypt data from a client workstation then send it to an untrusted server (encrypted at rest), then decrypt it only on ...
0
votes
1answer
111 views

IV in RSA Encrypted Private Key

I have been provided an RSA encrypted private key which was generated in NodeJS (crypto) using the following: ...
1
vote
1answer
35 views

Cipher Text generated is different if nonce is greater than 12 bytes

I wrote a library which uses AES-GCM-128 to perform encrypt and decrypt operations. This library uses EVP functions that provide a high level interface to OpenSSL cryptographic functions. To verify my ...

1
2
3 4 5
46