File: README

package info (click to toggle)
rsyncrypto 1.14-1.2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,552 kB
  • sloc: cpp: 3,459; sh: 1,221; makefile: 29
file content (37 lines) | stat: -rw-r--r-- 1,986 bytes parent folder | download | duplicates (5)
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
This directory is dedicated to regression and other forms of testing. Some of
the files here:

cert.crt - a sample X509 certificate (1024bit RSA) which can be used for encryption
cert.key - cert.crt's private key
For both use openssl to examine. e.g. - openssl x509 -in cert.crt -noout -text

nullgzip - a shell script for nullifying the compression part of the process.
Sometimes, for debugging purposes, it is more convinent to not compress the file
prior to it's encryption. This is especially useful when it is desired to compare
the image right before encryption with the image right after decryption.

To disable compression, use the "gzip" option to specify "tests/nullgzip". This
will make the gzip in "tests" override the system wide gzip. This gzip is a simple
pass through.

reg? - plain text files that have caused problems in the past.
reg?.key - the key files with which they caused problems.
reg?.enc - the resulting encryption file as it should be.
Note that rsyncrypto, at the moment, uses an RSA padding algorithm that contains
a random elemnt. As a result, two encryptions of the same file will result in
differences in cyphertext file in the first few bytes (132 for a 1024bit
asymetric key). The true way to test whether things work is to try and decrypt
the file into, say, reg1.dec, and do "diff reg1 reg1.dec".

testcrypt - an exercising program. Creates increasingly big files out of
/dev/urandom, and then encrypts them, decrypts them, and compares the before
and after. Will halt on error.

Please note, however, that testcrypt will not generate brand new files each time.
It will only append X bytes to the existing file. How many bytes are appended each
time is determined by the second parameter to testcrypt. The first parameter tells
testcrypt how many iterations to make.

regtest - an exercising program. Uses the reg* files to make sure that the compiled
version of rsyncrypto correctly decrypts and encrypts in a way compatible to
previous versions.