mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-24 08:58:13 +00:00
Merge pull request #885 from matrix/fix_inc_cipher_serpent256
Fix kernel (serpent256) build warnings (no previous prototypes)
This commit is contained in:
commit
5551f41d24
@ -401,7 +401,7 @@
|
|||||||
c = rotr32(c, 3); \
|
c = rotr32(c, 3); \
|
||||||
a = rotr32(a, 13)
|
a = rotr32(a, 13)
|
||||||
|
|
||||||
void serpent256_set_key (u32 *ks, const u32 *ukey)
|
static void serpent256_set_key (u32 *ks, const u32 *ukey)
|
||||||
{
|
{
|
||||||
#ifdef _unroll
|
#ifdef _unroll
|
||||||
#pragma unroll
|
#pragma unroll
|
||||||
@ -457,7 +457,7 @@ void serpent256_set_key (u32 *ks, const u32 *ukey)
|
|||||||
k_set(32,a,b,c,d); sb3(a,b,c,d,e,f,g,h); k_get(32,e,f,g,h);
|
k_set(32,a,b,c,d); sb3(a,b,c,d,e,f,g,h); k_get(32,e,f,g,h);
|
||||||
}
|
}
|
||||||
|
|
||||||
void serpent256_encrypt (const u32 *ks, const u32 *in, u32 *out)
|
static void serpent256_encrypt (const u32 *ks, const u32 *in, u32 *out)
|
||||||
{
|
{
|
||||||
u32 a,b,c,d,e,f,g,h;
|
u32 a,b,c,d,e,f,g,h;
|
||||||
u32 t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16;
|
u32 t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16;
|
||||||
@ -507,7 +507,7 @@ void serpent256_encrypt (const u32 *ks, const u32 *in, u32 *out)
|
|||||||
out[3] = d;
|
out[3] = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void serpent256_decrypt (const u32 *ks, const u32 *in, u32 *out)
|
static void serpent256_decrypt (const u32 *ks, const u32 *in, u32 *out)
|
||||||
{
|
{
|
||||||
u32 a,b,c,d,e,f,g,h;
|
u32 a,b,c,d,e,f,g,h;
|
||||||
u32 t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16;
|
u32 t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16;
|
||||||
@ -557,7 +557,7 @@ void serpent256_decrypt (const u32 *ks, const u32 *in, u32 *out)
|
|||||||
out[3] = d;
|
out[3] = d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void serpent256_decrypt_xts (const u32 *ukey1, const u32 *ukey2, const u32 *in, u32 *out)
|
static void serpent256_decrypt_xts (const u32 *ukey1, const u32 *ukey2, const u32 *in, u32 *out)
|
||||||
{
|
{
|
||||||
u32 T[4] = { 0 };
|
u32 T[4] = { 0 };
|
||||||
u32 Z[4] = { 0 };
|
u32 Z[4] = { 0 };
|
||||||
|
Loading…
Reference in New Issue
Block a user