forked from altu341com/kpabe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kpabe-enc.1
57 lines (55 loc) · 1.99 KB
/
kpabe-enc.1
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.37.1.
.TH KPABE-ENC "1" "April 2011" "SRI International" "User Commands"
.SH NAME
kpabe-enc \- manual page for kpabe-enc 0.10
.SH SYNOPSIS
.B kpabe-enc
[\fIOPTION \fR...] \fIPUB_KEY FILE ATTR \fR[\fIATTR \fR...]
.SH DESCRIPTION
Encrypt FILE under a set of attributes(ATTR) using public key
PUB_KEY. The encrypted file will be written to FILE.kpabe unless
the \fB\-o\fR option is used. The original file will be removed.
Attributes come in two forms: non\-numerical and numerical. Non\-numerical
attributes are simply any string of letters, digits, and underscores
beginning with a letter.
.PP
Numerical attributes are specified as `attr = N', where N is a non\-negative
integer less than 2^64 and `attr' is another string. The whitespace around
the `=' is optional. One may specify an explicit length of k bits for the
integer by giving `attr = N#k'. Note that any comparisons in a policy given
to kpabe\-enc(1) must then specify the same number of bits, e.g.,
`attr > 5#12'.
.PP
The keywords `and', `or', and `of', are reserved for the policy language
of kpabe\-enc (1) and may not be used for either type of attribute.
.PP
Mandatory arguments to long options are mandatory for short options too.
.TP
\fB\-h\fR, \fB\-\-help\fR
print this message
.TP
\fB\-v\fR, \fB\-\-version\fR
print version information
.TP
\fB\-k\fR, \fB\-\-keep\-input\-file\fR
don't delete original file
.TP
\fB\-o\fR, \fB\-\-output\fR FILE
write resulting key to FILE
.TP
\fB\-d\fR, \fB\-\-deterministic\fR
use deterministic "random" numbers
(only for debugging)
.PP
This is free software released under the GPL, see the source for copying
conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
.SH EXAMPLES
encrypt ciphertext with attributes:
$ kpabe-enc pub_key PHR.pdf medication surgical 'severe_level = 3'
.SH "REPORTING BUGS"
Report bugs to Yao Zheng <zhengyao@wpi.edu>.
.SH "SEE ALSO"
.BR kpabe-setup (1),
.BR kpabe-keygen (1),
.BR kpabe-dec (1)