2 * Copyright (c) 2003-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.
19 #ifndef __SECURITYERR_H__
20 #define __SECURITYERR_H__
27 * Defines error codes for the security subsystem. Codes -11000 to -11500 are
28 * reserved for security.
33 /* Crypto libraries */
35 const TInt KErrBadPassphrase = -11000;
36 const TInt KErrTotalLossOfEntropy = -11001;
37 const TInt KErrKeyNotWeakEnough = -11002;
38 const TInt KErrInvalidPadding = -11003;
39 const TInt KErrWeakKey = -11004;
40 const TInt KErrNegativeExportNotSupported = -11005;
45 * These error codes relate to the cryptokens key store interfaces and the
46 * software keystore. They are described in the interfaces where they occur.
49 const TInt KErrKeyAlgorithm = -11006;
50 const TInt KErrKeyUsage = -11007;
51 const TInt KErrKeyValidity = -11008;
52 const TInt KErrKeySize = -11009;
53 const TInt KErrKeyAccess = -11010;
54 const TInt KErrPrivateKeyNotFound = -11011;
56 #endif // __SECURITYERR_H__