IBM 2 Computer Hardware User Manual


 
SET_Block_Compose CCA Release 2.54
SET_Block_Compose (CSNDSBC)
Platform/
Product
OS/2 AIX Win NT/
2000
OS/400
IBM 4758-2/23 X X X X
The SET_Block_Compose verb creates a SET-protocol RSA-OAEP block and DES
encrypts the data block in support of the SET protocols. Optionally the verb will
compute the SHA-1 hash of the supplied data block and include this in the OAEP
block.
DES_encrypted_block can be as many as eight bytes longer than the
data_to_encrypt due to padding. Ensure the DES_encrypted_block buffer is large
enough.
Restrictions
The data-block length variable is restricted to 32 megabytes.
The DES_key_block_length parameter must point to an integer valued to zero. The
DES_key_block parameter should be a null address pointer, or point to an unused
64-byte application variable.
The chaining_vector parameter must be a null address pointer, or point to an
unused 18-byte application variable. This parameter is included to support a
possible future extension to enable segmented data encryption.
Format
CSNDSBC
return_code Output Integer
reason_code Output Integer
exit_data_length In/Output Integer
exit_data In/Output String exit_data_length bytes
rule_array_count Input Integer one
rule_array Input String
array
rule_array_count * 8 bytes
block_contents_identifier Input String 1 byte
XData_string_length Input Integer
XData_string Input String XData_string_length bytes
data_to_encrypt_length In/Output Integer
data_to_encrypt Input String data_to_encrypt_length
bytes
data_to_hash_length Input Integer
data_to_hash Input String data_to_hash_length bytes
initialization_vector Input String 8 bytes
RSA_public_key_identifier_length Input Integer
RSA_public_key_identifier Input String RSA_public_key_identifier_length
bytes
DES_key_block_length In/Output Integer
DES_key_block In/Output String DES_key_block_length bytes
RSA-OAEP_block_length In/Output Integer
RSA-OAEP_block In/Output String RSA-OAEP_block_length
bytes
chaining_vector In/Output String 18 bytes
DES_encrypted_block Output String updated
data_to_encrypt_length
bytes
8-66 IBM 4758 CCA Basic Services, Release 2.54, February 2005