LibreOffice Module xmlsecurity (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
OCipherContext Class Reference

#include <ciphercontext.hxx>

Inheritance diagram for OCipherContext:
[legend]
Collaboration diagram for OCipherContext:
[legend]

Public Member Functions

virtual ~OCipherContext () override
 
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL convertWithCipherContext (const css::uno::Sequence< ::sal_Int8 > &aData) override
 
virtual css::uno::Sequence< ::sal_Int8 > SAL_CALL finalizeCipherContextAndDispose () override
 

Static Public Member Functions

static css::uno::Reference< css::xml::crypto::XCipherContext > Create (CK_MECHANISM_TYPE nNSSCipherID, const css::uno::Sequence< ::sal_Int8 > &aKey, const css::uno::Sequence< ::sal_Int8 > &aInitializationVector, bool bEncryption, bool bW3CPadding)
 

Private Member Functions

void Dispose ()
 
 OCipherContext ()
 

Private Attributes

std::mutex m_aMutex
 
PK11SlotInfo * m_pSlot
 
PK11SymKey * m_pSymKey
 
SECItem * m_pSecParam
 
PK11Context * m_pContext
 
sal_Int32 m_nBlockSize
 
css::uno::Sequence< sal_Int8m_aLastBlock
 
bool m_bEncryption
 
bool m_bPadding
 
bool m_bW3CPadding
 
sal_Int64 m_nConverted
 
bool m_bDisposed
 
bool m_bBroken
 

Detailed Description

Definition at line 29 of file ciphercontext.hxx.

Constructor & Destructor Documentation

◆ OCipherContext()

OCipherContext::OCipherContext ( )
inlineprivate

Definition at line 52 of file ciphercontext.hxx.

Referenced by Create().

◆ ~OCipherContext()

virtual OCipherContext::~OCipherContext ( )
inlineoverridevirtual

Definition at line 68 of file ciphercontext.hxx.

References Dispose().

Member Function Documentation

◆ convertWithCipherContext()

uno::Sequence<::sal_Int8 > SAL_CALL OCipherContext::convertWithCipherContext ( const css::uno::Sequence< ::sal_Int8 > &  aData)
overridevirtual

◆ Create()

uno::Reference< xml::crypto::XCipherContext > OCipherContext::Create ( CK_MECHANISM_TYPE  nNSSCipherID,
const css::uno::Sequence< ::sal_Int8 > &  aKey,
const css::uno::Sequence< ::sal_Int8 > &  aInitializationVector,
bool  bEncryption,
bool  bW3CPadding 
)
static

Definition at line 32 of file ciphercontext.cxx.

References OCipherContext(), and SAL_MAX_INT8.

Referenced by ONSSInitializer::getCipherContext().

◆ Dispose()

void OCipherContext::Dispose ( )
private

◆ finalizeCipherContextAndDispose()

uno::Sequence<::sal_Int8 > SAL_CALL OCipherContext::finalizeCipherContextAndDispose ( )
overridevirtual

Member Data Documentation

◆ m_aLastBlock

css::uno::Sequence< sal_Int8 > OCipherContext::m_aLastBlock
private

Definition at line 40 of file ciphercontext.hxx.

Referenced by convertWithCipherContext(), and finalizeCipherContextAndDispose().

◆ m_aMutex

std::mutex OCipherContext::m_aMutex
private

Definition at line 32 of file ciphercontext.hxx.

Referenced by convertWithCipherContext(), and finalizeCipherContextAndDispose().

◆ m_bBroken

bool OCipherContext::m_bBroken
private

Definition at line 48 of file ciphercontext.hxx.

Referenced by convertWithCipherContext(), and finalizeCipherContextAndDispose().

◆ m_bDisposed

bool OCipherContext::m_bDisposed
private

◆ m_bEncryption

bool OCipherContext::m_bEncryption
private

Definition at line 42 of file ciphercontext.hxx.

Referenced by convertWithCipherContext(), and finalizeCipherContextAndDispose().

◆ m_bPadding

bool OCipherContext::m_bPadding
private

Definition at line 43 of file ciphercontext.hxx.

Referenced by finalizeCipherContextAndDispose().

◆ m_bW3CPadding

bool OCipherContext::m_bW3CPadding
private

Definition at line 44 of file ciphercontext.hxx.

Referenced by convertWithCipherContext(), and finalizeCipherContextAndDispose().

◆ m_nBlockSize

sal_Int32 OCipherContext::m_nBlockSize
private

Definition at line 39 of file ciphercontext.hxx.

Referenced by convertWithCipherContext(), and finalizeCipherContextAndDispose().

◆ m_nConverted

sal_Int64 OCipherContext::m_nConverted
private

Definition at line 45 of file ciphercontext.hxx.

Referenced by convertWithCipherContext(), and finalizeCipherContextAndDispose().

◆ m_pContext

PK11Context* OCipherContext::m_pContext
private

◆ m_pSecParam

SECItem* OCipherContext::m_pSecParam
private

Definition at line 36 of file ciphercontext.hxx.

Referenced by Dispose().

◆ m_pSlot

PK11SlotInfo* OCipherContext::m_pSlot
private

Definition at line 34 of file ciphercontext.hxx.

Referenced by Dispose().

◆ m_pSymKey

PK11SymKey* OCipherContext::m_pSymKey
private

Definition at line 35 of file ciphercontext.hxx.

Referenced by Dispose().


The documentation for this class was generated from the following files: