#ifndef CURVE_H #define CURVE_H #include "locking.h" #include "built_in.h" #include "ioops.h" #include "rnd.h" #include "taia.h" #include "crypto.h" struct curve25519_proto { unsigned char enonce[crypto_box_noncebytes] __aligned_16; unsigned char dnonce[crypto_box_noncebytes] __aligned_16; unsigned char key[crypto_box_beforenmbytes] __aligned_16; }; struct curve25519_struct { unsigned char *enc, *dec; size_t enc_size, dec_size; struct spinlock enc_lock, dec_lock; }; extern void curve25519_selftest(void); extern struct curve25519_struct *curve25519_tfm_alloc(void); extern void curve25519_tfm_free(struct curve25519_struct *tfm); extern void curve25519_tfm_free_void(void *tfm); extern void curve25519_proto_init(struct curve25519_proto *proto, unsigned char *pubkey_remote, size_t len); extern int curve25519_pubkey_hexparse_32(unsigned char *bin, size_t blen, const char *ascii, size_t alen); extern ssize_t curve25519_encode(struct curve25519_struct *curve, struct curve25519_proto *proto, unsigned char *plaintext, size_t size, unsigned char **ciphertext); extern ssize_t curve25519_decode(struct curve25519_struct *curve, struct curve25519_proto *proto, unsigned char *ciphertext, size_t size, unsigned char **plaintext, struct taia *arrival_taia); #endif /* CURVE_H */ -rx-pump-back net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiu Yawei <yawei.niu@intel.com>2016-09-18 16:37:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-19 09:37:45 +0200
commit60deafeae486f8e6b1b4cc781214521e615c9459 (patch)
tree1676f534f116c99172592f363adcc2a89735b289
parent212f6c7fcf06ecbe2d47d5e22f0068d035d5ee34 (diff)
staging: lustre: osc: update kms in brw_interpret() properly
In brw_interpret(), we forgot page offset when calculating write offset, that leads to wrong kms for sync write. Signed-off-by: Niu Yawei <yawei.niu@intel.com> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5463 Reviewed-on: http://review.whamcloud.com/11374 Reviewed-by: Bobi Jam <bobijam@gmail.com> Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com> Reviewed-by: Li Dongyang <dongyang.li@anu.edu.au> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: James Simmons <jsimmons@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat
-rw-r--r--drivers/staging/lustre/lustre/osc/osc_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/osc/osc_request.c b/drivers/staging/lustre/lustre/osc/osc_request.c