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
0
votes
0answers
5 views

File/Dir/Tar encryption pipeline - what md/cipher/mode? [migrated]

I'm piping the results of a tar operation into openssl. File size is typically less than 10GiB. I've been doing some reading and come up with what I think would be considered secure and fast enough in ...
0
votes
2answers
84 views

is it unsafe to AES encrypt using multiple modes?

Example: ...
2
votes
1answer
66 views

Using AES-CTR as a PRNG

AES-CTR is not considered as a CSPRNG, why ? Is it unsecure to use it when a password is hashed with Argon2id to produce the seed to generate all random data needed for an end-to-end encyption system ...
-2
votes
0answers
32 views

Pseudorandom numbers [closed]

Your boss at a security company wants your group to design a PRF whose input length is 192 bits and output length is at least 192 bits and uses keys of length 128 bits. But, you have other plans this ...
1
vote
0answers
47 views

AES encryption for repetitive small data packets

I'm trying to implement simple AES encryption for small data packets (8bytes, fixed length) being sent from nodes with very little computational resources. Ideally the encrypted data would be a single ...
0
votes
0answers
44 views

Client-Side Encryption for a small app

I'm designing a small personal journal web application for my wife. I'm a crypto newb, but I want her to feel secure knowing only she will have access to her journal entries. I am thinking of the ...
2
votes
1answer
68 views

Quadruple DES vs AES-128 security

I came across this question regarding the security of Quadruple DES (hypothetically DES done four times) in CBC encryption mode vs security of AES-128 in CBC encryption mode. What parameters help to ...
-2
votes
0answers
85 views

How can AES 256 be implemented in C?

I want to implement AES 256 encryption in a program written in C (using OpenSSL, which I have installed) which would accept a string or a .txt file from the user and encrypt it with a hash of a user ...
3
votes
2answers
346 views

Constant time multiplication in GF(2^8)

I am trying to implement AES in C; I would like to make it resistant to side-channel attacks but I can't implement the multiplication in constant time. My current code: ...
0
votes
1answer
58 views

Using HMAC with AES modes that do NOT require padding [closed]

I'm trying to use HMAC with AES modes that do not require any sort of padding. Although I am aware that modes like AES-GCM and ...
2
votes
1answer
152 views

Can repeatedly encrypting a message with a secure cipher ever produce the original input like what happens in ROT13?

Lets say we have a message 'm'. We encrypt 'm' using a stream cipher or any other type of cipher with cryptographic security that produces an output equal in length to the length of 'm'. Then if we ...
3
votes
1answer
52 views

AES-256, CBC, plaintext length is multiple of block size: Does PKCS #7 padding weaken the encryption?

Of course, padding is superfluous when AES with CBC is used if you know that the plaintext length is a multiple of the block size. But does the padding precipitate a weakness in the encryption? ...
3
votes
1answer
119 views

AES/ECB vs AES/CBC for <16 bytes

AES/ECB is commonly considered "weak" to the point that some static analysis software identifies it as not secure and suggests using AES/CBC instead. The question is: what if size of ...
0
votes
0answers
64 views

how to Design an AES like block cipher with block length and key length equal to 64 bits

Design an AES like block cipher with block length and key length equal to 64 bits.
2
votes
2answers
82 views

Construction of a “simple”, nothing-up-my-sleeves, provably KPA resistant symmetric cipher

Why is AES secure? Apparently there is no answer - Why is AES resistant to known-plaintext attacks?. With this in mind, one would obviously want a cipher that is mathematically provable to be ...
1
vote
1answer
60 views

Is there a way to change encryption scheme from AES to FHE without data leakage?

So let's say that we have encrypted some data using symmetric encryption in this case AES. And we want to change it to homomorphic encryption but without decrypting the data and encrypting it again ...
3
votes
1answer
48 views

Is precomputing AES-CTR key stream secure?

Q0 : Is the precomputed key stream vulnerable to side-channel attacks like a lookup table for exemple ? I don't think it is because a lookup table is accesed very often, that's what makes it non ...
2
votes
0answers
35 views

Looking for a way to enlarge a message so that any modification to the “enlarged” message makes recovering the original message impossible

Let's say we have a message m of small size. I am looking for a system $S$ so that $S(m)$ is arbitrarily large, we can easily compute the inverse $I(S(m)) = m$, and any modification to $S(m)$ makes it ...
1
vote
1answer
220 views

I do many searches but can't find any explanation about “AES analysis using entropy”

I found this scenario in CRYPTOOL2 templates but there is no explanation how entropy is used. There is just a short description "This template shows how to use a brute-force search to attack an ...
0
votes
2answers
67 views

Find IV and the key ? AES with CFB or OFB

I have a question about the AES-128 and AES-256 encryption method. I need to encrypt 64-bit size data in and out. I want to encrypt them with AES. So I turned to AES-OFB or AES-CFB because these ...
1
vote
0answers
44 views

Content Key Encryption for Multi-User data access

I recently worked out a concept for a use-case, but I'm not sure if my approach is good enough. So I would appreciate feedback and things to look out for, as I'm fairly new to this field. A User can ...
0
votes
0answers
57 views

Which cryptographic attacks can AES 128-bit withstand?

Most of the articles and forums are stating that the Brute Force attack can test the strength of an encryption algorithm. However, I am looking for those attacks that AES can withstand for the testing ...
1
vote
2answers
95 views

RCON for AES 192 and 256

This is question about how many RCON values are used in AES 192 and 256. I read the NIST Publication introducing AES and in Appendix A.2 and A.3 (Key Expansion for 192 and 256-bit keys), only $rcon_1$ ...
0
votes
0answers
23 views

Authenticating and encrypting data for an automated system

I wish to distribute a file from A to an automated system B. The requirements are: Contents are encrypted Contents are tamper proof Contents origin is verified To do this I have devised the ...
1
vote
1answer
95 views

Frequency Analysis on DES, AES, 3DES using Cryptool2

I am trying to analyze symmetric block ciphers like DES, 3DES and AES, using Cryptool 2. I want to do a frequency analysis on each of these ciphers, in order to comment whether this is an effective ...
2
votes
1answer
163 views

The Security of AES-N-GCM

In the paper The Security and Performance of the GaloisCounter Mode(GCM) of Operation,it shows the AES GCM SECURITY in Corollary 1. there are no distinguishing attacks against AES-N-GCM that work ...
4
votes
1answer
400 views

Is there a point to having a large IV in AES

I've always known that the IV should be 128 bits, because that's the block size of AES, regardless of the key. However, I just saw one vendor advertising AES-256 with a 256 bit IV. Is there any point ...
2
votes
1answer
102 views

Is AES without T-Tables nor S-Box resistant to side-channel?

T-Tables and S-Boxes are prone to side-channel attacks, is an implementation without any lookup tables resistant to side-channel ? In this answer, https://crypto.stackexchange.com/a/63520/80926, the ...
0
votes
1answer
81 views

Proper way of encrypting large files with AES-256-GCM

I would like to encrypt and decrypt files with AES-256-GCM. I need a solution that works with Java, PHP and JavaScript. In practice, users can upload, download files via web browser and/or desktop app ...
1
vote
1answer
74 views

Is AES S-Box resistant to side-channel attacks?

I know that implemntations with T-tables such as Golang's are prone to side-channel attacks, but is AES's S-Box wihtout any additional table also insecure ?
0
votes
1answer
54 views

Is AES ECB mode with salt and frame counter still comparatively weak?

Many advice against using AES in ECB mode as it always produces same cipher text for a given plain text. That shortcoming can be addressed by using salt appended to original message so that the ...
2
votes
1answer
70 views

How convert Point on Curve into AES key?

I'm playing around with ECC, trying to encrypt traffic between my webapp and backend (its not a product, im trying to learn and understand more about ECC) I managed to generate keys, successful run ...
0
votes
0answers
61 views

Why cant we use AES to hash a password, instead of a hash function?

AES needs a key in order to work, hashing-algorithms do not. Suppose we have a fixed key for AES, why don't we simply hash our keys with that? As with hash functions, AES has arbitrary input size, ...
2
votes
1answer
49 views

Is ShiftRows(SubtBytes(x)) = SubtBytes(ShiftRows(x)) the same for the same entry : in AES

Is ShiftRows(SubtBytes(x)) = SubtBytes(ShiftRows(x)) the same for the same entry : in AES It seems like these two are equal, can someone explain in theoretically?
1
vote
1answer
78 views

Encryption with Web Crypto API (SubtleCrypto)

I want to end-to-end encrypt items in a stateless environment. These items have an identifier (random string). Now I want to add encryption by adding a random key. The URL could be ...
1
vote
1answer
41 views

JOSE: JWE CEK Initialization Vector Position or Reuse

So I am attempting to generate a JWE using an X25519 to encrypt the for the Content Encryption Key (CEK) and AES-256-GCM for the content. My issue however is that NaCl needs an IV (nonce in NaCl) for ...
0
votes
1answer
41 views

AES-256 CTR with ESSIV, is this correct?

I am having some problems encrypting disk using AES-256 in CTR mode, with ESSIV iv generation (I am aware of couple of flaws, although this mode is enough for now). What I have here is: ...
1
vote
2answers
77 views

Does encrypting different versions of the same file or folder with the same key make it easier for hackers to attempt the decoding?

Assuming the hacker has access to the ciphers of each of the versions, will it help him/her to decipher the original file(s) by doing some sort of comparison of the ciphers?
0
votes
0answers
29 views

Are there popular and secure Authenticated Encryption schemes with Salsa20/Sosemanuk in CTR-mode with a Carter-Wegman MAC?

I read that AES/GCM is a good choice for authenticated encryption because: AES has very strong heuristic security Encrypt-then-MAC leaks no information about the plaintext The CW-MAC in GCM can be ...
0
votes
0answers
36 views

AES with a longer key instead of key expansion? [duplicate]

What are the disadvantages of using AES-256 with 240-byte key (which scrypt/bcrypt/argon2/pbkdf2 can easily output) instead of an expanded 256-bit key? The only disadvantage I can think of is "no ...
6
votes
1answer
143 views

Calculating the modular inverse of a polynomial with coefficients in GF(2^8). (AES)

AES uses the following polynomial with coefficients in GF(2^8): a(x) = {03}x^3 + {01}x^2 + {01}x + {02} The inverse of this polynomial ...
0
votes
1answer
90 views

AES-CBC based hashing

This question is purely hypothetical. The idea is to generate variable sized hashes (multiple AES block sizes) like so: encrypt plain text encrypt plain text + cipher text from 1. XOR cipher text ...
3
votes
1answer
169 views

DTLS vs direct use of AES. What are the threats unique for direct use of AES instead of DTLS?

For regular traffic in mesh network (between Internet of Thing devices) customer decided to use one of two options: DTLS PSK ciphersuite - DTLS based on pre-shared symmetric key or direct use of AES -...
1
vote
1answer
60 views

Do all forms of symmetric encryption require multiple pieces of information? (nonce, iv, etc)

I'm attempting to learn encryption and have a very basic grasp of it, but I have questions. First, I'm looking to use AES. I want to take text, encrypt it with AES using a variable-length key, and ...
0
votes
0answers
61 views

Are My Answers to This AES Question Correct?

Question I am extremely new to cryptography and AES and so I am not confident that I did this question orrectly. Please can you check my answers and let me know if anything jumps out as incorrect, ...
1
vote
0answers
28 views

AES implementation for non-password multi-document decryption usecase

I am trying to encrypt/decrypt multiple user documents (consider text) in an application. Unlike the use case of passwords where decryption happens once during an API call, in this application during ...
2
votes
1answer
77 views

RFC 4493 (AES-CMAC) algorithm with 256 bit key

I apologize for the newbie question. If I were to use a 256-bit key and AES256 (assuming I had the function instead of AES128, the length of the for loops in the functions xor_128, leftshift_bit, ...
0
votes
1answer
76 views

Would knowing the random seed help to break AES or similar?

Consider I knew the seed of the random number generator that Bob uses to send encrypted emails to Alice. Would I have an advantage in deciphering the message? Also, how does, for example, openssl ...
0
votes
0answers
28 views

How to prevent cache timing attack on table lookup AES implementation?

I've been trying to find a solid method to prevent cache timing or other possible side channel attacks on an AES implementation, that uses lookup tables for S-box substitution. I realize that there ...
0
votes
0answers
20 views

How does breaking AES with a side channel attack (CPA) differ from a side channel attack on something like a microcontroller?

I'm studying CPA side channel attacks. CPA stands for Correlation Power analysis and it can be used to break AES. I'm familiar with the process to crack AES on a microcontroller. I was just wondering ...

1
2 3 4 5
41