1 /* kernel/cipher-independent wrapper */
9 /* decrypt data IN-place */
10 static inline void do_decrypt_inplace(void *data
, void *key
, int rounds
, u64 iv
, int len
)
12 salsa_crypt_inplace(rounds
, data
, len
/SNUFFLE_LEN
, key
, iv
/SNUFFLE_LEN
);
15 /* encrypt data from src to dst */
16 static inline void do_encrypt(void *src
, void *dst
, void *key
, int rounds
, u64 iv
, int len
)
18 salsa_crypt(rounds
, src
, dst
, len
/SNUFFLE_LEN
, key
, iv
/SNUFFLE_LEN
);