X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fgss%2Fgss_crypto.h;h=8e1061bae9f6538facfec395128629074f08debb;hp=be5b4f0099dd5a3a3a8bf20565b80d3c20ba2577;hb=7a74d382d5e8867785f662aede54a3e399168325;hpb=c6f5e8121366be05765dabe0008165166d3f431c diff --git a/lustre/ptlrpc/gss/gss_crypto.h b/lustre/ptlrpc/gss/gss_crypto.h index be5b4f0..8e1061b 100644 --- a/lustre/ptlrpc/gss/gss_crypto.h +++ b/lustre/ptlrpc/gss/gss_crypto.h @@ -1,6 +1,8 @@ #ifndef PTLRPC_GSS_CRYPTO_H #define PTLRPC_GSS_CRYPTO_H +#include + #include "gss_internal.h" struct gss_keyblock { @@ -8,7 +10,7 @@ struct gss_keyblock { struct crypto_blkcipher *kb_tfm; }; -int gss_keyblock_init(struct gss_keyblock *kb, char *alg_name, +int gss_keyblock_init(struct gss_keyblock *kb, const char *alg_name, const int alg_mode); void gss_keyblock_free(struct gss_keyblock *kb); int gss_keyblock_dup(struct gss_keyblock *new, struct gss_keyblock *kb); @@ -21,12 +23,12 @@ int gss_setup_sgtable(struct sg_table *sgt, struct scatterlist *prealloc_sg, void gss_teardown_sgtable(struct sg_table *sgt); int gss_crypt_generic(struct crypto_blkcipher *tfm, int decrypt, const void *iv, const void *in, void *out, size_t length); -int gss_digest_hmac(struct crypto_ahash *tfm, rawobj_t *key, rawobj_t *hdr, - int msgcnt, rawobj_t *msgs, int iovcnt, lnet_kiov_t *iovs, - rawobj_t *cksum); -int gss_digest_norm(struct crypto_ahash *tfm, struct gss_keyblock *kb, - rawobj_t *hdr, int msgcnt, rawobj_t *msgs, int iovcnt, - lnet_kiov_t *iovs, rawobj_t *cksum); +int gss_digest_hash(struct ahash_request *req, rawobj_t *hdr, + int msgcnt, rawobj_t *msgs, int iovcnt, + struct bio_vec *iovs); +int gss_digest_hash_compat(struct ahash_request *req, + rawobj_t *hdr, int msgcnt, rawobj_t *msgs, + int iovcnt, struct bio_vec *iovs); int gss_add_padding(rawobj_t *msg, int msg_buflen, int blocksize); int gss_crypt_rawobjs(struct crypto_blkcipher *tfm, __u8 *iv, int inobj_cnt, rawobj_t *inobjs, rawobj_t *outobj,