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