Update contrib.
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.
14 * Description: Defines error codes for the security subsystem.
22 #ifndef __SECURITYERR_H__
23 #define __SECURITYERR_H__
30 If the passphrase entered is incorrect.
32 const TInt KErrBadPassphrase = -11000;
37 Operation in progress or its result is not secure.
39 const TInt KErrNotSecure = -11001;
44 If the key size is larger than that allowed
45 by the cipher strength restrictions of the crypto
48 const TInt KErrKeyNotWeakEnough = -11002;
53 Length of the padding data is invalid.
55 const TInt KErrInvalidPadding = -11003;
60 If the key is weaker than that allowed
61 by the cipher strength restrictions of the crypto
64 const TInt KErrWeakKey = -11004;
69 If the export of negative values is not
72 const TInt KErrNegativeExportNotSupported = -11005;
77 If the requested key generation algorithm is not
80 const TInt KErrKeyAlgorithm = -11006;
85 If the key usage flags are not valid or not
86 consistent with the key algorithm.
88 const TInt KErrKeyUsage = -11007;
93 If a validity period is specified during key generation,
94 but the end date is in the past.
96 const TInt KErrKeyValidity = -11008;
101 If the requested key size is not supported.
103 const TInt KErrKeySize = -11009;
108 If an invalid combination of key access
109 flags were specified.
111 const TInt KErrKeyAccess = -11010;
116 If the requested private key is not present.
118 const TInt KErrPrivateKeyNotFound = -11011;
123 If a setting in the repository is not found.
125 const TInt KErrSettingNotFound = -11012;
127 #endif // __SECURITYERR_H__