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