summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-10-29 22:01:58 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-10-29 22:01:58 +0100
commit93117262c2e377d9d4f1588924032d1b69e7e2f9 (patch)
tree8a89bbf0129cac8c03a2d4e489bb83d6d9921aea /lib
parentc021390e218066ca01828917dd940dff26ceff3b (diff)
downloadplan9front-93117262c2e377d9d4f1588924032d1b69e7e2f9.tar.xz
devfs: rewrite cryptio()
adjust to new aes_xts routines. allow optional offset in the 4th argument where the encrypted sectors start instead of hardcoding the 64K header area for cryptsetup. avoid allocating temporary buffer for cryptio() reads, we can just decrypt in place there. use sdmalloc() to allocate the temporary buffer for cryptio() writes so that devsd wont need to allocate and copy in case it didnt like our alignment. do not duplicate the error reporting code, just use io() that is what it is for. allow 2*256 bit keys in addition to 2*128 bit keys.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions