Cryptographic Variable Encipher (CSNBCVE)
This verb is used to encrypt plaintext using a CVARENC key to produce ciphertext using the Cipher Block Chaining (CBC) method.
The plaintext must be a multiple of eight bytes in length.
Specify the following parameters to encrypt plaintext:
- An operational DES key-token or a key label of an operational DES key-token record that contains the key to be used to encrypt the plaintext with the c-variable_encrypting_key_identifier parameter. The control vector in the key token must specify the CVARENC key-type.
- The length of the plaintext, which is the same as the length of the returned ciphertext, with the text_length parameter. The plaintext must be a multiple of eight bytes in length.
- The plaintext with the plain_text parameter.
- The initialization vector with the initialization_vector parameter.
- A variable for the returned ciphertext with the cipher_text parameter. The length of this field is specified with the text_length variable.
This verb does the following:
- Uses the CVARENC key and the initialization value with the CBC method to encrypt the plaintext.
- Returns the encrypted plaintext in the variable pointed to by the cipher_text parameter.
This verb does not need to document any Usage notes.