epoc32/include/securityerr.h
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/securityerr.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,56 @@
     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: 
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef __SECURITYERR_H__
    1.23 +#define __SECURITYERR_H__
    1.24 +
    1.25 +#include <e32std.h>
    1.26 +
    1.27 +/**
    1.28 + * @file
    1.29 + *
    1.30 + * Defines error codes for the security subsystem.  Codes -11000 to -11500 are
    1.31 + * reserved for security.
    1.32 + *
    1.33 + * @internalTechnology
    1.34 + */
    1.35 +
    1.36 +/* Crypto libraries */
    1.37 +
    1.38 +const TInt KErrBadPassphrase				= -11000;
    1.39 +const TInt KErrTotalLossOfEntropy			= -11001;
    1.40 +const TInt KErrKeyNotWeakEnough				= -11002;	
    1.41 +const TInt KErrInvalidPadding				= -11003;
    1.42 +const TInt KErrWeakKey						= -11004;
    1.43 +const TInt KErrNegativeExportNotSupported	= -11005;
    1.44 +
    1.45 +/*
    1.46 + * Key store
    1.47 + *
    1.48 + * These error codes relate to the cryptokens key store interfaces and the
    1.49 + * software keystore.  They are described in the interfaces where they occur.
    1.50 + */
    1.51 +
    1.52 +const TInt KErrKeyAlgorithm	   				= -11006;
    1.53 +const TInt KErrKeyUsage						= -11007;
    1.54 +const TInt KErrKeyValidity				   	= -11008;
    1.55 +const TInt KErrKeySize						= -11009;
    1.56 +const TInt KErrKeyAccess					= -11010;
    1.57 +const TInt KErrPrivateKeyNotFound			= -11011;
    1.58 +
    1.59 +#endif	//	__SECURITYERR_H__