Moved init params in CPU (interface.c). Fixed vector-type problem in kernel a0.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Author......: See docs/credits.txt
|
||||
* License.....: MIT
|
||||
*/
|
||||
|
||||
#ifndef _CPU_BLAKE2_H
|
||||
#define _CPU_BLAKE2_H
|
||||
|
||||
#include <string.h>
|
||||
|
||||
const u64 blake2b_IV[8] =
|
||||
{
|
||||
0x6a09e667f3bcc908, 0xbb67ae8584caa73b,
|
||||
0x3c6ef372fe94f82b, 0xa54ff53a5f1d36f1,
|
||||
0x510e527fade682d1, 0x9b05688c2b3e6c1f,
|
||||
0x1f83d9abfb41bd6b, 0x5be0cd19137e2179
|
||||
};
|
||||
|
||||
#endif // _CPU_BLAKE2_H
|
||||
@@ -663,6 +663,34 @@ typedef enum user_options_map
|
||||
* structs
|
||||
*/
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 digest_length;
|
||||
u8 key_length;
|
||||
u8 fanout;
|
||||
u8 depth;
|
||||
u32 leaf_length;
|
||||
u32 node_offset;
|
||||
u32 xof_length;
|
||||
u8 node_depth;
|
||||
u8 inner_length;
|
||||
u8 reserved[14];
|
||||
u8 salt[16];
|
||||
u8 personnel[16];
|
||||
|
||||
} blake2_params_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u64 h[8];
|
||||
u64 t[2];
|
||||
u64 f[2];
|
||||
u32 buflen;
|
||||
u32 outlen;
|
||||
u8 last_node;
|
||||
|
||||
} blake2_state_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u32 salt_buf[16];
|
||||
|
||||
Reference in New Issue
Block a user