PDFBOX-2456: DRY refactor of steps (a) to (d) of the algorithm 3 Computing the encryption dictionary O (owner password) value

git-svn-id: https://svn.apache.org/repos/asf/pdfbox/branches/1.8@1639903 13f79535-47bb-0310-9956-ffa450edef68