krb5_random_confounder()--Create Random Confounder


  Syntax
 #include <krb5.h>

 krb5_error_code krb5_random_confounder(
     krb5_context       context,
     int        buffer_size,
     krb5_pointer     output_buffer);    
  Service Program Name: QSYS/QKRBGSS

  Default Public Authority: *USE

  Threadsafe: Yes

The krb5_random_confounder() function creates a random value that can be used as a confounder when encrypting data. A confounder is used to initialize the encryption block chaining value so the encrypted result is different each time a data value is encrypted, even when the data value and encryption key are not changed.


Authorities

No authorities are required.


Parameters

context  (Input)
The Kerberos context.

buffer_size  (Input)
The size of the output buffer.

output_buffer  (Output)
The buffer to receive the confounder.

Return Value

If no errors occur, the return value is 0. Otherwise, a Kerberos error code is returned.


Error Messages

Message ID Error Message Text
CPE3418 E Possible APAR condition or hardware failure.



API introduced: V5R1

[ Back to top | Security APIs | UNIX-Type APIs | APIs by category ]