/
Additional_encryption.pm6
41 lines (32 loc) · 1.99 KB
/
Additional_encryption.pm6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
use v6;
# generated by: ../../etc/make-modules.p6 --role-name=ISO_32000::Additional_encryption ../../resources/ISO_32000/Additional_encryption_entries.json
#| PDF 32000-1:2008 Table 21 – Additional encryption dictionary entries for the standard security handler
role ISO_32000::Additional_encryption {
method R {...};
method O {...};
method U {...};
method P {...};
method EncryptMetadata {...};
}
=begin pod
=head1 Methods (Entries)
=head2 R [number]
- (Required) A number specifying which revision of the standard security handler is used to interpret this dictionary:
2 if the document is encrypted with a V value less than 2 (see Table 20) and does not have any of the access permissions set to 0 (by means of the P entry, below) that are designated “Security handlers of revision 3 or greater” in
Table 22
3 if the document is encrypted with a V value of 2 or 3, or has any “Security handlers of revision 3 or greater” access permissions set to 0
4 if the document is encrypted with a V value of 4
=head2 O [string]
- (Required) A 32-byte string, based on both the owner and user passwords, that is used in computing the encryption key and in determining whether a valid owner password was entered. For more information, see
7.6.3.3, "Encryption Key Algorithm,"
and
7.6.3.4, "Password Algorithms."
=head2 U [string]
- (Required) A 32-byte string, based on the user password, that is used in determining whether to prompt the user for a password and, if so, whether a valid user or owner password was entered. For more information, see
7.6.3.4, "Password Algorithms."
=head2 P [integer]
- (Required) A set of flags specifying which operations is permitted when the document is opened with user access (see Table 22).
=head2 EncryptMetadata [boolean]
- (Optional; meaningful only when the value of V is 4; PDF 1.5) Indicates whether the document-level metadata stream (see 14.3.2, "Metadata Streams") is encrypted. Conforming products should respect this value.
Default value: true.
=end pod