Galois/Counter mode of the Advanced Encryption Standard: A mode of operation of the AES block cipher which both encrypts and authenticates its input data.
Questions tagged [aes-gcm]
393 questions
0
votes
1 answer
Why does aes_128_cbc() work but not aes_128_gcm() for encryption/decryption using EVP?
The code below uses aes_128_cbc and it encrypts the code properly, but when I change it to aes_128_gcm, there is not output encrypted.The code below is my original working code. My key is 128 bits (length 16) and the iv is also length 16 as well.
…

Sam
- 319
- 1
- 4
- 11
0
votes
0 answers
AES GCM in C without EVP interface
I have to write a AES_GCM encrypt/decrypt but without EVP interface. Is it possible to implement AES_GCM without EVP-* interface?

dead programmer
- 4,223
- 9
- 46
- 77
0
votes
1 answer
Java AES / GCM decryption fails
I am trying to use GCM Mode for encryption and decryption. Unfortunately decryption doesn't work.
Do I have to use the same initialization vector for both encryption and decryption classes? I already tried that, unsuccessfully...
Could the random…

Fabs
- 1
- 1
0
votes
1 answer
Why use Authenticated Encryption instead if hashes?
What is the benefit of using Authenticated Encryption schemes like GCM or EAX compared to simpler methods like CRC or hash functions like SHA?
As far as I understand these methods basically add a Message Authentication Code (MAC) to the message so…

Karsten
- 1,814
- 2
- 17
- 32
0
votes
1 answer
AES GCM porting from python to C#
I am trying to port AES GCM implementation in python OpenTLS project, to C# (.Net). Below is the code in OpenTLS code:
#######################
### Galois Counter Mode
#######################
class AES_GCM:
def __init__(self, keys, key_size,…

frenzy man
- 81
- 1
- 7
0
votes
1 answer
Python - encrypt AES-GCM to be compatible with Web cryptographic API
What is the correct way to encrypt data via AES-GCM in Python to be decryptable with Web cryptographic API? (using PyCryptodome)
Since PyCryptodome uses nonce and WCA IV. Is it a problem?
Python:
from Crypto.Cipher import AES
from Crypto.Random…

d3im
- 323
- 2
- 4
- 18
0
votes
1 answer
Encrypt AES-GCM in JavaScript, decrypt in Java
We are using the SJCL (Stanford Javascript Crypto Library) to encrypt in JavaScript and we are supposed to implement decryption in Java.
The encryption code looks like this: