Make SecBlock<T,A> data members protected

Also see http://github.com/weidai11/cryptopp/issues/448
pull/450/head
Jeffrey Walton 2017-07-27 20:28:23 -04:00
parent 2c9a3039e8
commit d0cd32f405
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 3 additions and 3 deletions

View File

@ -796,7 +796,7 @@ public:
std::swap(m_ptr, b.m_ptr); std::swap(m_ptr, b.m_ptr);
} }
// protected: protected:
A m_alloc; A m_alloc;
size_type m_mark, m_size; size_type m_mark, m_size;
T *m_ptr; T *m_ptr;

View File

@ -601,9 +601,9 @@ void SosemanukPolicy::OperateKeystream(KeystreamOperation operation, byte *outpu
AS_POP_IF86( bx) AS_POP_IF86( bx)
ATT_PREFIX ATT_PREFIX
: :
: "a" (m_state.m_ptr), "c" (iterationCount), "S" (s_sosemanukMulTables), "D" (output), "d" (input) : "a" (m_state.data()), "c" (iterationCount), "S" (s_sosemanukMulTables), "D" (output), "d" (input)
#if CRYPTOPP_BOOL_X64 #if CRYPTOPP_BOOL_X64
, "r" (workspace.m_ptr) , "r" (workspace.data())
: "memory", "cc", "%r9", "%r10", "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", "%xmm6", "%xmm7" : "memory", "cc", "%r9", "%r10", "%xmm0", "%xmm1", "%xmm2", "%xmm3", "%xmm4", "%xmm5", "%xmm6", "%xmm7"
#else #else
: "memory", "cc" : "memory", "cc"