|
|
About ::
TODO ::
Blog ::
RSS ::
Old blog ::
Projects ::
GIT ::
Gallery ::
Notes
Tue, 09 Oct 2007
I think HIFN driver is the most complex one I ever wrote.
I already implemented at least two different designs of misaligned access handling
code - both were not good enough (basically did not work in some or other cases),
now I'm working on third one - this should be damn good, but not very fast - no one
promised fast access, when you put each byte of the word to be encrypted
in different page. It will be limited enough to say, that if there is more than
predefined number of pages, then caller sucks. And it will be complex. It is complex
already.
Actually HIFN driver can handle most of the misaligned access just fine: if data is word aligned
(some times two words aligned) and size of the data provided is more
than two bytes (one word, or two words in some cases), in other cases copy is needed.
Neither IPsec, nor dm-crypt provides such packets. Protocol just does not allow that,
but some obscure crypto users can have such stupid idea in mind, so we have to copy...
Crap.
But it will be ready this week!
And right now I will move to development shop - I've done
enough at paid work and for HIFN driver for today, so let's change the business...
/devel/acrypto/hifn :: Link / Comments ()
|