epoc32/include/securityerr.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000 (2010-03-16)
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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: 
    15 *
    16 */
    17 
    18 
    19 #ifndef __SECURITYERR_H__
    20 #define __SECURITYERR_H__
    21 
    22 #include <e32std.h>
    23 
    24 /**
    25  * @file
    26  *
    27  * Defines error codes for the security subsystem.  Codes -11000 to -11500 are
    28  * reserved for security.
    29  *
    30  * @internalTechnology
    31  */
    32 
    33 /* Crypto libraries */
    34 
    35 const TInt KErrBadPassphrase				= -11000;
    36 const TInt KErrTotalLossOfEntropy			= -11001;
    37 const TInt KErrKeyNotWeakEnough				= -11002;	
    38 const TInt KErrInvalidPadding				= -11003;
    39 const TInt KErrWeakKey						= -11004;
    40 const TInt KErrNegativeExportNotSupported	= -11005;
    41 
    42 /*
    43  * Key store
    44  *
    45  * These error codes relate to the cryptokens key store interfaces and the
    46  * software keystore.  They are described in the interfaces where they occur.
    47  */
    48 
    49 const TInt KErrKeyAlgorithm	   				= -11006;
    50 const TInt KErrKeyUsage						= -11007;
    51 const TInt KErrKeyValidity				   	= -11008;
    52 const TInt KErrKeySize						= -11009;
    53 const TInt KErrKeyAccess					= -11010;
    54 const TInt KErrPrivateKeyNotFound			= -11011;
    55 
    56 #endif	//	__SECURITYERR_H__