[10] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: comments on header files

jtkohl@ATHENA.MIT.EDU (jtkohl@ATHENA.MIT.EDU)
Mon Dec 4 15:10:31 1989

Date: Wed, 29 Nov 89 12:20:11 EST
From: sommerfeld@APOLLO.COM (Bill Sommerfeld)
To: jtkohl@ATHENA.MIT.EDU
In-Reply-To: John T Kohl's message of Wednesday, November 29, 1989   9:26:27 am (EST)
Subject: Re: comments on header files.

BTW, the "encrypt block" should have a pointer to a
cryptosystem_entry, not a cryptosystem_entry in-line in the
encrypt_block; the entry is encryption-type specific and shoould be
constant across each encryption type; this will save 20 bytes per
encryption object.

   Date: Wednesday, November 29, 1989   9:26:27 am (EST)
   From: jtkohl@ATHENA.MIT.EDU (John T Kohl)

   The problem arises when the upper layers need to allocate space for
   encrypted data; they need some way to figure out the amount of space
   needed to encrypt a particular byte string [maybe we need another
   function?]

It's already there.. the space has to be a multiple of the block
length:

	space = roundup(size, enc.crypto_entry->block_length);

(using the roundup macro in /usr/include/sys/param.h; however, we
would want to define our own...)

				- Bill

home help back first fref pref prev next nref lref last post