128
Sun Crypto Accelerator 6000 Board User’s Guide for Version 1.1 • February 2013
■
Translate key (from the old MFK to the new MFK)
■
Retrieve KEK
Generate Key Function
fs_generate_key()
Applications generate different types of financial keys. DES keys are primarily used
for these functions. Along with the key type, key usage information is required to
limit when the key can be used. The following types of key uses are supported:
■
PIN encryption keys
■
Terminal PIN key (TPK)
■
Zone working key (ZWK)
■
PIN verification key (PVK)
■
Card verification key (CVK)
Once generated these keys are encrypted by the MFK and returned in the user-
provided buffer upon success.
The syntax for the
fs_generate_key()
function is as follows:
TABLE 5-9
lists the parameters for the
fs_generate_key()
function.
TABLE 5-10
lists the return values for the
fs_generate_key()
function.
fsReturn_t fs_generate_key(fsSessHandle_t handle, fsKeyType_t
type, fsKeyUsage_t usage, fsKey_t *key)
TABLE 5-9
fs_generate_key()
Function Parameters
Parameters
Description
handle
Session handle returned by
fs_session_open()
type
Key algorithm type: DES, DES2, DES3
usage
Intended financial key usage
key
Buffer for the generated key, encrypted with the MFK or a derivative
TABLE 5-10
fs_generate_key()
Function Return Values
Return Value
Description
fsOK
Key generated
Содержание Crypto Accelerator 6000 Board
Страница 1: ...Sun Crypto Accelerator 6000 Board Version 1 1 User s Guide Part No E39851 01 February 2013...
Страница 16: ...xvi Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 18: ...xviii Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 21: ...Preface xxi...
Страница 22: ...xxii Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 54: ...32 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 118: ...96 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 210: ...188 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 228: ...206 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 242: ...220 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 256: ...234 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 260: ...238 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...
Страница 266: ...244 Sun Crypto Accelerator 6000 Board User s Guide for Version 1 1 February 2013...