Home
last modified time | relevance | path

Searched refs:key_ctx (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/drivers/staging/skein/
Dthreefish_api.c4 void threefish_set_key(struct threefish_key *key_ctx, in threefish_set_key() argument
12 key_ctx->tweak[0] = tweak[0]; in threefish_set_key()
13 key_ctx->tweak[1] = tweak[1]; in threefish_set_key()
14 key_ctx->tweak[2] = tweak[0] ^ tweak[1]; in threefish_set_key()
17 key_ctx->key[i] = key_data[i]; in threefish_set_key()
20 key_ctx->key[i] = parity; in threefish_set_key()
21 key_ctx->state_size = state_size; in threefish_set_key()
24 void threefish_encrypt_block_bytes(struct threefish_key *key_ctx, u8 *in, in threefish_encrypt_block_bytes() argument
30 skein_get64_lsb_first(plain, in, key_ctx->state_size / 64); in threefish_encrypt_block_bytes()
31 threefish_encrypt_block_words(key_ctx, plain, cipher); in threefish_encrypt_block_bytes()
[all …]
Dthreefish_api.h75 void threefish_set_key(struct threefish_key *key_ctx,
94 void threefish_encrypt_block_bytes(struct threefish_key *key_ctx, u8 *in,
114 void threefish_encrypt_block_words(struct threefish_key *key_ctx, u64 *in,
132 void threefish_decrypt_block_bytes(struct threefish_key *key_ctx, u8 *in,
152 void threefish_decrypt_block_words(struct threefish_key *key_ctx, u64 *in,
155 void threefish_encrypt_256(struct threefish_key *key_ctx, u64 *input,
157 void threefish_encrypt_512(struct threefish_key *key_ctx, u64 *input,
159 void threefish_encrypt_1024(struct threefish_key *key_ctx, u64 *input,
161 void threefish_decrypt_256(struct threefish_key *key_ctx, u64 *input,
163 void threefish_decrypt_512(struct threefish_key *key_ctx, u64 *input,
[all …]
Dthreefish_block.c3 void threefish_encrypt_256(struct threefish_key *key_ctx, u64 *input, in threefish_encrypt_256() argument
8 u64 k0 = key_ctx->key[0], k1 = key_ctx->key[1], in threefish_encrypt_256()
9 k2 = key_ctx->key[2], k3 = key_ctx->key[3], in threefish_encrypt_256()
10 k4 = key_ctx->key[4]; in threefish_encrypt_256()
11 u64 t0 = key_ctx->tweak[0], t1 = key_ctx->tweak[1], in threefish_encrypt_256()
12 t2 = key_ctx->tweak[2]; in threefish_encrypt_256()
496 void threefish_decrypt_256(struct threefish_key *key_ctx, u64 *input, in threefish_decrypt_256() argument
501 u64 k0 = key_ctx->key[0], k1 = key_ctx->key[1], in threefish_decrypt_256()
502 k2 = key_ctx->key[2], k3 = key_ctx->key[3], in threefish_decrypt_256()
503 k4 = key_ctx->key[4]; in threefish_decrypt_256()
[all …]