equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 "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: AES encryptor function for drm engine use |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DRMAESCRYPTO_H |
|
19 #define DRMAESCRYPTO_H |
|
20 |
|
21 /** |
|
22 * DrmAesCrypto - utility for encrypting drm content using AES128-CBC |
|
23 * @note for DRM engine internal use only |
|
24 * |
|
25 * @lib drmcrypto.dll |
|
26 * @since S60 v5.0 |
|
27 */ |
|
28 NONSHARABLE_CLASS( DrmAesCrypto ) |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * DrmAesEncryptL |
|
33 * |
|
34 * @since S60 v5.0 |
|
35 * @param aKey 16 bytes long encryption key |
|
36 * @param aIV initial vector used in enctypting |
|
37 * (becomes 1st block of encrypted data) |
|
38 * @param aAddPadding padding addition flag (RFC 2630 padding added if true) |
|
39 * @param aData data to be encrypted |
|
40 * @return encrypted (and possibly padded) data |
|
41 */ |
|
42 IMPORT_C static HBufC8* DrmAesEncryptL( |
|
43 const TDesC8& aKey, |
|
44 const TDesC8& aIV, |
|
45 const TBool aAddPadding, |
|
46 const TDesC8& aData ); |
|
47 |
|
48 }; |
|
49 |
|
50 #endif // DRMAESCRYPTO_H |