I’m using Apple’s PDFKit to export a password-protected PDF on iOS with PDFDocument.write(to:withOptions:), passing .ownerPasswordOption and .userPasswordOption without setting an encryption method or key length.
Which PDF encryption algorithm, key length, and security-handler revision does PDFKit use for this write path? Is this documented, or can it vary by iOS version or when rewriting an existing PDF? Does PDFKit expose a supported way to select or verify the algorithm and key length? A link to authoritative documentation or guidance on verifying the output of a synthetic test PDF would be helpful.