|
1 /** |
|
2 * XMLSec library |
|
3 * |
|
4 * This is free software; see Copyright file in the source |
|
5 * distribution for preciese wording. |
|
6 * |
|
7 * Copyright (C) 2002-2003 Aleksey Sanin <aleksey@aleksey.com> |
|
8 * Portion Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
9 */ |
|
10 #ifndef __XMLSEC_SYMBIANCRYPTO_SYMBOLS_H__ |
|
11 #define __XMLSEC_SYMBIANCRYPTO_SYMBOLS_H__ |
|
12 |
|
13 #include "xmlsecc_config.h" |
|
14 |
|
15 #if !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING) |
|
16 #error To disable dynamic loading of xmlsec-crypto libraries undefine XMLSEC_CRYPTO_DYNAMIC_LOADING |
|
17 #endif /* !defined(IN_XMLSEC) && defined(XMLSEC_CRYPTO_DYNAMIC_LOADING) */ |
|
18 |
|
19 #ifdef __cplusplus |
|
20 extern "C" { |
|
21 #endif /* __cplusplus */ |
|
22 |
|
23 /** |
|
24 * Defines for writing simple code |
|
25 */ |
|
26 #ifdef XMLSEC_CRYPTO_SYMBIANCRYPTO |
|
27 |
|
28 /** |
|
29 * Crypto Init/shutdown |
|
30 */ |
|
31 #define xmlSecCryptoInit xmlSecSymbianCryptoInit |
|
32 #define xmlSecCryptoShutdown xmlSecSymbianCryptoShutdown |
|
33 |
|
34 #define xmlSecCryptoKeysMngrInit xmlSecSymbianCryptoKeysMngrInit |
|
35 |
|
36 /** |
|
37 * Key data ids |
|
38 */ |
|
39 #define xmlSecKeyDataAesId xmlSecSymbianCryptoKeyDataAesId |
|
40 #define xmlSecKeyDataDesId xmlSecSymbianCryptoKeyDataDesId |
|
41 #define xmlSecKeyDataDsaId xmlSecSymbianCryptoKeyDataDsaId |
|
42 #define xmlSecKeyDataHmacId xmlSecSymbianCryptoKeyDataHmacId |
|
43 #define xmlSecKeyDataRsaId xmlSecSymbianCryptoKeyDataRsaId |
|
44 #define xmlSecKeyDataX509Id xmlSecSymbianCryptoKeyDataX509Id |
|
45 #define xmlSecKeyDataRawX509CertId xmlSecSymbianCryptoKeyDataRawX509CertId |
|
46 |
|
47 /** |
|
48 * Key data store ids |
|
49 */ |
|
50 #define xmlSecX509StoreId xmlSecSymbianCryptoX509StoreId |
|
51 |
|
52 /** |
|
53 * Crypto transforms ids |
|
54 */ |
|
55 #define xmlSecTransformAes128CbcId xmlSecSymbianCryptoTransformAes128CbcId |
|
56 #define xmlSecTransformAes192CbcId xmlSecSymbianCryptoTransformAes192CbcId |
|
57 #define xmlSecTransformAes256CbcId xmlSecSymbianCryptoTransformAes256CbcId |
|
58 #define xmlSecTransformKWAes128Id xmlSecSymbianCryptoTransformKWAes128Id |
|
59 #define xmlSecTransformKWAes192Id xmlSecSymbianCryptoTransformKWAes192Id |
|
60 #define xmlSecTransformKWAes256Id xmlSecSymbianCryptoTransformKWAes256Id |
|
61 #define xmlSecTransformDes3CbcId xmlSecSymbianCryptoTransformDes3CbcId |
|
62 #define xmlSecTransformKWDes3Id xmlSecSymbianCryptoTransformKWDes3Id |
|
63 #define xmlSecTransformDsaSha1Id xmlSecSymbianCryptoTransformDsaSha1Id |
|
64 #define xmlSecTransformHmacMd5Id xmlSecSymbianCryptoTransformHmacMd5Id |
|
65 #define xmlSecTransformHmacRipemd160Id xmlSecSymbianCryptoTransformHmacRipemd160Id |
|
66 #define xmlSecTransformHmacSha1Id xmlSecSymbianCryptoTransformHmacSha1Id |
|
67 #define xmlSecTransformRipemd160Id xmlSecSymbianCryptoTransformRipemd160Id |
|
68 #define xmlSecTransformRsaSha1Id xmlSecSymbianCryptoTransformRsaSha1Id |
|
69 #define xmlSecTransformRsaPkcs1Id xmlSecSymbianCryptoTransformRsaPkcs1Id |
|
70 #define xmlSecTransformRsaOaepId xmlSecSymbianCryptoTransformRsaOaepId |
|
71 #define xmlSecTransformSha1Id xmlSecSymbianCryptoTransformSha1Id |
|
72 |
|
73 /** |
|
74 * High level routines form xmlsec command line utility |
|
75 */ |
|
76 #define xmlSecCryptoAppInit xmlSecSymbianCryptoAppInit |
|
77 #define xmlSecCryptoAppShutdown xmlSecSymbianCryptoAppShutdown |
|
78 #define xmlSecCryptoAppDefaultKeysMngrInit xmlSecSymbianCryptoAppDefaultKeysMngrInit |
|
79 #define xmlSecCryptoAppDefaultKeysMngrAdoptKey xmlSecSymbianCryptoAppDefaultKeysMngrAdoptKey |
|
80 #define xmlSecCryptoAppDefaultKeysMngrLoad xmlSecSymbianCryptoAppDefaultKeysMngrLoad |
|
81 #define xmlSecCryptoAppDefaultKeysMngrSave xmlSecSymbianCryptoAppDefaultKeysMngrSave |
|
82 #define xmlSecCryptoAppKeysMngrCertLoad xmlSecSymbianCryptoAppKeysMngrCertLoad |
|
83 #define xmlSecCryptoAppKeysMngrCertLoadMemory xmlSecSymbianCryptoAppKeysMngrCertLoadMemory |
|
84 #define xmlSecCryptoAppKeyLoadWithName xmlSecSymbianCryptoAppKeyLoadWithName |
|
85 #define xmlSecCryptoAppPkcs12Load xmlSecSymbianCryptoAppPkcs12Load |
|
86 #define xmlSecCryptoAppKeyCertLoad xmlSecSymbianCryptoAppKeyCertLoad |
|
87 #define xmlSecCryptoAppKeyLoadMemoryWithName xmlSecSymbianCryptoAppKeyLoadMemoryWithName |
|
88 #define xmlSecCryptoAppPkcs12LoadMemory xmlSecSymbianCryptoAppPkcs12LoadMemory |
|
89 #define xmlSecCryptoAppKeyCertLoadMemory xmlSecSymbianCryptoAppKeyCertLoadMemory |
|
90 #define xmlSecCryptoAppGetDefaultPwdCallback xmlSecSymbianCryptoAppGetDefaultPwdCallback |
|
91 |
|
92 #endif /* XMLSEC_CRYPTO_SYMBIANCRYPTO */ |
|
93 |
|
94 #ifdef __cplusplus |
|
95 } |
|
96 #endif /* __cplusplus */ |
|
97 |
|
98 #endif /* __XMLSEC_SYMBIANCRYPTO_CRYPTO_H__ */ |
|
99 |
|
100 #define __XMLSEC_SYMBIANCRYPTO_CRYPTO_H__ |