sl@0: /* sl@0: * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: Defines error codes for the security subsystem. sl@0: * sl@0: * sl@0: * @file sl@0: * @publishedAll sl@0: * @released sl@0: */ sl@0: sl@0: #ifndef __SECURITYERR_H__ sl@0: #define __SECURITYERR_H__ sl@0: sl@0: #include sl@0: sl@0: sl@0: sl@0: /** sl@0: If the passphrase entered is incorrect. sl@0: **/ sl@0: const TInt KErrBadPassphrase = -11000; sl@0: sl@0: sl@0: sl@0: /** sl@0: Operation in progress or its result is not secure. sl@0: **/ sl@0: const TInt KErrNotSecure = -11001; sl@0: sl@0: sl@0: sl@0: /** sl@0: If the key size is larger than that allowed sl@0: by the cipher strength restrictions of the crypto sl@0: library. sl@0: **/ sl@0: const TInt KErrKeyNotWeakEnough = -11002; sl@0: sl@0: sl@0: sl@0: /** sl@0: Length of the padding data is invalid. sl@0: **/ sl@0: const TInt KErrInvalidPadding = -11003; sl@0: sl@0: sl@0: sl@0: /** sl@0: If the key is weaker than that allowed sl@0: by the cipher strength restrictions of the crypto sl@0: library. sl@0: **/ sl@0: const TInt KErrWeakKey = -11004; sl@0: sl@0: sl@0: sl@0: /** sl@0: If the export of negative values is not sl@0: supported. sl@0: **/ sl@0: const TInt KErrNegativeExportNotSupported = -11005; sl@0: sl@0: sl@0: sl@0: /** sl@0: If the requested key generation algorithm is not sl@0: supported. sl@0: **/ sl@0: const TInt KErrKeyAlgorithm = -11006; sl@0: sl@0: sl@0: sl@0: /** sl@0: If the key usage flags are not valid or not sl@0: consistent with the key algorithm. sl@0: **/ sl@0: const TInt KErrKeyUsage = -11007; sl@0: sl@0: sl@0: sl@0: /** sl@0: If a validity period is specified during key generation, sl@0: but the end date is in the past. sl@0: **/ sl@0: const TInt KErrKeyValidity = -11008; sl@0: sl@0: sl@0: sl@0: /** sl@0: If the requested key size is not supported. sl@0: **/ sl@0: const TInt KErrKeySize = -11009; sl@0: sl@0: sl@0: sl@0: /** sl@0: If an invalid combination of key access sl@0: flags were specified. sl@0: **/ sl@0: const TInt KErrKeyAccess = -11010; sl@0: sl@0: sl@0: sl@0: /** sl@0: If the requested private key is not present. sl@0: **/ sl@0: const TInt KErrPrivateKeyNotFound = -11011; sl@0: sl@0: sl@0: sl@0: /** sl@0: If a setting in the repository is not found. sl@0: **/ sl@0: const TInt KErrSettingNotFound = -11012; sl@0: sl@0: #endif // __SECURITYERR_H__