X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=README;h=e23701c9151dc4d946523914dbbf81b2a69251fa;hp=c05dc444721daed79f5e5644d8a610b15a97edf9;hb=4bc0381500403be5f3e40bc39f65a2d8fb75cf19;hpb=bd7f386bb44f2f8e2c6d77ea176026e88176412e diff --git a/README b/README index c05dc44..e23701c 100644 --- a/README +++ b/README @@ -392,15 +392,19 @@ site: dict argument them. resolver (resolver closure) random (randomsrc closure) - local-key (rsaprivkey closure) + key-cache (privcache closure) + local-key (sigprivkey closure): Deprecated; use key-cache instead. address (string list): optional, DNS name(s) used to find our peer; address literals are supported too if enclosed in `[' `]'. port (integer): mandatory if 'address' is specified: the port used to contact our peer - key (rsapubkey closure): our peer's public key + peer-keys (string): path (prefix) for peer public key set file(s); + see README.make-secnet-sites re `pub' etc. and NOTES.peer-keys. + key (sigpubkey closure): our peer's public key (obsolete) transform (transform closure): how to mangle packets sent between sites dh (dh closure) - hash (hash closure) + hash (hash closure): used for keys whose algorithm (or public + or private key file) does not imply the hash function key-lifetime (integer): max lifetime of a session key, in ms [one hour; mobile: 2 days] setup-retries (integer): max number of times to transmit a key negotiation @@ -573,11 +577,26 @@ priv-cache: dict argument privkey-max (integer): optional, maximum size of private key file in bytes. [4095] +** pubkeys + +Defines: + make-public (closure => sigpubkey closure) + +make-public: ( + arg1: sigscheme name + arg2: base91s encoded public key data, according to algorithm + ** rsa Defines: - rsa-private (closure => rsaprivkey closure) - rsa-public (closure => rsapubkey closure) + sigscheme algorithm 00 "rsa1" + rsa-private (closure => sigprivkey closure) + rsa-public (closure => sigpubkey closure) + +rsa1 sigscheme algorithm: + private key: SSH private key file, version 1, no password + public key: SSH public key file, version 1 + (length, restrictions, email, etc., ignored) rsa-private: string[,bool] arg1: filename of SSH private key file (version 1, no password)