Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
23 #include "tsignatureinput.h"
25 /* CHashingSignatureInput */
27 CHashingSignatureInput* CHashingSignatureInput::NewL(
28 CMessageDigest::THashId aHashId)
30 CHashingSignatureInput* self = NewLC(aHashId);
31 CleanupStack::Pop(self);
35 CHashingSignatureInput* CHashingSignatureInput::NewLC(
36 CMessageDigest::THashId aHashId)
38 CHashingSignatureInput* self = new(ELeave)CHashingSignatureInput;
39 CleanupStack::PushL(self);
40 self->ConstructL(aHashId);
44 void CHashingSignatureInput::Update(const TDesC8& aInput)
46 iHash->Update(aInput);
49 TPtrC8 CHashingSignatureInput::Final(void)
51 return iHash->Final();
54 CHashingSignatureInput::CHashingSignatureInput(void)
58 CHashingSignatureInput::~CHashingSignatureInput(void)
63 void CHashingSignatureInput::ConstructL(CMessageDigest::THashId aHashId)
65 iHash = CMessageDigestFactory::NewDigestL(aHashId);