Encrypts one or more blocks of plaintext using the given DES context.
#include "hudes.h"
int hu_DESEncrypt(sb_Context desContext, size_t length, const unsigned char *plaintext, unsigned char *ciphertext, sb_GlobalCtx sbCtx)
BlackBerry 10.0.0
A DES context object.
The length (in bytes) of plaintext. The acceptable values are multiples of SB_DES_BLOCK_SIZE.
The plaintext buffer.
The ciphertext buffer.
A global context.
The plaintext and ciphertext buffers must be the same length, and may overlap in memory subject to the constraints described in the API Reference section on overlapping buffers. This function can be called repeatedly to encrypt more blocks of plaintext.
The desContext object is NULL.
The desContext object is invalid.
The plaintext buffer is NULL.
The length of the plaintext buffer is invalid.
The ciphertext buffer is NULL.
Success.