fix kyber-90s warning if size_t is not 32 bits
This commit is contained in:
parent
c39e85dddf
commit
df8cc49670
@ -174,3 +174,4 @@ void PQCLEAN_KYBER102490S_AVX2_aes256ctr_prf(uint8_t *out,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,5 +91,5 @@ void PQCLEAN_KYBER102490S_CLEAN_aes256xof_absorb(aes256xof_ctx *s, const uint8_t
|
||||
**************************************************/
|
||||
void PQCLEAN_KYBER102490S_CLEAN_aes256xof_squeezeblocks(uint8_t *out, size_t nblocks, aes256xof_ctx *s) {
|
||||
aes256_ctr_xof(out, nblocks * 64, s->iv, s->ctr, &s->sk_exp);
|
||||
s->ctr += 4 * nblocks;
|
||||
s->ctr += (uint32_t) (4 * nblocks);
|
||||
}
|
||||
|
@ -174,3 +174,4 @@ void PQCLEAN_KYBER51290S_AVX2_aes256ctr_prf(uint8_t *out,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,5 +91,5 @@ void PQCLEAN_KYBER51290S_CLEAN_aes256xof_absorb(aes256xof_ctx *s, const uint8_t
|
||||
**************************************************/
|
||||
void PQCLEAN_KYBER51290S_CLEAN_aes256xof_squeezeblocks(uint8_t *out, size_t nblocks, aes256xof_ctx *s) {
|
||||
aes256_ctr_xof(out, nblocks * 64, s->iv, s->ctr, &s->sk_exp);
|
||||
s->ctr += 4 * nblocks;
|
||||
s->ctr += (uint32_t) (4 * nblocks);
|
||||
}
|
||||
|
@ -174,3 +174,4 @@ void PQCLEAN_KYBER76890S_AVX2_aes256ctr_prf(uint8_t *out,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,5 +91,5 @@ void PQCLEAN_KYBER76890S_CLEAN_aes256xof_absorb(aes256xof_ctx *s, const uint8_t
|
||||
**************************************************/
|
||||
void PQCLEAN_KYBER76890S_CLEAN_aes256xof_squeezeblocks(uint8_t *out, size_t nblocks, aes256xof_ctx *s) {
|
||||
aes256_ctr_xof(out, nblocks * 64, s->iv, s->ctr, &s->sk_exp);
|
||||
s->ctr += 4 * nblocks;
|
||||
s->ctr += (uint32_t) (4 * nblocks);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user