diff options
Diffstat (limited to 'sal/rtl/cipher.cxx')
-rw-r--r-- | sal/rtl/cipher.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sal/rtl/cipher.cxx b/sal/rtl/cipher.cxx index 26d9cca29afc..9bc438114651 100644 --- a/sal/rtl/cipher.cxx +++ b/sal/rtl/cipher.cxx @@ -105,6 +105,8 @@ typedef rtlCipherError(cipher_update_t) ( typedef void (cipher_delete_t) (rtlCipher Cipher); +namespace { + struct Cipher_Impl { rtlCipherAlgorithm m_algorithm; @@ -117,6 +119,8 @@ struct Cipher_Impl cipher_delete_t *m_delete; }; +} + rtlCipher SAL_CALL rtl_cipher_create( rtlCipherAlgorithm Algorithm, rtlCipherMode Mode) SAL_THROW_EXTERN_C() @@ -192,6 +196,8 @@ void SAL_CALL rtl_cipher_destroy(rtlCipher Cipher) SAL_THROW_EXTERN_C() pImpl->m_delete(Cipher); } +namespace { + #if !defined LIBO_CIPHER_OPENSSL_BACKEND #define CIPHER_ROUNDS_BF 16 @@ -223,6 +229,8 @@ struct CipherBF_Impl CipherContextBF m_context; }; +} + #if !defined LIBO_CIPHER_OPENSSL_BACKEND static rtlCipherError BF_init( CipherContextBF *ctx, @@ -1150,6 +1158,8 @@ void SAL_CALL rtl_cipher_destroyBF(rtlCipher Cipher) SAL_THROW_EXTERN_C() #define CIPHER_CBLOCK_ARCFOUR 256 #endif +namespace { + struct ContextARCFOUR_Impl { #if defined LIBO_CIPHER_OPENSSL_BACKEND @@ -1166,6 +1176,8 @@ struct CipherARCFOUR_Impl ContextARCFOUR_Impl m_context; }; +} + static rtlCipherError rtl_cipherARCFOUR_update_Impl( ContextARCFOUR_Impl *ctx, const sal_uInt8 *pData, sal_Size nDatLen, |