Sha256: 0842fef3fe9f8c0ed6e3f77e3134868ab2bbaa758017ee5d1592c108dd71a18d

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

#ifdef __SSE2__
#include "gimli-core/sse2.h"
#else
#include "gimli-core/portable.h"
#endif

static void
gimli_core_u8(uint8_t state_u8[gimli_BLOCKBYTES], uint8_t tag)
{
    state_u8[gimli_BLOCKBYTES - 1] ^= tag;
#ifndef NATIVE_LITTLE_ENDIAN
    uint32_t state_u32[12];
    int      i;

    for (i = 0; i < 12; i++) {
        state_u32[i] = LOAD32_LE(&state_u8[i * 4]);
    }
    gimli_core(state_u32);
    for (i = 0; i < 12; i++) {
        STORE32_LE(&state_u8[i * 4], state_u32[i]);
    }
#else
    gimli_core((uint32_t *) (void *) state_u8); /* state_u8 must be properly aligned */
#endif
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dualcone-1.0.0 vendor/libhydrogen/impl/gimli-core.h
dualcone-0.0.1 vendor/libhydrogen/impl/gimli-core.h