|
About ::
TODO ::
Blog ::
RSS ::
Old blog ::
Projects ::
GIT ::
Gallery ::
Notes
Wed, 03 Oct 2007
HIFN driver addons and crypto stack issues.
struct blkcipher_walk walk;
blkcipher_walk_init(&walk, dst, src, nbytes);
blkcipher_walk_virt(desc, &walk);
while ((nbytes = walk.nbytes)) {
u8 *iv = encrypt();
memcpy(walk.iv, iv, ivsize);
nbytes &= blocksize - 1;
err = blkcipher_walk_done(desc, &walk, nbytes);
}
Above struct blkcipher_walk contains source and destination
page addresses, appropriate sizes and offsets. Variable desc
is a struct blkcipher_desc pointer, which contains
original parameters of crypto request.
/devel/acrypto/hifn :: Link / Comments (0) Please solve this captcha to be allowed to post (need to reload in a minute): 77 - 54 Comments are closed for this story. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||