Resize a local buffer to accomodate the size requirements of AES.