qcrypto-luks: extract check and parse header