os/security/cryptomgmtlibs/securityutils/inc/securityerr.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/cryptomgmtlibs/securityutils/inc/securityerr.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,127 @@
     1.4 +/*
     1.5 +* Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of the License "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:  Defines error codes for the security subsystem.
    1.18 +*
    1.19 +*
    1.20 +* @file 
    1.21 +* @publishedAll
    1.22 +* @released
    1.23 +*/
    1.24 +
    1.25 +#ifndef __SECURITYERR_H__
    1.26 +#define __SECURITYERR_H__
    1.27 +
    1.28 +#include <e32std.h>
    1.29 +
    1.30 +
    1.31 +
    1.32 +/**
    1.33 +	If the passphrase entered is incorrect.
    1.34 +**/
    1.35 +const TInt KErrBadPassphrase				= -11000;
    1.36 +
    1.37 +
    1.38 +
    1.39 +/**
    1.40 +	Operation in progress or its result is not secure.
    1.41 +**/
    1.42 +const TInt KErrNotSecure        			= -11001;
    1.43 +
    1.44 +
    1.45 +
    1.46 +/** 
    1.47 +	If the key size is larger than that allowed 
    1.48 +	by the cipher strength restrictions of the crypto 
    1.49 +	library.
    1.50 +**/
    1.51 +const TInt KErrKeyNotWeakEnough				= -11002;
    1.52 +
    1.53 +
    1.54 +
    1.55 +/**
    1.56 +	Length of the padding data is invalid.
    1.57 +**/
    1.58 +const TInt KErrInvalidPadding				= -11003;
    1.59 +
    1.60 +
    1.61 +
    1.62 +/** 
    1.63 +	If the key is weaker than that allowed 
    1.64 +	by the cipher strength restrictions of the crypto 
    1.65 +	library.
    1.66 + **/
    1.67 +const TInt KErrWeakKey						= -11004;
    1.68 +
    1.69 +
    1.70 +
    1.71 +/**
    1.72 +	If the export of negative values is not
    1.73 +	supported.
    1.74 +**/
    1.75 +const TInt KErrNegativeExportNotSupported	= -11005;
    1.76 +
    1.77 +
    1.78 +
    1.79 +/**
    1.80 +	If the requested key generation algorithm is not 
    1.81 +	supported.
    1.82 +**/
    1.83 +const TInt KErrKeyAlgorithm	   				= -11006;
    1.84 +
    1.85 +
    1.86 +
    1.87 +/**
    1.88 +	If the key usage flags are not valid or not
    1.89 +	consistent with the key algorithm.
    1.90 +**/
    1.91 +const TInt KErrKeyUsage						= -11007;
    1.92 +
    1.93 +
    1.94 +
    1.95 +/**
    1.96 +	If a validity period is specified during key generation,
    1.97 +	but the end date is in the past.
    1.98 +**/
    1.99 +const TInt KErrKeyValidity				   	= -11008;
   1.100 +
   1.101 +
   1.102 +
   1.103 +/**
   1.104 +	If the requested key size is not supported.
   1.105 +**/
   1.106 +const TInt KErrKeySize						= -11009;
   1.107 +
   1.108 +
   1.109 +
   1.110 +/**
   1.111 +	If an invalid combination of key access
   1.112 +	flags were specified.
   1.113 +**/
   1.114 +const TInt KErrKeyAccess					= -11010;
   1.115 +
   1.116 +
   1.117 +
   1.118 +/**
   1.119 +	If the requested private key is not present.
   1.120 +**/
   1.121 +const TInt KErrPrivateKeyNotFound			= -11011;
   1.122 +
   1.123 +
   1.124 +
   1.125 +/**
   1.126 +	If a setting in the repository is not found.
   1.127 +**/
   1.128 +const TInt KErrSettingNotFound				= -11012;	
   1.129 +
   1.130 +#endif	//	__SECURITYERR_H__