Fixed aes decoding on trailing bytes