/*
 * Common values for serpent algorithms
 */

#ifndef _CRYPTO_SERPENT_H
#define _CRYPTO_SERPENT_H

#include <linux/types.h>
#include <linux/crypto.h>

#define SERPENT_MIN_KEY_SIZE		  0
#define SERPENT_MAX_KEY_SIZE		 32
#define SERPENT_EXPKEY_WORDS		132
#define SERPENT_BLOCK_SIZE		 16

struct serpent_ctx {
	u32 expkey[SERPENT_EXPKEY_WORDS];
};

int __serpent_setkey(struct serpent_ctx *ctx, const u8 *key,
		     unsigned int keylen);
int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);

void __serpent_encrypt(struct serpent_ctx *ctx, u8 *dst, const u8 *src);
void __serpent_decrypt(struct serpent_ctx *ctx, u8 *dst, const u8 *src);

#endif
2'><a href='/cgit.cgi/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'/><select name='h' onchange='this.form.submit();'>
<option value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master'>master</option>
<option value='nds-private-remove' selected='selected'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/net/sunrpc/rpc_pipe.c?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/net/sunrpc/rpc_pipe.c?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/net/sunrpc/rpc_pipe.c?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/net/sunrpc/rpc_pipe.c?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/net/sunrpc/rpc_pipe.c'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/net?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>net</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/sunrpc?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>sunrpc</a>/<a href='/cgit.cgi/linux/net-next.git/log/net/sunrpc/rpc_pipe.c?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c'>rpc_pipe.c</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/net/sunrpc/rpc_pipe.c?h=nds-private-remove&amp;id=7e57fbb2a341b5d44d30e71a6d782c5e6dbc429c&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>