X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fptlrpc%2Fgss%2Fgss_crypto.h;h=c0770e8d0cfe3c0501c614c13605bcaea47c7cd8;hp=99c2337697e8c717e9408f011954d299f54f251d;hb=a21c13d4df4bea1bec0f5804136740ed53d5a57f;hpb=ca9300e53dc2b7bcaaa5482bb4234cce7d9a344e diff --git a/lustre/ptlrpc/gss/gss_crypto.h b/lustre/ptlrpc/gss/gss_crypto.h index 99c2337..c0770e8 100644 --- a/lustre/ptlrpc/gss/gss_crypto.h +++ b/lustre/ptlrpc/gss/gss_crypto.h @@ -10,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); @@ -23,12 +23,9 @@ 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_hash *tfm, rawobj_t *key, rawobj_t *hdr, +int gss_digest_hash(struct cfs_crypto_hash_desc *desc, rawobj_t *hdr, int msgcnt, rawobj_t *msgs, int iovcnt, lnet_kiov_t *iovs, rawobj_t *cksum); -int gss_digest_norm(struct crypto_hash *tfm, struct gss_keyblock *kb, - rawobj_t *hdr, int msgcnt, rawobj_t *msgs, int iovcnt, - lnet_kiov_t *iovs, rawobj_t *cksum); 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,