Update the dasync engine to add a pipeline cipher

Implement aes128-cbc as a pipeline capable cipher in the dasync engine.
As dasync is just a dummy engine, it actually just performs the parallel
encrypts/decrypts in serial.

Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
Matt Caswell
2015-09-22 11:11:24 +01:00
parent 4e3925227a
commit 98ee75439d
7 changed files with 273 additions and 69 deletions

View File

@@ -60,7 +60,8 @@ extern "C" {
#endif
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
/*
* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run.
*/
static void ERR_load_DASYNC_strings(void);
@@ -71,19 +72,20 @@ static void ERR_DASYNC_error(int function, int reason, char *file, int line);
/* Error codes for the DASYNC functions. */
/* Function codes. */
#define DASYNC_F_BIND_DASYNC 107
#define DASYNC_F_CIPHER_AES_128_CBC_CODE 100
#define DASYNC_F_DASYNC_BN_MOD_EXP 101
#define DASYNC_F_DASYNC_MOD_EXP 102
#define DASYNC_F_DASYNC_PRIVATE_DECRYPT 103
#define DASYNC_F_DASYNC_PRIVATE_ENCRYPT 104
#define DASYNC_F_DASYNC_PUBLIC_DECRYPT 105
#define DASYNC_F_DASYNC_PUBLIC_ENCRYPT 106
# define DASYNC_F_BIND_DASYNC 107
# define DASYNC_F_CIPHER_AES_128_CBC_CODE 100
# define DASYNC_F_DASYNC_AES128_INIT_KEY 108
# define DASYNC_F_DASYNC_BN_MOD_EXP 101
# define DASYNC_F_DASYNC_MOD_EXP 102
# define DASYNC_F_DASYNC_PRIVATE_DECRYPT 103
# define DASYNC_F_DASYNC_PRIVATE_ENCRYPT 104
# define DASYNC_F_DASYNC_PUBLIC_DECRYPT 105
# define DASYNC_F_DASYNC_PUBLIC_ENCRYPT 106
/* Reason codes. */
#define DASYNC_R_INIT_FAILED 102
#define DASYNC_R_LENGTH_NOT_BLOCK_ALIGNED 100
#define DASYNC_R_UNKNOWN_FAULT 101
# define DASYNC_R_INIT_FAILED 102
# define DASYNC_R_LENGTH_NOT_BLOCK_ALIGNED 100
# define DASYNC_R_UNKNOWN_FAULT 101
#ifdef __cplusplus
}