Update comments
parent
2e68e95a92
commit
1a06aadbf0
|
|
@ -847,6 +847,11 @@ uint32x4_p VectorSet32<3,1,3,1>(const uint32x4_p a, const uint32x4_p b,
|
||||||
return VecPermute(a, c, mask);
|
return VecPermute(a, c, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BLAKE2_Compress32_CORE will use either POWER7 or ALTIVEC,
|
||||||
|
// depending on the flags used to compile this source file. The
|
||||||
|
// abstractions are handled in VecLoad, VecStore and friends. In
|
||||||
|
// the future we may to provide both POWER7 or ALTIVEC at the same
|
||||||
|
// time to better support distros.
|
||||||
void BLAKE2_Compress32_CORE(const byte* input, BLAKE2s_State& state)
|
void BLAKE2_Compress32_CORE(const byte* input, BLAKE2s_State& state)
|
||||||
{
|
{
|
||||||
# define m1 m0
|
# define m1 m0
|
||||||
|
|
|
||||||
|
|
@ -826,7 +826,9 @@ void ChaCha_OperateKeystream_SSE2(const word32 *state, const byte* input, byte *
|
||||||
|
|
||||||
// ChaCha_OperateKeystream_CORE will use either POWER7 or ALTIVEC,
|
// ChaCha_OperateKeystream_CORE will use either POWER7 or ALTIVEC,
|
||||||
// depending on the flags used to compile this source file. The
|
// depending on the flags used to compile this source file. The
|
||||||
// abstractions are handled in VecLoad, VecStore and friends.
|
// abstractions are handled in VecLoad, VecStore and friends. In
|
||||||
|
// the future we may to provide both POWER7 or ALTIVEC at the same
|
||||||
|
// time to better support distros.
|
||||||
inline void ChaCha_OperateKeystream_CORE(const word32 *state, const byte* input, byte *output, unsigned int rounds)
|
inline void ChaCha_OperateKeystream_CORE(const word32 *state, const byte* input, byte *output, unsigned int rounds)
|
||||||
{
|
{
|
||||||
const uint32x4_p state0 = VecLoad(state + 0*4);
|
const uint32x4_p state0 = VecLoad(state + 0*4);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue