24 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL,
25 0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL,
26 0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL,
27 0x1f83d9abfb41bd6bULL, 0x5be0cd19137e2179ULL
32 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 } ,
33 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 } ,
34 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 } ,
35 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 } ,
36 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 } ,
37 { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 } ,
38 { 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11 } ,
39 { 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10 } ,
40 { 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5 } ,
41 { 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13 , 0 } ,
42 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 } ,
43 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }
69 S->t[1] += (
S->t[0] < inc );
89 for(
i = 0;
i < 8; ++
i )
92 S->outlen =
P->digest_length;
110 memset(
P->reserved, 0,
sizeof(
P->reserved ) );
111 memset(
P->salt, 0,
sizeof(
P->salt ) );
112 memset(
P->personal, 0,
sizeof(
P->personal ) );
117#define G(r,i,a,b,c,d) \
119 a = a + b + m[blake2b_sigma[r][2*i+0]]; \
120 d = rotr64(d ^ a, 32); \
122 b = rotr64(b ^ c, 24); \
123 a = a + b + m[blake2b_sigma[r][2*i+1]]; \
124 d = rotr64(d ^ a, 16); \
126 b = rotr64(b ^ c, 63); \
131 G(r,0,v[ 0],v[ 4],v[ 8],v[12]); \
132 G(r,1,v[ 1],v[ 5],v[ 9],v[13]); \
133 G(r,2,v[ 2],v[ 6],v[10],v[14]); \
134 G(r,3,v[ 3],v[ 7],v[11],v[15]); \
135 G(r,4,v[ 0],v[ 5],v[10],v[15]); \
136 G(r,5,v[ 1],v[ 6],v[11],v[12]); \
137 G(r,6,v[ 2],v[ 7],v[ 8],v[13]); \
138 G(r,7,v[ 3],v[ 4],v[ 9],v[14]); \
147 for(
i = 0;
i < 16; ++
i ) {
151 for(
i = 0;
i < 8; ++
i ) {
177 for(
i = 0;
i < 8; ++
i ) {
178 S->h[
i] =
S->h[
i] ^
v[
i] ^
v[
i + 8];
187 const unsigned char *
in = (
const unsigned char *)
pin;
190 size_t left =
S->buflen;
217 if(
out ==
NULL || outlen < S->outlen )
228 for(
i = 0;
i < 8; ++
i )
_STLP_MOVE_TO_STD_NAMESPACE void fill(_ForwardIter __first, _ForwardIter __last, const _Tp &__val)
struct blake2b_param__ blake2b_param
static BLAKE2_INLINE void store64(void *dst, uint64_t w)
static BLAKE2_INLINE uint64_t load64(const void *src)
static BLAKE2_INLINE void store32(void *dst, uint32_t w)
static void blake2b_set_lastblock(blake2b_state *S)
static int blake2b_is_lastblock(const blake2b_state *S)
static int blake2b_final(blake2b_state *S, void *out, size_t outlen)
void blake2b(void *out, size_t outlen, const void *in, size_t inlen)
static void blake2b_init(blake2b_state *S, size_t outlen)
static void blake2b_init0(blake2b_state *S)
static void blake2b_compress(blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES])
static const uint64_t blake2b_IV[8]
static int blake2b_update(blake2b_state *S, const void *in, size_t inlen)
static void blake2b_set_lastnode(blake2b_state *S)
static void blake2b_init_param(blake2b_state *S, const blake2b_param *P)
static const uint8_t blake2b_sigma[12][16]
static void blake2b_increment_counter(blake2b_state *S, const uint64_t inc)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
static unsigned int block