Avoid use of SecBlock::m_ptr in Salsa

pull/462/head
Jeffrey Walton 2017-08-17 16:27:56 -04:00
parent ae84826d4b
commit 9d1f7f7539
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 2 deletions

View File

@ -485,11 +485,11 @@ void Salsa20_Policy::OperateKeystream(KeystreamOperation operation, byte *output
ATT_PREFIX ATT_PREFIX
#if CRYPTOPP_BOOL_X64 #if CRYPTOPP_BOOL_X64
: "+r" (input), "+r" (output), "+r" (iterationCount) : "+r" (input), "+r" (output), "+r" (iterationCount)
: "r" (m_rounds), "r" (m_state.m_ptr), "r" (workspace) : "r" (m_rounds), "r" (m_state.begin()), "r" (workspace)
: "%eax", "%rdx", "memory", "cc", "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", "%xmm6", "%xmm7", "%xmm8", "%xmm9", "%xmm10", "%xmm11", "%xmm12", "%xmm13", "%xmm14", "%xmm15" : "%eax", "%rdx", "memory", "cc", "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", "%xmm6", "%xmm7", "%xmm8", "%xmm9", "%xmm10", "%xmm11", "%xmm12", "%xmm13", "%xmm14", "%xmm15"
#else #else
: "+a" (input), "+D" (output), "+c" (iterationCount) : "+a" (input), "+D" (output), "+c" (iterationCount)
: "d" (m_rounds), "S" (m_state.m_ptr) : "d" (m_rounds), "S" (m_state.begin())
: "memory", "cc" : "memory", "cc"
#endif #endif
); );