/arch/s390/include/asm/ |
H A D | airq.h | 46 void airq_iv_release(struct airq_iv *iv); 47 unsigned long airq_iv_alloc(struct airq_iv *iv, unsigned long num); 48 void airq_iv_free(struct airq_iv *iv, unsigned long bit, unsigned long num); 49 unsigned long airq_iv_scan(struct airq_iv *iv, unsigned long start, 52 static inline unsigned long airq_iv_alloc_bit(struct airq_iv *iv) argument 54 return airq_iv_alloc(iv, 1); 57 static inline void airq_iv_free_bit(struct airq_iv *iv, unsigned long bit) argument 59 airq_iv_free(iv, bit, 1); 62 static inline unsigned long airq_iv_end(struct airq_iv *iv) argument 64 return iv 67 airq_iv_lock(struct airq_iv *iv, unsigned long bit) argument 73 airq_iv_unlock(struct airq_iv *iv, unsigned long bit) argument 79 airq_iv_set_data(struct airq_iv *iv, unsigned long bit, unsigned int data) argument 85 airq_iv_get_data(struct airq_iv *iv, unsigned long bit) argument 91 airq_iv_set_ptr(struct airq_iv *iv, unsigned long bit, unsigned long ptr) argument 97 airq_iv_get_ptr(struct airq_iv *iv, unsigned long bit) argument [all...] |
/arch/x86/include/asm/crypto/ |
H A D | serpent-avx.h | 27 const u8 *src, le128 *iv); 30 const u8 *src, le128 *iv); 32 const u8 *src, le128 *iv); 35 le128 *iv); 37 extern void serpent_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv); 38 extern void serpent_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv);
|
H A D | camellia.h | 60 const u8 *src, le128 *iv); 63 const u8 *src, le128 *iv); 65 const u8 *src, le128 *iv); 94 le128 *iv); 96 le128 *iv); 98 extern void camellia_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv); 99 extern void camellia_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv);
|
H A D | twofish.h | 34 le128 *iv); 36 le128 *iv);
|
H A D | glue_helper.h | 16 le128 *iv); 18 le128 *iv); 143 le128 *iv, common_glue_func_t fn);
|
/arch/x86/crypto/ |
H A D | glue_helper-asm-avx2.S | 60 #define load_ctr_16way(iv, bswap, x0, x1, x2, x3, x4, x5, x6, x7, t0, t0x, t1, \ 67 vmovdqu (iv), t2x; \ 91 vmovdqu t2x, (iv); 104 #define gf128mul_x_ble(iv, mask, tmp) \ 105 vpsrad $31, iv, tmp; \ 106 vpaddq iv, iv, iv; \ 109 vpxor tmp, iv, iv; [all...] |
H A D | glue_helper-asm-avx.S | 54 #define load_ctr_8way(iv, bswap, x0, x1, x2, x3, x4, x5, x6, x7, t0, t1, t2) \ 60 vmovdqu (iv), x7; \ 80 vmovdqu t2, (iv); 93 #define gf128mul_x_ble(iv, mask, tmp) \ 94 vpsrad $31, iv, tmp; \ 95 vpaddq iv, iv, iv; \ 98 vpxor tmp, iv, iv; [all...] |
H A D | glue_helper.c | 101 u128 *iv = (u128 *)walk->iv; local 104 u128_xor(dst, src, iv); 106 iv = dst; 113 *(u128 *)walk->iv = *iv; 185 u128_xor(dst, dst, (u128 *)walk->iv); 186 *(u128 *)walk->iv = last_iv; 227 be128_to_le128(&ctrblk, (be128 *)walk->iv); 233 le128_to_be128((be128 *)walk->iv, 383 glue_xts_crypt_128bit_one(void *ctx, u128 *dst, const u128 *src, le128 *iv, common_glue_func_t fn) argument [all...] |
H A D | aesni-intel_glue.c | 67 u8 iv[16]; member in struct:aesni_hash_subkey_req_data 97 const u8 *in, unsigned int len, u8 *iv); 99 const u8 *in, unsigned int len, u8 *iv); 110 const u8 *in, unsigned int len, u8 *iv); 112 const u8 *in, unsigned int len, u8 *iv); 115 const u8 *in, bool enc, u8 *iv); 122 * u8 *iv, Pre-counter block j0: 4 byte salt (from Security Association) 134 const u8 *in, unsigned long plaintext_len, u8 *iv, 143 * u8 *iv, Pre-counter block j0: 4 byte salt (from Security Association) 155 const u8 *in, unsigned long ciphertext_len, u8 *iv, 184 aesni_gcm_enc_avx(void *ctx, u8 *out, const u8 *in, unsigned long plaintext_len, u8 *iv, u8 *hash_subkey, const u8 *aad, unsigned long aad_len, u8 *auth_tag, unsigned long auth_tag_len) argument 199 aesni_gcm_dec_avx(void *ctx, u8 *out, const u8 *in, unsigned long ciphertext_len, u8 *iv, u8 *hash_subkey, const u8 *aad, unsigned long aad_len, u8 *auth_tag, unsigned long auth_tag_len) argument 233 aesni_gcm_enc_avx2(void *ctx, u8 *out, const u8 *in, unsigned long plaintext_len, u8 *iv, u8 *hash_subkey, const u8 *aad, unsigned long aad_len, u8 *auth_tag, unsigned long auth_tag_len) argument 252 aesni_gcm_dec_avx2(void *ctx, u8 *out, const u8 *in, unsigned long ciphertext_len, u8 *iv, u8 *hash_subkey, const u8 *aad, unsigned long aad_len, u8 *auth_tag, unsigned long auth_tag_len) argument 485 aesni_ctr_enc_avx_tfm(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in, unsigned int len, u8 *iv) argument 669 aesni_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 674 aesni_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 679 aesni_xts_enc8(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 684 aesni_xts_dec8(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 1023 u8* iv = (u8 *) PTR_ALIGN((u8 *)iv_tab, AESNI_ALIGN); local 1101 u8 *iv = (u8 *) PTR_ALIGN((u8 *)iv_and_authTag, AESNI_ALIGN); local [all...] |
H A D | cast5_avx_glue.c | 47 __be64 *iv); 140 u64 *iv = (u64 *)walk->iv; local 143 *dst = *src ^ *iv; 145 iv = dst; 152 *(u64 *)walk->iv = *iv; 222 *dst ^= *(u64 *)walk->iv; 223 *(u64 *)walk->iv = last_iv; 253 u8 *ctrblk = walk->iv; [all...] |
H A D | blowfish_glue.c | 151 u64 *iv = (u64 *)walk->iv; local 154 *dst = *src ^ *iv; 156 iv = dst; 163 *(u64 *)walk->iv = *iv; 242 *dst ^= *(u64 *)walk->iv; 243 *(u64 *)walk->iv = last_iv; 267 u8 *ctrblk = walk->iv; 288 u64 ctrblk = be64_to_cpu(*(__be64 *)walk->iv); [all...] |
H A D | des3_ede_glue.c | 158 u64 *iv = (u64 *)walk->iv; local 161 *dst = *src ^ *iv; 163 iv = dst; 170 *(u64 *)walk->iv = *iv; 247 *dst ^= *(u64 *)walk->iv; 248 *(u64 *)walk->iv = last_iv; 273 u8 *ctrblk = walk->iv; 294 u64 ctrblk = be64_to_cpu(*(__be64 *)walk->iv); [all...] |
H A D | twofish_glue_3way.c | 65 void twofish_enc_blk_ctr(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 72 le128_to_be128(&ctrblk, iv); 73 le128_inc(iv); 81 le128 *iv) 91 le128_to_be128(&ctrblks[0], iv); 92 le128_inc(iv); 93 le128_to_be128(&ctrblks[1], iv); 94 le128_inc(iv); 95 le128_to_be128(&ctrblks[2], iv); 96 le128_inc(iv); 80 twofish_enc_blk_ctr_3way(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument [all...] |
H A D | salsa20_glue.c | 36 asmlinkage void salsa20_ivsetup(struct salsa20_ctx *ctx, const u8 *iv); 60 salsa20_ivsetup(ctx, walk.iv);
|
H A D | cast6_avx_glue.c | 53 le128 *iv); 56 const u8 *src, le128 *iv); 58 const u8 *src, le128 *iv); 60 static void cast6_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 62 glue_xts_crypt_128bit_one(ctx, dst, src, iv, 66 static void cast6_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 68 glue_xts_crypt_128bit_one(ctx, dst, src, iv, 72 static void cast6_crypt_ctr(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 76 le128_to_be128(&ctrblk, iv); 77 le128_inc(iv); [all...] |
H A D | serpent_avx_glue.c | 58 const u8 *src, le128 *iv); 62 const u8 *src, le128 *iv); 66 const u8 *src, le128 *iv); 69 void __serpent_crypt_ctr(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 73 le128_to_be128(&ctrblk, iv); 74 le128_inc(iv); 81 void serpent_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 83 glue_xts_crypt_128bit_one(ctx, dst, src, iv, 88 void serpent_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 90 glue_xts_crypt_128bit_one(ctx, dst, src, iv, [all...] |
H A D | camellia_aesni_avx_glue.c | 43 const u8 *src, le128 *iv); 47 const u8 *src, le128 *iv); 51 const u8 *src, le128 *iv); 54 void camellia_xts_enc(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 56 glue_xts_crypt_128bit_one(ctx, dst, src, iv, 61 void camellia_xts_dec(void *ctx, u128 *dst, const u128 *src, le128 *iv) argument 63 glue_xts_crypt_128bit_one(ctx, dst, src, iv,
|
/arch/arm/crypto/ |
H A D | aesbs-glue.c | 31 struct BS_KEY *key, u8 iv[]); 34 struct BS_KEY *key, u8 const iv[]); 120 u8 *iv = walk.iv; local 123 crypto_xor(src, iv, AES_BLOCK_SIZE); 125 iv = src; 128 memcpy(walk.iv, iv, AES_BLOCK_SIZE); 133 crypto_xor(walk.iv, src, AES_BLOCK_SIZE); 134 AES_encrypt(walk.iv, ds 168 u8 *iv = walk.iv; local [all...] |
/arch/arm64/crypto/ |
H A D | aes-ce-ccm-glue.c | 70 u32 l = req->iv[0] + 1; 87 memcpy(maciv, req->iv, AES_BLOCK_SIZE - l); 100 memset(&req->iv[AES_BLOCK_SIZE - l], 0, l); 150 struct blkcipher_desc desc = { .info = req->iv }; 166 /* preserve the original iv for the final round */ 167 memcpy(buf, req->iv, AES_BLOCK_SIZE); 181 num_rounds(ctx), mac, walk.iv); 206 struct blkcipher_desc desc = { .info = req->iv }; 222 /* preserve the original iv for the final round */ 223 memcpy(buf, req->iv, AES_BLOCK_SIZ [all...] |
H A D | aes-glue.c | 57 int rounds, int blocks, u8 iv[], int first); 59 int rounds, int blocks, u8 iv[], int first); 65 int rounds, int blocks, u8 const rk2[], u8 iv[], 68 int rounds, int blocks, u8 const rk2[], u8 iv[], 152 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, 175 (u8 *)ctx->key_dec, rounds, blocks, walk.iv, 199 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, 220 blocks, walk.iv, first); 245 (u8 *)ctx->key2.key_enc, walk.iv, first); 269 (u8 *)ctx->key2.key_enc, walk.iv, firs [all...] |
/arch/sparc/crypto/ |
H A D | aes_glue.c | 43 unsigned int len, u64 *iv); 45 unsigned int len, u64 *iv); 47 unsigned int len, u64 *iv); 95 u64 *iv); 99 u64 *iv); 103 u64 *iv); 107 u64 *iv); 111 u64 *iv); 115 u64 *iv); 119 u64 *iv); [all...] |
H A D | des_glue.c | 139 unsigned int len, u64 *iv); 160 block_len, (u64 *) walk.iv); 170 unsigned int len, u64 *iv); 191 block_len, (u64 *) walk.iv); 311 u64 *iv); 336 (u64 *) walk.iv); 347 u64 *iv); 372 (u64 *) walk.iv);
|
/arch/mips/bcm47xx/ |
H A D | setup.c | 123 struct ssb_init_invariants *iv) 128 memset(&(iv->boardinfo), 0 , sizeof(struct ssb_boardinfo)); 130 bcm47xx_fill_ssb_boardinfo(&iv->boardinfo, NULL); 132 memset(&iv->sprom, 0, sizeof(struct ssb_sprom)); 133 bcm47xx_fill_sprom(&iv->sprom, NULL, false); 136 iv->has_cardbus_slot = !!simple_strtoul(buf, NULL, 10); 122 bcm47xx_get_invariants(struct ssb_bus *bus, struct ssb_init_invariants *iv) argument
|
/arch/s390/crypto/ |
H A D | des_s390.c | 31 u8 iv[DES_BLOCK_SIZE]; member in struct:s390_des_ctx 115 u8 iv[DES_BLOCK_SIZE]; member in struct:__anon2495 122 memcpy(param.iv, walk->iv, DES_BLOCK_SIZE); 137 memcpy(walk->iv, param.iv, DES_BLOCK_SIZE); 400 memcpy(ctrptr, walk->iv, DES_BLOCK_SIZE); 430 memcpy(walk->iv, ctrptr, DES_BLOCK_SIZE); 434 memcpy(walk->iv, ctrptr, DES_BLOCK_SIZE); 447 memcpy(walk->iv, ctrbu [all...] |
/arch/cris/include/arch-v32/arch/ |
H A D | cryptocop.h | 85 u8 iv[CRYPTOCOP_MAX_IV_LENGTH]; member in struct:cryptocop_tfrm_cfg
|