sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* ** IMPORTANT ** PublishedPartner API's in this file are published to 3rd party developers via the
|
sl@0
|
16 |
* Symbian website. Changes to these API's should be treated as PublishedAll API changes and the Security TA should be consulted.
|
sl@0
|
17 |
* This utility class provides functions to generate key identifer data from
|
sl@0
|
18 |
* supplied key data
|
sl@0
|
19 |
*
|
sl@0
|
20 |
*/
|
sl@0
|
21 |
|
sl@0
|
22 |
|
sl@0
|
23 |
/**
|
sl@0
|
24 |
@file
|
sl@0
|
25 |
@internalTechnology
|
sl@0
|
26 |
*/
|
sl@0
|
27 |
|
sl@0
|
28 |
#ifndef _KEYIDENTIFIERUTIL_H_
|
sl@0
|
29 |
#define _KEYIDENTIFIERUTIL_H_
|
sl@0
|
30 |
|
sl@0
|
31 |
#include <securitydefs.h>
|
sl@0
|
32 |
|
sl@0
|
33 |
class CRSAPublicKey;
|
sl@0
|
34 |
class CDSAPublicKey;
|
sl@0
|
35 |
class RInteger;
|
sl@0
|
36 |
|
sl@0
|
37 |
/**
|
sl@0
|
38 |
* Utilities for generation of the key identifier
|
sl@0
|
39 |
*
|
sl@0
|
40 |
* @internalTechnology
|
sl@0
|
41 |
*/
|
sl@0
|
42 |
class KeyIdentifierUtil
|
sl@0
|
43 |
{
|
sl@0
|
44 |
public:
|
sl@0
|
45 |
IMPORT_C static void RSAKeyIdentifierL(const CRSAPublicKey&, TKeyIdentifier&);
|
sl@0
|
46 |
IMPORT_C static void DSAKeyIdentifierL(const CDSAPublicKey&, TKeyIdentifier&);
|
sl@0
|
47 |
IMPORT_C static void DHKeyIdentifierL(const RInteger&, TKeyIdentifier&);
|
sl@0
|
48 |
};
|
sl@0
|
49 |
|
sl@0
|
50 |
#endif
|