Skip to content

Choice of Constants vs Blake2b #1

@jherekhealy

Description

@jherekhealy

Hi, I was wondering why the constants were different from the blake2b algorithm. How do you pick those constants?

The constants in blabla read
v[0] = 0x6170786593810fab v[1] = 0x3320646ec7398aee v[2] = 0x79622d3217318274 v[3] = 0x6b206574babadada v[4..<8] = self.key[0..<4] v[8] = 0x2ae36e593e46ad5f v[9] = 0xb68f143029225fc9 v[10] = 0x8da1e08468303aa6 v[11] = 0xa48a209acd50a4a7 v[12] = 0x7fdc12f23f90778c v[13..<16] = self.counter[0..<3]

and in blake2b
static const uint64_t blake2b_IV[8] = { 0x6a09e667f3bcc908ULL, 0xbb67ae8584caa73bULL, 0x3c6ef372fe94f82bULL, 0xa54ff53a5f1d36f1ULL, 0x510e527fade682d1ULL, 0x9b05688c2b3e6c1fULL, 0x1f83d9abfb41bd6bULL, 0x5be0cd19137e2179ULL };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions