For those that come to the answer to find out how to simply resize a LUKS partition to the size of the resized container, the commands are as follows:
with LUKS encrypted volume opened and the opened volume mapped as
opened-volume, executesudo cryptsetup resize /dev/mapper/opened-volumeto resize the LUKS encrypted volume online...
then resize the file system. E.gcontents. if it is an Ext4 filesystem, you can resize it even if it is mounted with
sudo resize2fs /dev/mapper/opened-volumeE.g. if it is an Ext4 filesystem, you can resize it even if it is mounted with
sudo resize2fs /dev/mapper/opened-volumeOr if you had a LVM physical volume inside the LUKS encrypted volume, just use
pvresize:sudo pvresize /dev/mapper/opened-volume
I did both commandsI've done this with a mounted file system/activated PV with no interruption; it was possible to resize the container without unmounting it first because the encrypted volume was on a LVM logical volume (using lvresize) / using parted to resize a GPT partition to contain the free space that immediately followed it!