]> git.ipfire.org Git - thirdparty/krb5.git/commit
Simplify crypto IOV helpers
authorGreg Hudson <ghudson@mit.edu>
Mon, 6 May 2013 04:43:27 +0000 (00:43 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 24 May 2013 18:15:03 +0000 (14:15 -0400)
commit3b142e5746e7db1939a9cf8095faecfed6222054
treeef9496f0e47a52e58a88b7f0aac8e3cc77fcf797
parent48c9a082940373b82d4b8e3c338e9eb9d0d3c3f2
Simplify crypto IOV helpers

Expand the concept of an IOV block state into a cursor which remembers
the IOV set being iterated over, the block size, and both input and
output positions.  Eliminate the no-copy inline block getter for now,
but provide helpers to grab contiguous chains of blocks from a cursor.
Also provide an inline helper to sum the total length of an iov chain.
15 files changed:
src/lib/crypto/builtin/des/d3_aead.c
src/lib/crypto/builtin/des/f_aead.c
src/lib/crypto/builtin/enc_provider/aes.c
src/lib/crypto/builtin/enc_provider/camellia.c
src/lib/crypto/builtin/enc_provider/des.c
src/lib/crypto/builtin/enc_provider/des3.c
src/lib/crypto/krb/aead.c
src/lib/crypto/krb/cmac.c
src/lib/crypto/krb/crypto_int.h
src/lib/crypto/krb/enc_old.c
src/lib/crypto/nss/enc_provider/enc_gen.c
src/lib/crypto/openssl/enc_provider/aes.c
src/lib/crypto/openssl/enc_provider/camellia.c
src/lib/crypto/openssl/enc_provider/des.c
src/lib/crypto/openssl/enc_provider/des3.c