xts.h (597473720f4dc69749542bfcfed4a927a43d935e) | xts.h (9c1e8836edbbaf3656bc07437b59c04be034ac4e) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _CRYPTO_XTS_H 3#define _CRYPTO_XTS_H 4 5#include <crypto/b128ops.h> 6#include <crypto/internal/skcipher.h> 7#include <linux/fips.h> 8 9#define XTS_BLOCK_SIZE 16 10 | 1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _CRYPTO_XTS_H 3#define _CRYPTO_XTS_H 4 5#include <crypto/b128ops.h> 6#include <crypto/internal/skcipher.h> 7#include <linux/fips.h> 8 9#define XTS_BLOCK_SIZE 16 10 |
11#define XTS_TWEAK_CAST(x) ((void (*)(void *, u8*, const u8*))(x)) 12 | |
13static inline int xts_check_key(struct crypto_tfm *tfm, 14 const u8 *key, unsigned int keylen) 15{ 16 u32 *flags = &tfm->crt_flags; 17 18 /* 19 * key consists of keys of equal size concatenated, therefore 20 * the length must be even. --- 40 unchanged lines hidden --- | 11static inline int xts_check_key(struct crypto_tfm *tfm, 12 const u8 *key, unsigned int keylen) 13{ 14 u32 *flags = &tfm->crt_flags; 15 16 /* 17 * key consists of keys of equal size concatenated, therefore 18 * the length must be even. --- 40 unchanged lines hidden --- |