@@ -116,10 +116,6 @@ static int validate_data_size(struct cc_cipher_ctx *ctx_p,
116
116
case S_DIN_to_AES :
117
117
switch (ctx_p -> cipher_mode ) {
118
118
case DRV_CIPHER_XTS :
119
- if (size >= AES_BLOCK_SIZE &&
120
- IS_ALIGNED (size , AES_BLOCK_SIZE ))
121
- return 0 ;
122
- break ;
123
119
case DRV_CIPHER_CBC_CTS :
124
120
if (size >= AES_BLOCK_SIZE )
125
121
return 0 ;
@@ -938,7 +934,7 @@ static const struct cc_alg_template skcipher_algs[] = {
938
934
{
939
935
.name = "xts(paes)" ,
940
936
.driver_name = "xts-paes-ccree" ,
941
- .blocksize = AES_BLOCK_SIZE ,
937
+ .blocksize = 1 ,
942
938
.template_skcipher = {
943
939
.setkey = cc_cipher_sethkey ,
944
940
.encrypt = cc_cipher_encrypt ,
@@ -956,7 +952,7 @@ static const struct cc_alg_template skcipher_algs[] = {
956
952
{
957
953
.name = "xts512(paes)" ,
958
954
.driver_name = "xts-paes-du512-ccree" ,
959
- .blocksize = AES_BLOCK_SIZE ,
955
+ .blocksize = 1 ,
960
956
.template_skcipher = {
961
957
.setkey = cc_cipher_sethkey ,
962
958
.encrypt = cc_cipher_encrypt ,
@@ -975,7 +971,7 @@ static const struct cc_alg_template skcipher_algs[] = {
975
971
{
976
972
.name = "xts4096(paes)" ,
977
973
.driver_name = "xts-paes-du4096-ccree" ,
978
- .blocksize = AES_BLOCK_SIZE ,
974
+ .blocksize = 1 ,
979
975
.template_skcipher = {
980
976
.setkey = cc_cipher_sethkey ,
981
977
.encrypt = cc_cipher_encrypt ,
@@ -1196,7 +1192,7 @@ static const struct cc_alg_template skcipher_algs[] = {
1196
1192
{
1197
1193
.name = "xts(aes)" ,
1198
1194
.driver_name = "xts-aes-ccree" ,
1199
- .blocksize = AES_BLOCK_SIZE ,
1195
+ .blocksize = 1 ,
1200
1196
.template_skcipher = {
1201
1197
.setkey = cc_cipher_setkey ,
1202
1198
.encrypt = cc_cipher_encrypt ,
@@ -1213,7 +1209,7 @@ static const struct cc_alg_template skcipher_algs[] = {
1213
1209
{
1214
1210
.name = "xts512(aes)" ,
1215
1211
.driver_name = "xts-aes-du512-ccree" ,
1216
- .blocksize = AES_BLOCK_SIZE ,
1212
+ .blocksize = 1 ,
1217
1213
.template_skcipher = {
1218
1214
.setkey = cc_cipher_setkey ,
1219
1215
.encrypt = cc_cipher_encrypt ,
@@ -1231,7 +1227,7 @@ static const struct cc_alg_template skcipher_algs[] = {
1231
1227
{
1232
1228
.name = "xts4096(aes)" ,
1233
1229
.driver_name = "xts-aes-du4096-ccree" ,
1234
- .blocksize = AES_BLOCK_SIZE ,
1230
+ .blocksize = 1 ,
1235
1231
.template_skcipher = {
1236
1232
.setkey = cc_cipher_setkey ,
1237
1233
.encrypt = cc_cipher_encrypt ,
0 commit comments