equal
deleted
inserted
replaced
|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-1D60BB43-4FF8-5632-A597-0DF00234F93E" xml:lang="en"><title>Finding |
|
13 the cryptographic strength</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>The <xref href="GUID-975EEB8D-32AC-3182-B69C-CEE365505AC4.dita"><apiname>TCrypto</apiname></xref> class enables the user software to find |
|
15 out the strength of a Cryptography library. The example below illustrates |
|
16 how: </p> |
|
17 <codeblock id="GUID-130CBA8C-0629-52A9-BB96-20E50A4DE417" xml:space="preserve"> |
|
18 // 1. Get the cryptography strength. |
|
19 |
|
20 TCrypto::TStrength strength = TCrypto::Strength(); |
|
21 |
|
22 |
|
23 // 2. Determine the cryptographic strength. |
|
24 |
|
25 switch (strength) |
|
26 { |
|
27 case TCrypto::EWeak: |
|
28 // Using 56 bit key strength. |
|
29 break; |
|
30 case TCrypto::EStrong: |
|
31 // Using 512 bit key strength. |
|
32 break; |
|
33 default: |
|
34 } |
|
35 </codeblock> |
|
36 </conbody></concept> |