Thread (4 messages) 4 messages, 2 authors, 2007-08-17

Re: can CTR use blkcipher_walk_virt()?

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-08-17 02:19:42

Joy Latten [off-list ref] wrote:
I am in learning mode and have been looking into CTR.
Based on the fact that CTR does not require the plaintext to 
be a multiple of the blocksize nor is padding required,
should I use cipher.c routines (as xcbc does) instead
of blkcipher.c routines (as cbc does)?
(I've been referencing rfc 3686.)
CBC is the correct model to follow.  For our purposes you
will only get multiples of blocks.  The only difference
is that unlike CBC you can chop bits off the last block
of plain text and the same bits will be chopped off in
the cipher text.

With CBC chopping off bits in either changes the other one
entirely.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help