Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2004 01:35:27 -0800
From:      Colin Percival <colin.percival@wadham.ox.ac.uk>
To:        Tim Robbins <tjr@freebsd.org>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Adding standalone RSA code
Message-ID:  <41B96DDF.2080304@wadham.ox.ac.uk>
In-Reply-To: <20041210092455.GB27181@cat.robbins.dropbear.id.au>
References:  <41B92CF3.2090302@wadham.ox.ac.uk> <20041210092455.GB27181@cat.robbins.dropbear.id.au>

next in thread | previous in thread | raw e-mail | index | archive | help
Tim Robbins wrote:
> Can you be a little more specific about what your library supports?

RSA -- key generation, signing, verification, encryption, decryption.

> What
> format does it expect keys to be in? What format does it store signatures in?

Everything is an integer of keylen/8 bytes.  The value of the integer
x[] is x[0] + x[1] * 2^8 + x[2] * 2^16 + ...

Keeping track of details -- like the keylength, or allocating temporary
working space -- is left up to the caller; my library functions take
a set of pointers to arrays of bytes, integer length(s), and a pointer
to preallocated working space (of size depending upon the key length).

Colin Percival



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41B96DDF.2080304>