ソースを参照

sponge is now restrict for strobe_duplex, for all the difference that makes :-/

master
Mike Hamburg 8年前
コミット
5c4a6d86f0
1個のファイルの変更3行の追加2行の削除
  1. +3
    -2
      src/shake.c

+ 3
- 2
src/shake.c ファイルの表示

@@ -410,15 +410,16 @@ static __inline__ uint8_t CONTROL_WORD_PAD(int cw_size) {
return 0xC0 | cw_size;
}

/* PERF vectorize */
static void strobe_duplex (
keccak_sponge_t sponge,
struct keccak_sponge_s *__restrict__ sponge,
unsigned char *out,
const unsigned char *in,
size_t len,
mode_t mode
) {
unsigned int j, r = sponge->params->rate, p = sponge->params->position;
uint8_t* state = &sponge->state->b[0];
uint8_t* __restrict__ state = &sponge->state->b[0];
/* sanity */
assert(r < sizeof(sponge->state) && r >= p);


読み込み中…
キャンセル
保存