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@2: * Description: williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: #ifndef __SECURITYERR_H__ williamr@2: #define __SECURITYERR_H__ williamr@2: williamr@2: #include williamr@2: williamr@2: /** williamr@2: * @file williamr@2: * williamr@2: * Defines error codes for the security subsystem. Codes -11000 to -11500 are williamr@2: * reserved for security. williamr@2: * williamr@2: * @internalTechnology williamr@2: */ williamr@2: williamr@2: /* Crypto libraries */ williamr@2: williamr@2: const TInt KErrBadPassphrase = -11000; williamr@2: const TInt KErrTotalLossOfEntropy = -11001; williamr@2: const TInt KErrKeyNotWeakEnough = -11002; williamr@2: const TInt KErrInvalidPadding = -11003; williamr@2: const TInt KErrWeakKey = -11004; williamr@2: const TInt KErrNegativeExportNotSupported = -11005; williamr@2: williamr@2: /* williamr@2: * Key store williamr@2: * williamr@2: * These error codes relate to the cryptokens key store interfaces and the williamr@2: * software keystore. They are described in the interfaces where they occur. williamr@2: */ williamr@2: williamr@2: const TInt KErrKeyAlgorithm = -11006; williamr@2: const TInt KErrKeyUsage = -11007; williamr@2: const TInt KErrKeyValidity = -11008; williamr@2: const TInt KErrKeySize = -11009; williamr@2: const TInt KErrKeyAccess = -11010; williamr@2: const TInt KErrPrivateKeyNotFound = -11011; williamr@2: williamr@2: #endif // __SECURITYERR_H__