RSA BSAFE® Crypto-C Micro Edition for Samsung MFP SW Platform (VxWorks) Security Policy Version 3.0.0.1 December 3, 2012 Strong encryption technology for C/C++ developers © 2008 RSA Security Inc. All rights reserved. Published December 3, 2012 Contact Information See our Web sites for regional Customer Support telephone and fax numbers. RSA Security Inc. RSA Security Ireland Limited Trademarks ACE/Agent, ACE/Server, Because Knowledge is Security, BSAFE, ClearTrust, Confidence Inspired, e-Titlement, IntelliAccess, Keon, RC2, RC4, RC5, RSA, the RSA logo, RSA Secured, the RSA Secured logo, RSA Security, SecurCare, SecurID, SecurWorld, Smart Rules, The Most Trusted Name in e-Security, Transaction Authority, and Virtual Business Units are either registered trademarks or trademarks of RSA Security Inc. in the United States and/or other countries. EMC is a registered trademark of EMC Corporation. All other goods and/or services mentioned are trademarks of their respective companies. License Agreement This software and the associated documentation are proprietary and confidential to RSA Security Inc., are furnished under license and may be used and copied only in accordance with the terms of such license and with the inclusion of the copyright below. This software and any copies thereof may not be provided or otherwise made available to any other person. Neither this software nor any copies thereof may be provided to or otherwise made available to any third party. No title to or ownership of the software or any intellectual property rights thereto is hereby transferred. Any unauthorized use or reproduction of this software may be subject to civil and/or criminal liability. This software is subject to change without notice and should not be construed as a commitment by RSA Security Inc. Note on Encryption Technologies This product may contain encryption technology. Many countries prohibit or restrict the use, import or export of encryption technologies and current use, import and export regulations should be followed when exporting this product. Distribution This document may be freely reproduced and distributed whole and intact including this Copyright Notice. RSA Security Inc. Notice The RC5® Block Encryption Algorithm With Data-Dependent Rotations is protected by U.S. Patent #5,724,428 and #5,835,600. Efficient field multiplication in a normal basis is protected by U.S. Patent #6,389,442. Compaq MultiPrime™ technology is protected by U.S. Patent #5,848,159 and is the subject of patent applications in other countries. Other trademarks in this document are held by their respective owners. Table of Contents iii Table of Contents 1 Introduction .......................................................................................................................................................4 1.1 References..................................................................................................................................................4 1.2 Document Organization..........................................................................................................................4 2 Crypto-C ME Cryptographic Toolkit ............................................................................................................5 2.1 Cryptographic Module............................................................................................................................5 2.2 Crypto-C ME Interfaces...........................................................................................................................6 2.3 Roles and Services....................................................................................................................................7 2.3.1 Officer Role...................................................................................................................................7 2.3.2 User Role.......................................................................................................................................7 2.4 Cryptographic Key Management...........................................................................................................7 2.4.1 Key Generation ............................................................................................................................7 2.4.2 Key Storage...................................................................................................................................8 2.4.3 Key Access....................................................................................................................................9 2.4.4 Key Protection/Zeroization ........................................................................................................9 2.5 Cryptographic Algorithms....................................................................................................................10 2.6 Self-tests...................................................................................................................................................11 2.6.1 Power-up Self-test......................................................................................................................11 2.6.2 Conditional Self-tests ................................................................................................................12 2.6.3 Critical Functions Tests.............................................................................................................12 2.6.4 Mitigation of Other Attacks......................................................................................................12 3 Secure Operation of Crypto-C ME...............................................................................................................13 3.1 Crypto Officer and User Guidance......................................................................................................13 3.2 Roles.........................................................................................................................................................13 3.3 Modes of Operation ...............................................................................................................................14 3.4 Operating Crypto-C ME........................................................................................................................16 3.5 Startup Self-tests.....................................................................................................................................17 3.6 Random Number Generator.................................................................................................................17 3.6.1 PRNG Seeding............................................................................................................................17 4 Services .............................................................................................................................................................18 5 Acronyms and Definitions............................................................................................................................19 6 Contacting RSA ...............................................................................................................................................22 6.1 Support and Service...............................................................................................................................22 6.2 Feedback..................................................................................................................................................22 Introduction 4 1 Introduction This is a non-proprietary RSA cryptographic module security policy. This security policy describes how RSA BSAFE® Crypto-C Micro Edition for Samsung MFP SW Platform (VxWorks) meets the security requirements of FIPS 140-2, and how to securely operate it in a FIPS 140-2-compliant manner. This policy is prepared as part of the FIPS 140-2 Level 1 validation of Crypto-C ME. FIPS 140-2 (Federal Information Processing Standards Publication 140-2 – Security Requirements for Cryptographic Modules) details the United States Government requirements for cryptographic modules. More information about the FIPS 140-2 standard and validation program is available on the NIST Web site at http://csrc.nist.gov/groups/STM/cmvp/index.html. 1.1 References This document deals only with the operations and capabilities of Crypto-C ME in the technical terms of a FIPS 140-2 cryptographic module security policy. More information about Crypto-C ME and the entire RSA BSAFE product line is available from the following resources:  Information on the full line of RSA products and services is available at http://www.rsa.com/.  RSA BSAFE product overviews are available at http://www.rsa.com/node.asp?id=1204.  Answers to technical or sales related questions are available at http://www.rsasecurity.com./node.asp?id=1067. 1.2 Document Organization This document explains the Crypto-C ME FIPS 140-2 relevant features and functionality. This document consists of the following sections:  This section, "Introduction", provides an overview and introduction to the Security Policy.  "Crypto-C ME Cryptographic Toolkit" on page 5 describes Crypto-C ME and how it meets FIPS 140- 2 requirements.  "Secure Operation of Crypto-C ME" on page 13 specifically addresses the required configuration for the FIPS 140-2 mode of operation.  "Services" on page 18 lists all of the functions of Crypto-C ME.  "Acronyms and Definitions" on page 19 lists the acronyms and definitions used in this document. Crypto-C ME Cryptographic Toolkit 5 2 Crypto-C ME Cryptographic Toolkit The Crypto-C ME software development toolkit enables developers to incorporate cryptographic technologies into applications. Crypto-C ME security software is designed to help protect sensitive data as it is stored, using strong encryption techniques that ease integration with existing data models. Using the capabilities of Crypto-C ME software in applications helps provide a persistent level of protection for data, lessening the risk of internal, as well as external, compromise. The features of Crypto-C ME include the ability to optimize code for different processors, and specific speed or size requirements. Assembly-level optimizations on key processors mean that Crypto-C ME algorithms can be used at increased speeds on many platforms. Crypto-C ME offers a full set of cryptographic algorithms including public-key (asymmetric) algorithms, symmetric (secret key) block and stream ciphers, message digests, message authentication, and Pseudo Random Number Generator (PRNG) support. Developers can implement the full suite of algorithms through a single Application Programming Interface (API) or select a specific set of algorithms to reduce code size or meet performance requirements. Note: When operating in a FIPS 140-2-approved manner, the set of algorithm implementations is not customizable. 2.1 Cryptographic Module Crypto-C ME is classified as a multi-chip standalone cryptographic module for the purposes of FIPS 140-2. As such, Crypto-C ME must be tested on a specific operating system and computer platform. The cryptographic boundary includes Crypto-C ME running on selected platforms. Crypto-C ME was validated as meeting all FIPS 140-2 Level 1 security requirements, including cryptographic key management and operating system requirements. Crypto-C ME is packaged as a set of dynamically loaded modules or shared library files that contain the module’s entire executable code. The Crypto-C ME toolkit relies on the physical security provided by the host PC in which it runs. For FIPS 140-2 validation, Crypto-C ME is tested on the following platforms:  VxWorks, ARM9, built with Wind River Workbench 3.0. Note: Compliance is maintained on all of the above platforms for which the binary executable remains unchanged. Crypto-C ME Cryptographic Toolkit 6 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy 2.2 Crypto-C ME Interfaces Crypto-C ME is evaluated as a multi-chip, standalone module. The physical cryptographic boundary of the module is the case of the general-purpose computer or mobile device, which encloses the hardware running the module. The physical interfaces for Crypto-C ME consist of the keyboard, mouse, monitor, CD-ROM drive, floppy drive, serial ports, USB ports, COM ports, and network adapter(s). The logical boundary of the cryptographic module is the binary image (maser dynamic shared library) and the signature data that make up the module. The underlying logical interface to Crypto-C ME is the API, documented in the RSA BSAFE Crypto-C ME 3.0 Developer’s Guide. Crypto-C ME provides for Control Input through the API calls. Data Input and Output are provided in the variables passed with the API calls, and Status Output is provided through the returns and error codes that are documented for each call. This is illustrated in the following diagram. Figure 1. Crypto-C ME Logical Interfaces Operating System (OS) Hardware Signature Crypto-C ME Binary Image Provides services for toolkit Data In Data Out Control In Status Out Application Run on OS MFP Software – Runs on Hardware Provides service for OS Logical Boundary Physical Boundary Crypto-C ME Cryptographic Toolkit 7 2.3 Roles and Services Crypto-C ME meets all FIPS 140-2 Level 1 requirements for roles and services, implementing both a User (User) role and Officer (CO) role. As allowed by FIPS 140-2, Crypto-C ME does not support user identification or authentication for these roles. Only one role can be active at a time and Crypto-C ME does not allow concurrent operators. The following table describes the services accessible by the two roles. Table 1. Crypto-C ME Roles and Services Role Services Officer The Officer has access to a superset of the services that are available to the User. The Officer role can also invoke the full set of self-tests inside the module. User The User can perform general security functions, as described in the RSA BSAFE Crypto-C Micro Edition Developer's Guide. The User can also call specific FIPS 140-2 module functions as defined in the Developer's Guide. 2.3.1 Officer Role An operator assuming the Officer role can call any Crypto-C ME function. The complete list of the functionality available to the Officer is outlined in "Services" on page 18. 2.3.2 User Role An operator assuming the User role can use the entire Crypto-C ME API except for R_FIPS140_self_test_full(), which is reserved for the Officer. The complete list of Crypto-C ME functions is outlined in "Services" on page 18. 2.4 Cryptographic Key Management Cryptographic key management is concerned with generating and storing keys, managing access to keys, protecting keys during use, and zeroizing keys when they are not longer required. 2.4.1 Key Generation Crypto-C ME supports generation of DSA (Cert. #573), RSA (Cert. #918), Diffie-Hellman (DH) and Elliptic Curve Cryptography (ECC) (Cert. #252) public and private keys. Also, Crypto-C ME uses a FIPS 186-2-compliant random number generator (Cert. #962) as well as a Dual Elliptic Curve Deterministic Random Bit Generator (Dual ECDRBG) (Cert. #143) and HMAC-DRBG (Cert. #143) in the generation asymmetric and symmetric keys used in algorithms such as AES (Cert. #1826), Triple DES (Cert. #1179), RSA (Cert. #918), DSA (Cert. #573), Diffie-Hellman, ECC (Cert. #252), and HMAC (Cert. #1080). Crypto-C ME Cryptographic Toolkit 8 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy 2.4.2 Key Storage Crypto-C ME does not provide long-term cryptographic key storage. If a user chooses to store keys, the user is responsible for storing keys exported from the module. The following table lists all keys and critical security parameters (CSPs) in the module and where they are stored. Table 2. Key Storage Key or CSP Storage Hardcoded DSA public key Persistent storage embedded in the module binary (encrypted). Hardcoded AES key Persistent storage embedded in the module binary (plaintext). AES keys Volatile memory only (plaintext). Triple-DES keys Volatile memory only (plaintext). HMAC with SHA-1 and SHA-2 keys (SHA-224, SHA-256, SHA-384, SHA-512) Volatile memory only (plaintext). Diffie-Hellman public/private keys Volatile memory only (plaintext). ECC public/private keys Volatile memory only (plaintext). RSA public/private keys Volatile memory only (plaintext). DSA public/private keys Volatile memory only (plaintext). FIPS 186-2 seed Volatile memory only (plaintext). FIPS 186-2 key Volatile memory only (plaintext). EC DRBG entropy Volatile memory only (plaintext). EC DRBG S value Volatile memory only (plaintext). EC DRBG init_seed Volatile memory only (plaintext). HMAC DRBG entropy Volatile memory only (plaintext). HMAC DRBG V value Volatile memory only (plaintext). HMAC DRBG key Volatile memory only (plaintext). HMAC DRBG init_seed Volatile memory only (plaintext). Crypto-C ME Cryptographic Toolkit 9 2.4.3 Key Access An authorized operator of the module has access to all key data created during Crypto-C ME operation. Note: The User and Officer roles have equal and complete access to all keys. The following table lists the different services provided by the toolkit with the type of access to keys or CSPs. Table 3. Key and CSP Access Service Key or CSP Type of Access Encryption and decryption Symmetric keys (AES, Triple-DES) Read/Execute Digital signature and verification Asymmetric keys (DSA, RSA, ECDSA) Read/Execute Hashing None N/A MAC HMAC keys Read/Execute Random number generation FIPS 186-2 seed and key HMAC DRBG entropy, V, key and init_seed EC DRBG entropy, S and init_seed Read/Write/Execute Key generation Symmetric keys (AES, Triple-DES) Asymmetric keys (DSA, EC DSA, RSA, DH, ECDH) MAC keys (HMAC) Write Key establishment primitives Asymmetric keys (RSA, DH, ECDH) Read/Execute Self-test (Crypto Officer service) Hardcoded keys (DSA and AES) Read/Execute Show status None N/A Zeroization All Read/Write 2.4.4 Key Protection/Zeroization All key data resides in internally allocated data structures and can be output only using the Crypto-C ME API. The operating system protects memory and process space from unauthorized access. The operator should follow the steps outlined in the RSA BSAFE Crypto-C Micro Edition Developer’s Guide to ensure sensitive data is protected by zeroizing the data from memory when it is no longer needed. Crypto-C ME Cryptographic Toolkit 10 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy 2.5 Cryptographic Algorithms Crypto-C ME supports a wide variety of cryptographic algorithms. To achieve compliance with the FIPS 140-2 standard, only FIPS 140-2-approved or allowed algorithms can be used in an approved mode of operation. The following table lists the FIPS 140-2-approved and allowed algorithms supported by Crypto-C ME. Table 4. Crypto-C ME FIPS 140-2-approved and allowed Algorithms Algorithm Validation Certificate AES ECB, CBC, CFB, OFB, CTR, CCM, GCM and GMAC (all modes 128, 192, and 256-bit key sizes). #1826 Triple-DES ECB, CBC, CFB (64-bit), and OFB. #1179 Diffie-Hellman (1024-bit, 2048-bit, and 4096-bit keys; shared secret provides between 80 bits and 150 bits of encryption strength); EC Diffie-Hellman (P192, P224, P256, P384, P521, B163, B233, B283, B409, B571, K163, K233, K283, K409, K571; shared secret provides between 80 bits and 256 bits of encryption strength). Allowed in FIPS 140-2 mode DSA. #573 ECDSA. #252 RNG [FIPS 186-2 Pseudo Random Number Generator (PRNG) – Change Notice 1, with and without the mod q step] #962 DRBG [Dual ECDRBG and HMAC-DRBG] #143 RSA X9.31, PKCS#1 V.1.5, and PKCS#1 V.2.1 (SHA256 – PSS). #918 RSA (key wrapping; key establishment methodology provides between 80 and 150 bits of encryption strength) Allowed in FIPS 140-2 mode for key transport SHS [SHA-1, 224, 256, 384, and 512] #1605 HMAC [HMAC-SHA1, SHA224, SHA256, SHA384, and SHA512] #1080 The following algorithms are not FIPS 140-2-approved:  DES  MD2  MD5  HMAC MD5  DES40  RC2  RC4 Crypto-C ME Cryptographic Toolkit 11  RC5  ECAES  ECIES  PBKDF1 SHA-1  PBKDF2 HMAC SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512  RSA PKCS#1 V.2.0 (OAEP)  Entropy RNG  OTP RNG. For more information about using Crypto-C ME in a FIPS 140-2-compliant manner, see "Secure Operation of Crypto-C ME" on page 13. 2.6 Self-tests Crypto-C ME performs a number of power-up and conditional self-tests to ensure proper operation. If the power-up self-test fails, the toolkit is disabled and the operation fails. The toolkit can only leave the disabled state by reloading the FIPS 140-2 module. If the conditional self-test fails, the operation fails but the toolkit is not disabled. 2.6.1 Power-up Self-test Crypto-C ME implements the following power-up self-tests:  AES, AES CCM, AES GCM, and AES GMAC Known Answer Tests (KATs)  DES and Triple DES KATs  SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 KATs  HMAC SHA-1, HMAC SHA-224, HMAC SHA-256, HMAC SHA-384, and HMAC SHA-512 KATs  RSA sign/verify test  DSA sign/verify test  DH and EC-DH conditional test  ECDSA sign/verify test  PRNG (FIPS 186-2, Dual ECDRBG, and HMAC–DRBG) KATs  Software integrity test. Power-up self-tests are executed automatically when Crypto-C ME is first called. Secure Operation of Crypto-C ME 12 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy 2.6.2 Conditional Self-tests Crypto-C ME performs two conditional self-tests:  A pair-wise consistency test each time Crypto-C ME generates a DSA, RSA, or EC public/private key pair.  A Continuous Random Number Generation (CRNG) test each time the toolkit produces random data, as per the FIPS 186‐2 standard. The CRNG test is performed on all approved and non‐approved RNGs. 2.6.3 Critical Functions Tests Depending on operating mode, Crypto-C ME performs the following known answer tests:  In R_FIPS140_MODE_FIPS140_SSL mode, Crypto-C ME performs a known answer test for MD5 and HMAC-MD5.  In R_FIPS140_MODE_FIPS140_ECC mode, Crypto-C ME performs a known answer test for ECAES and ECIES.  In R_FIPS140_MODE_SSL_ECC mode, a known answer test is performed for MD5, HMAC-MD5, ECAES, and ECIES. 2.6.4 Mitigation of Other Attacks RSA key operations implement blinding, a reversible way of modifying the input data, so as to make the RSA operation immune to timing attacks. Blinding has no effect on the algorithm other than to mitigate attacks on the algorithm. Blinding is implemented through blinding modes, and the following options are available:  Blinding mode off.  Blinding mode with no update, where the blinding value is constant for each operation.  Blinding mode with full update, where a new blinding value is used for each operation. Secure Operation of Crypto-C ME 13 3 Secure Operation of Crypto-C ME This section provides an overview of how to securely operate Crypto-C ME to be in compliance with the FIPS 140-2 standards. 3.1 Crypto Officer and User Guidance The Crypto Officer and User must only use algorithms approved for use in a FIPS 140 mode of operation, as listed in Table 4 Crypto-C ME FIPS 140-2-approved and allowed Algorithms on page 10. The requirements for using the approved algorithms in a FIPS 140 mode of operation are as follows:  The bit length for a DSA key pair must be 1024 bits .  Bit lengths for an RSA key pair must be between 1024 and 4096 bits in multiples of 512.  Bit lengths for an HMAC key must be between 80 and 4096 bits.  EC key pairs must have named curve domain parameters from the set of NIST-recommended named curves (P192, P224, P256, P384, P521, B163, B233, B283, B409, B571, K163, K233, K283, K409, K571). The module limits possible curves for Dual EC DRBG to P256, P384, and P521 in accordance with SP 800-90.  When using RSA for key wrapping, the strength of the methodology is between 80 and 150 bits of security.  The Diffie-Hellman shared secret provides between 80 and 150 bits of encryption strength.  EC Diffie-Hellman primitives must use curve domain parameters from the set of NIST- recommended named curves. Using NIST-recommended curves, the computed Diffie-Hellman shared secret provides between 80 and 256 bits of encryption strength.  When using an approved RNG to generate keys, the requested security strength for the RNG must be at least as great as the security strength of the key being generated. 3.2 Roles If a user of Crypto-C ME needs to operate the toolkit in different roles, then the user must ensure that all instantiated cryptographic objects are destroyed before changing from the Crypto User role to the Crypto Officer role, or unexpected results could occur. Secure Operation of Crypto-C ME 14 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy The following table lists the roles a user can operate in. Table 5. Crypto-C ME Roles Role Description R_FIPS140_ROLE_OFFICER An operator assuming the Crypto Officer role can call any Crypto-C ME function. The complete list of the functionality available to the Crypto Officer is outlined in "Services" on page 18. R_FIPS140_ROLE_USER An operator assuming the Crypto User role can use the entire Crypto-C ME API except for R_FIPS140_self_test_full(), which is reserved for the Crypto Officer. The complete list of Crypto-C ME functions is outlined in "Services" on page 18. 3.3 Modes of Operation The following table lists and describes the available modes of operation. Table 6. Crypto-C ME Modes of Operation Mode Description R_FIPS140_MODE_FIPS140 FIPS 140-2-approved. Provides the following cryptographic algorithms: AES ECB, CBC, CFB, OFB, CTR, CCM, GCM and GMAC (all modes 128, 192, and 256-bit key sizes); Triple-DES ECB, CBC, CFB (64-bit), and OFB; DSA; RNG [FIPS 186-2 Pseudo Random Number Generator (PRNG) – Change Notice 1, with and without the mod q step]; DRBG [HMAC-DRBG]; RSA X9.31, PKCS#1 V.1.5, and PKCS#1 V.2.1 (SHA256 – PSS); SHS [SHA-1, 224, 256, 384, and 512]; HMAC [HMAC-SHA1, SHA224, SHA256, SHA384, and SHA512]. This is the Crypto-C ME default mode on start up. Secure Operation of Crypto-C ME 15 Mode Description R_FIPS140_MODE_FIPS140_SSL FIPS 140-2-approved if used by TLS protocol implementations. Provides the same algorithms as R_FIPS140_MODE_FIPS140, plus the following: MD5 message digest; RSA (key wrapping; key establishment methodology provides between 80 and 150 bits of encryption strength); Diffie-Hellman (1024-bit, 2048-bit, and 4096-bit keys; shared secret provides between 80 bits and 150 bits of encryption strength); EC Diffie- Hellman (P192, P224, P256, P384, P521, B163, B233, B283, B409, B571, K163, K233, K283, K409, K571; shared secret provides between 80 bits and 256 bits of encryption strength). This mode can be used in the context of the key establishment phase in the TLSv1 and TLSv1.1 protocol. For more information, see section 7.1 Acceptable Key Establishment Protocols in "Implementation Guidance for FIPS PUB 140-2 and the Cryptographic Module Validation Program". The implementation guidance disallows the use of the SSLv2 and SSLv3 versions. Cipher suites that include non-FIPS 140-2-approved algorithms are unavailable. This mode allows implementations of the TLS protocol to operate Crypto-C ME in a FIPS 140-2-compliant manner with the FIPS 186-2 PRNG as the default. R_FIPS140_MODE_FIPS140_ECC FIPS 140-2-approved. Provides the same algorithms as R_FIPS140_MODE_FIPS140, plus the following: ECDSA; DRBG [Dual ECDRBG] The random number generator in this mode is the Dual ECDRBG. R_FIPS140_MODE_FIPS140_SSL_ECC FIPS 140-2-approved if used by TLS protocol implementations. Provides the same algorithms as R_FIPS140_MODE_FIPS140_SSL, plus the following: ECDSA; DRBG [Dual ECDRBG] The random number generator in this mode is the Dual ECDRBG. The same restrictions with respect to protocol versions and cipher suites as in R_FIPS140_MODE_FIPS140_SSL apply. R_FIPS140_MODE_NON_FIPS140 Not FIPS 140-2-approved. Allows users to operate Crypto-C ME without any cryptographic algorithm restrictions. R_FIPS140_MODE_DISABLED Not FIPS 140-2-approved. Indicates that the FIPS140 library is disabled, usually due to an internal or caller's usage error. No future transition into other modes is permitted. In each mode of operation, the complete set of services, which are listed in this Security Policy, are available to both the Crypto Officer and User roles (with the exception of R_FIPS140_self_test_full(), which is always reserved for the Crypto Officer). Secure Operation of Crypto-C ME 16 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy Note: Cryptographic keys must not be shared between modes by the user. For example, a key generated in R_FIPS140_MODE_FIPS140 mode must not be shared with the module running in R_FIPS140_MODE_NON_FIPS140 mode. Preventing the access or sharing keys between modes mitigates the risk of untrusted handling of keys generated in an approved mode of operation. If a user of Crypto-C ME needs to operate the module in different modes then the user must ensure that all created cryptographic objects are freed before changing modes, or unexpected results could occur. Crypto-C ME does not provide long-term cryptographic key storage thus user is responsible for storing, exporting and importing keys into and from module. The cryptographic module does not enforce checking for storing or importing of objects. When operating in an approved mode of operation is it the responsibility of the user to ensure that handling of stored objects is performed in a manner such that the module mode is preserved. The user must free all the contexts before changing mode of operation. Sensitive information such as private key data or intermediate values stored within the objects in volatile memory is enforced to be zeroized when the resources are freed. The module does not persistently store user keys or CSPs. Thus keys/CSPs defined in an Approved mode of operation are not accessible when operating in a non- Approved mode. 3.4 Operating Crypto-C ME Crypto-C ME operates in R_FIPS140_MODE_FIPS140 by default if the Crypto-C ME library is initialized with the PRODUCT_DEFAULT_RESOURCE_LIST(). The current Crypto-C ME mode can be determined calling R_FIPS140_get_mode(). When changing the mode of operation to a FIPS-approved mode, the module must be re-initialized with the appropriate product resource list, (PRODUCT_DEFAULT_RESOURCE_LIST() or PRODUCT_FIPS140_SWITCH_RESOURCE_LIST() for R_FIPS140_MODE_FIPS140, or PRODUCT_FIPS140_SSL_SWITCH_RESOURCE_LIST() for R_FIPS140_MODE_FIPS140_SSL). To change the module to a non-FIPS-approved mode, call R_FIPS140_set_mode() with one of the information identifiers listed in Table 6 Crypto-C ME Modes of Operation on page 14. Note: R_FIPS140_set_mode() can only be used when changing to a non-FIPS-approved mode. After setting Crypto-C ME into a FIPS 140-2-approved mode, Crypto-C ME enforces that only the algorithms listed in Table 4 Crypto-C ME FIPS 140-2-approved and allowed Algorithms on page 10 are available to operators. To disable FIPS 140-2 mode, call R_FIPS140_set_mode() with the R_FIPS140_MODE_NON_FIPS140 information identifier. R_FIPS140_self_tests_full() is restricted to operation by the Crypto Officer. Secure Operation of Crypto-C ME 17 The user of Crypto-C ME links with the static library for their platform, which loads the Crypto-C ME shared or dynamic link master and provider libraries at runtime. For more information, see "FIPS 140-2 Library and Modes of Operation" in the RSA BSAFE Crypto-C Micro Edition Developer's Guide. The current Crypto-C ME role can be determined calling R_FIPS140_get_role(). The role can be changed by calling R_FIPS140_set_role() with one of the information identifiers listed in Table 5 Crypto-C ME Roles on page 14. 3.5 Startup Self-tests The module always instantinates in R_FIPS140_MODE_FIPS140 approved mode of operation. The power-up self-tests are called automatically when the module is started up. The power-up self-tests are not executed when switching between modes. 3.6 Random Number Generator In FIPS 140‐2 modes, Crypto-C ME provides a default RNG. For R_FIPS140_MODE_FIPS140 and R_FIPS140_MODE_FIPS140_SSL, Crypto-C ME provides a FIPS 186-2 PRNG (Cert. #962) for all operations that require the generation of random numbers. For R_FIPS140_MODE_FIPS140_ECC and R_FIPS140_MODE_FIPS140_SSL_ECC, Crypto-C ME implements a Dual ECDRBG (Cert. #143) internally. In all modes, users can choose to use another approved RNG other than the default approved RNG, including the FIPS 186‐2 PRNG (with or without mod q) (Cert. #962), Dual ECDRBG (Cert. #143), or HMAC DRBG (Cert. #143) when creating a RNG object and setting this object against the operation requiring random number generation (for example, key generation). However, when DSA is used, the RNG used internally is always the FIPS 186-2 Change Notice 1 Option 1 with mod q PRNG (Cert. #962). It is not possible to choose a non-approved RNG in an Approved mode of operation. This module also includes a non-approved Entropy RNG that is used to generate seed material for the approved PRNGs; and a non-approved OTP RNG that is not a general purpose random number generator and is included for testing purposes. 3.6.1 PRNG Seeding RSA BSAFE® Crypto-C Micro Edition for Samsung MFP SW Platform (VxWorks) implements deterministic random number generators that can be called to generate random data. The quality of the random data output from these RNGs depends on the quality of the supplied seeding (entropy). Crypto- C ME provides internal entropy collection (for example, from high precision timers) where ever possible, but it is strongly recommended to collect entropy from external sources. This is particularly critical if developing on embedded platforms where there are only limited internal entropy sources available. For more information on seeding PRNGs, see "Randomness Recommendations for Security" in RFC 1750. Services 18 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy Setting the R_CR_INFO_ID_RAND_ENTROPY_FUNC identifier specifies that additional entropy be available. R_CR_INFO_ID_RAND_ENTROPY_FUNC is set against the R_CR object, which encapsulates the random number generator, and takes a callback function that the random number generator then uses to gather additional entropy if needed. For more information on R_CR_INFO_ID_RAND_ENTROPY_FUNC, see the RSA BSAFE Crypto-C Micro Edition Developer's Guide. 4 Services The following is the list of services provided by Crypto-C ME. Table 7. Services Service Description Input Output Encryption Used to encrypt data using symmetric- key algorithms API call parameters, key, ciphertext Status, ciphertext Decryption Used to decrypt data using symmetric- key algorithms API call parameters, key, ciphertext Status, plaintext Digital signature generation Used to generate digital signatures using asymmetric key algorithms API call parameters, key, message Status, signature Digital signature verification Used to verify digital signatures using asymmetric key algorithms API call parameters, key, signature, message Status Hashing Used to generate and verify digests using hash algorithms API call parameters, message Status, hash MAC Used to generate or verify data integrity with HMAC algorithms API call parameters, key, message Status, hash Random number generation Used to generate random data API call parameters Status, random bits Key generation Symmetric, asymmetric and MAC keys generation API call parameters Status, key, keypair Key establishment primitives Key wrapping and key agreement functionality API call parameters, key Status, key Self-test (Crypto Officer service) Perform self-tests None Status Show status Functions that provide module status information API call parameters Status Zeroization Used to destroy CSPs API call parameters, all CSPs Status Acronyms and Definitions 19 Utility Miscellaneous utility functionality API call parameters Status When the module in a not-Approved mode the services are not approved against FIPS 140-2 standard and can perform not-Approved security algorithms and functions. In Approved mode of operation the services provide only FIPS 140-2 approved and allowed security algorithms and functions. 5 Acronyms and Definitions The following table lists and describes the acronyms and definitions used throughout this document. Table 8. Acronyms and Definitions Term Definition AES Advanced Encryption Standard. A fast block cipher with a 128-bit block, and keys of lengths 128, 192, and 256 bits. Replaces DES as the US symmetric encryption standard. API Application Programming Interface. Attack Either a successful or unsuccessful attempt at breaking part or all of a cryptosystem. Various attack types include an algebraic attack, birthday attack, brute force attack, chosen ciphertext attack, chosen plaintext attack, differential cryptanalysis, known plaintext attack, linear cryptanalysis, and middleperson attack. CBC Cipher Block Chaining. A mode of encryption in which each ciphertext depends upon all previous ciphertexts. Changing the Initialization Vector (IV) alters the ciphertext produced by successive encryptions of an identical plaintext. CFB Cipher Feedback. A mode of encryption that produces a stream of ciphertext bits rather than a succession of blocks. In other respects, it has similar properties to the CBC mode of operation. CRNG Continuous Random Number Generation. CTR Counter mode of encryption that turns a block cipher into a stream cipher. It generates the next keystream block by encrypting successive values of a counter. DES Data Encryption Standard. A symmetric encryption algorithm with a 56-bit key. See also Triple DES. Diffie-Hellman The Diffie-Hellman asymmetric key exchange algorithm. There are many variants, but typically two entities exchange some public information (for example, public keys or random values) and combines them with their own private keys to generate a shared session key. As private keys are not transmitted, eavesdroppers are not privy to all of the information that composes the session key. DSA Digital Signature Algorithm. An asymmetric algorithm for creating digital signatures. DRBG Deterministic Random Bit Generator. Acronyms and Definitions 20 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy Term Definition Dual ECDRBG Dual Elliptic Curve Deterministic Random Bit Generator. EC Elliptic Curve. ECAES Elliptic Curve Asymmetric Encryption Scheme. ECB Electronic Codebook. A mode of encryption that divides a message into blocks and encrypts each block separately. ECC Elliptic Curve Cryptography. ECDH Elliptic Curve Diffie-Hellman. ECDHC Elliptic Curve Diffie-Hellman with Cofactor. Described NIST SP 800-56A, March 2007, Section 5.7.1.2 Elliptic Curve Cryptography Cofactor Diffie-Hellman (ECC CDH) Primitive. ECDSA Elliptic Curve Digital Signature Algorithm. ECIES Elliptic Curve Integrated Encryption Scheme. Encryption The transformation of plaintext into an apparently less readable form (called ciphertext) through a mathematical process. The ciphertext can be read by anyone who has the key that decrypts (undoes the encryption) the ciphertext. FIPS Federal Information Processing Standards. GCM Galois/Counter Mode. A mode of encryption that combines the Counter mode of encryption with Galois field multiplication for authentication. GMAC Galois Message Authentication Code. An authentication only variant of GCM. HMAC Keyed-Hashing for Message Authentication Code. HMAC DRBG HMAC Deterministic Random Bit Generator. IV Initialization Vector. Used as a seed value for an encryption operation. KAT Known Answer Test. Key A string of bits used in cryptography, allowing people to encrypt and decrypt data. Can be used to perform other mathematical operations as well. Given a cipher, a key determines the mapping of the plaintext to the ciphertext. The types of keys include distributed key, private key, public key, secret key, session key, shared key, subkey, symmetric key, and weak key. MD5 A secure hash algorithm created by Ron Rivest. MD5 hashes an arbitrary-length input into a 16- byte digest. NIST National Institute of Standards and Technology. A division of the US Department of Commerce (formerly known as the NBS) which produces security and cryptography-related standards. OFB Output Feedback. A mode of encryption in which the cipher is decoupled from its ciphertext. OS Operating System. Acronyms and Definitions 21 Term Definition PC Personal Computer. PDA Personal Digital Assistant. PPC PowerPC. privacy The state or quality of being secluded from the view or presence of others. private key The secret key in public key cryptography. Primarily used for decryption but also used for encryption with digital signatures. PRNG Pseudo-random Number Generator. RC2 Block cipher developed by Ron Rivest as an alternative to the DES. It has a block size of 64 bits and a variable key size. It is a legacy cipher and RC5 should be used in preference. RC4 Symmetric algorithm designed by Ron Rivest using variable length keys (usually 40-bit or 128-bit). RC5 Block cipher designed by Ron Rivest. It is parameterizable in its word size, key length, and number of rounds. Typical use involves a block size of 64 bits, a key size of 128 bits, and either 16 or 20 iterations of its round function. RNG Random Number Generator. RSA Public key (asymmetric) algorithm providing the ability to encrypt data and create and verify digital signatures. RSA stands for Rivest, Shamir, and Adleman, the developers of the RSA public key cryptosystem. SHA Secure Hash Algorithm. An algorithm that creates a unique hash value for each possible input. SHA takes an arbitrary input that is hashed into a 160-bit digest. SHA-1 A revision to SHA to correct a weakness. It produces 160-bit digests. SHA-1 takes an arbitrary input that is hashed into a 20-byte digest. SHA-2 The NIST-mandated successor to SHA-1, to complement the Advanced Encryption Standard. It is a family of hash algorithms (SHA-224, SHA-256, SHA-384 and SHA-512) that produce digests of 224, 256, 384 and 512 bits respectively. Triple DES A variant of DES that uses three 56-bit keys. Contacting RSA 22 RSA BSAFE Crypto-C ME 3.0.0.1 Security Policy 6 Contacting RSA The RSA Web site contains the latest news, security bulletins and information about coming events. The RSA BSAFE Web site contains product information. The RSA Laboratories Web site contains frequently asked questions. 6.1 Support and Service If you have any questions or require additional information, see RSA Support or RSA SecurCare Online. 6.2 Feedback We welcome your feedback on the documentation produced by RSA. Please e-mail us at userdocs@rsa.com.