can CTR use blkcipher_walk_virt()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.)

If it is possible to receive plaintext < blocksize in CTR...
then, wouldn't blkcipher_walk_virt() result in error because 
walk->total < blocksize.  (Error would occur in blcipher_walk_next.)

Regards,
Joy

-
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux