os/security/cryptomgmtlibs/securityutils/inc/securityerr.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:  Defines error codes for the security subsystem.
    15 *
    16 *
    17 * @file 
    18 * @publishedAll
    19 * @released
    20 */
    21 
    22 #ifndef __SECURITYERR_H__
    23 #define __SECURITYERR_H__
    24 
    25 #include <e32std.h>
    26 
    27 
    28 
    29 /**
    30 	If the passphrase entered is incorrect.
    31 **/
    32 const TInt KErrBadPassphrase				= -11000;
    33 
    34 
    35 
    36 /**
    37 	Operation in progress or its result is not secure.
    38 **/
    39 const TInt KErrNotSecure        			= -11001;
    40 
    41 
    42 
    43 /** 
    44 	If the key size is larger than that allowed 
    45 	by the cipher strength restrictions of the crypto 
    46 	library.
    47 **/
    48 const TInt KErrKeyNotWeakEnough				= -11002;
    49 
    50 
    51 
    52 /**
    53 	Length of the padding data is invalid.
    54 **/
    55 const TInt KErrInvalidPadding				= -11003;
    56 
    57 
    58 
    59 /** 
    60 	If the key is weaker than that allowed 
    61 	by the cipher strength restrictions of the crypto 
    62 	library.
    63  **/
    64 const TInt KErrWeakKey						= -11004;
    65 
    66 
    67 
    68 /**
    69 	If the export of negative values is not
    70 	supported.
    71 **/
    72 const TInt KErrNegativeExportNotSupported	= -11005;
    73 
    74 
    75 
    76 /**
    77 	If the requested key generation algorithm is not 
    78 	supported.
    79 **/
    80 const TInt KErrKeyAlgorithm	   				= -11006;
    81 
    82 
    83 
    84 /**
    85 	If the key usage flags are not valid or not
    86 	consistent with the key algorithm.
    87 **/
    88 const TInt KErrKeyUsage						= -11007;
    89 
    90 
    91 
    92 /**
    93 	If a validity period is specified during key generation,
    94 	but the end date is in the past.
    95 **/
    96 const TInt KErrKeyValidity				   	= -11008;
    97 
    98 
    99 
   100 /**
   101 	If the requested key size is not supported.
   102 **/
   103 const TInt KErrKeySize						= -11009;
   104 
   105 
   106 
   107 /**
   108 	If an invalid combination of key access
   109 	flags were specified.
   110 **/
   111 const TInt KErrKeyAccess					= -11010;
   112 
   113 
   114 
   115 /**
   116 	If the requested private key is not present.
   117 **/
   118 const TInt KErrPrivateKeyNotFound			= -11011;
   119 
   120 
   121 
   122 /**
   123 	If a setting in the repository is not found.
   124 **/
   125 const TInt KErrSettingNotFound				= -11012;	
   126 
   127 #endif	//	__SECURITYERR_H__