diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-08-27 11:22:42 +0200 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2019-09-01 06:06:48 +0200 |
commit | 2f9789f7e7e8f17da32e1cadbbc3c398f99f2d23 (patch) | |
tree | 02e98a74fef7ee76a6542824ed4a80c899be78e9 /providers/common/ciphers | |
parent | Fix pkeyutl -verifyrecover (diff) | |
download | openssl-2f9789f7e7e8f17da32e1cadbbc3c398f99f2d23.tar.xz openssl-2f9789f7e7e8f17da32e1cadbbc3c398f99f2d23.zip |
Fix platform specific issues with provider ciphers
s390_aes naming issues with ofb128 and cfb128
Solaris missing include for camellia.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9702)
Diffstat (limited to 'providers/common/ciphers')
-rw-r--r-- | providers/common/ciphers/cipher_aes_hw_s390x.inc | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/providers/common/ciphers/cipher_aes_hw_s390x.inc b/providers/common/ciphers/cipher_aes_hw_s390x.inc index 1a8ee07c87..cefaa1c583 100644 --- a/providers/common/ciphers/cipher_aes_hw_s390x.inc +++ b/providers/common/ciphers/cipher_aes_hw_s390x.inc @@ -21,6 +21,13 @@ #define s390x_aes_cfb1_cipher_hw cipher_hw_generic_cfb1 #define s390x_aes_ctr_cipher_hw cipher_hw_generic_ctr +#define S390X_aes_128_ofb128_CAPABLE S390X_aes_128_ofb_CAPABLE +#define S390X_aes_192_ofb128_CAPABLE S390X_aes_192_ofb_CAPABLE +#define S390X_aes_256_ofb128_CAPABLE S390X_aes_256_ofb_CAPABLE +#define S390X_aes_128_cfb128_CAPABLE S390X_aes_128_cfb_CAPABLE +#define S390X_aes_192_cfb128_CAPABLE S390X_aes_192_cfb_CAPABLE +#define S390X_aes_256_cfb128_CAPABLE S390X_aes_256_cfb_CAPABLE + static int s390x_aes_ecb_initkey(PROV_CIPHER_CTX *dat, const unsigned char *key, size_t keylen) { @@ -43,8 +50,8 @@ static int s390x_aes_ecb_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out, return 1; } -static int s390x_aes_ofb_initkey(PROV_CIPHER_CTX *dat, - const unsigned char *key, size_t keylen) +static int s390x_aes_ofb128_initkey(PROV_CIPHER_CTX *dat, + const unsigned char *key, size_t keylen) { PROV_AES_CTX *adat = (PROV_AES_CTX *)dat; @@ -55,8 +62,8 @@ static int s390x_aes_ofb_initkey(PROV_CIPHER_CTX *dat, return 1; } -static int s390x_aes_ofb_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out, - const unsigned char *in, size_t len) +static int s390x_aes_ofb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out, + const unsigned char *in, size_t len) { PROV_AES_CTX *adat = (PROV_AES_CTX *)dat; int n = adat->plat.s390x.res; @@ -96,8 +103,8 @@ static int s390x_aes_ofb_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out, return 1; } -static int s390x_aes_cfb_initkey(PROV_CIPHER_CTX *dat, - const unsigned char *key, size_t keylen) +static int s390x_aes_cfb128_initkey(PROV_CIPHER_CTX *dat, + const unsigned char *key, size_t keylen) { PROV_AES_CTX *adat = (PROV_AES_CTX *)dat; @@ -112,8 +119,8 @@ static int s390x_aes_cfb_initkey(PROV_CIPHER_CTX *dat, return 1; } -static int s390x_aes_cfb_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out, - const unsigned char *in, size_t len) +static int s390x_aes_cfb128_cipher_hw(PROV_CIPHER_CTX *dat, unsigned char *out, + const unsigned char *in, size_t len) { PROV_AES_CTX *adat = (PROV_AES_CTX *)dat; int n = adat->plat.s390x.res; |