9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "roger peppe" <rogpeppe@gmail.com>
To: weigelt@metux.de,
	"Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
Subject: Re: [9fans] Encryption
Date: Fri, 29 Feb 2008 16:30:36 +0000	[thread overview]
Message-ID: <df49a7370802290830h4ee6883el2a640bcc64508882@mail.gmail.com> (raw)
In-Reply-To: <20080229144006.GA29683@nibiru.local>

On Fri, Feb 29, 2008 at 2:40 PM, Enrico Weigelt <weigelt@metux.de> wrote:
>  I need some interface(s) which can handle virtually any cipher.

under inferno, i've used ssl(3) to implement a simple algorithm-agnostic
crypto command; you could use tls(3) or ssl(3) under plan 9 to do the
same thing. they're straightforward to use.
the algorithms provided by each of these is different:

inferno ssl:
descbc desecb des_56_cbc des_56_ecb des_40_cbc des_40_ecb rc4 rc4_256
rc4_128 rc4_40 ideacbc ideaecb

plan 9 tls:
clear rc4_128 3des_ede_cbc

plan 9 ssl:
descbc desecb des_56_cbc des_56_ecb des_40_cbc des_40_ecb rc4 rc4_256
rc4_128 rc4_40

these are all implemented by the kernel, so not a great example
for you, perhaps, but a nice example of a simple, uniform interface without
any of the usual API cruft.

see for example: http://plan9.bell-labs.com/magic/man2html/3/ssl


  reply	other threads:[~2008-02-29 16:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28 17:31 Enrico Weigelt
2008-02-28 17:55 ` Charles Forsyth
     [not found] ` <f1f8b32b0fae7acc3531c3decdf80fff@terzarima.net>
2008-02-29 14:40   ` Enrico Weigelt
2008-02-29 16:30     ` roger peppe [this message]
2008-02-29 18:24       ` Enrico Weigelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=df49a7370802290830h4ee6883el2a640bcc64508882@mail.gmail.com \
    --to=rogpeppe@gmail.com \
    --cc=9fans@cse.psu.edu \
    --cc=weigelt@metux.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).