Week 23 contribution of PDK documentation content. See release notes for details. Fixes bugs Bug 2714, Bug 462.
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License
"Eclipse Public License v1.0" which accompanies this distribution,
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
Nokia Corporation - initial contribution.
Contributors:
-->
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-1D60BB43-4FF8-5632-A597-0DF00234F93E" xml:lang="en"><title>Finding
the cryptographic strength</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>The <xref href="GUID-975EEB8D-32AC-3182-B69C-CEE365505AC4.dita"><apiname>TCrypto</apiname></xref> class enables the user software to find
out the strength of a Cryptography library. The example below illustrates
how: </p>
<codeblock id="GUID-130CBA8C-0629-52A9-BB96-20E50A4DE417" xml:space="preserve">
// 1. Get the cryptography strength.
TCrypto::TStrength strength = TCrypto::Strength();
// 2. Determine the cryptographic strength.
switch (strength)
{
case TCrypto::EWeak:
// Using 56 bit key strength.
break;
case TCrypto::EStrong:
// Using 512 bit key strength.
break;
default:
}
</codeblock>
</conbody></concept>