I am studying AES algorithm, as far as I know, encrypting a 16 bytes plaintext will result in a 16 bytes ciphertext. But I got a different result when trying to encrypt a 16 bytes plaintext using AES-128-CBC. I got a 32 bytes ciphertext instead
I went to this website https://legacy.cryptool.org/en/cto/aes-step-by-step I tried the AES-CBC-128 Test Vector#1:
algorithm: AES-128-CBC
plaintext: 6b c1 be e2 2e 40 9f 96 e9 3d 7e 11 73 93 17 2a
iv: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
key: 2b 7e 15 16 28 ae d2 a6 ab f7 15 88 09 cf 4f 3c
But the ciphertext output is
76 49 ab ac 81 19 b2 46 ce e9 8e 9b 12 e9 19 7d 89 64 e0 b1 49 c1 0b 7b 68 2e 6e 39 aa eb 73 1c
Why is the output 32 bytes long, I thought the output should be 16 bytes long? This also happens with other 16 bytes plaintext that I tried to encrypt.