Lines Matching defs:protection
69 'Unable to set PDF file protection, CSPRNG Functions are not available. '
111 $protection = $this->getProtectionBitsFromOptions($permissions);
116 throw new \Mpdf\MpdfException('PDF protection only allows lenghts of 40 or 128');
123 $this->generateEncryptionKey($user_pass, $owner_pass, $protection);
236 $protection = 4294963392; // bits 7, 8, 13-32
246 $protection += $this->options[$permission];
250 return $protection;
303 private function generateEncryptionKey($user_pass, $owner_pass, $protection)
320 $prot = sprintf('%032b', $protection);
338 $this->pValue = $protection;