Dilithium crypto_sign_open expected to return only message but consumes size equivalent to message length and signature length. Thus extract_signature is not possible. sign_open must only be used as a bool to verify the signature and the extract_message and extract_signature must be used on the signature_message returned by sign function, instead of sign_open.