add test scenarios to decrypt and encrypt input and compare with given output
diff --git a/library/psa_crypto.c b/library/psa_crypto.c
index 96d2c0f..9ad44e7 100644
--- a/library/psa_crypto.c
+++ b/library/psa_crypto.c
@@ -1365,7 +1365,7 @@
 
     operation->key_set = 1;
     operation->alg = alg;
-    operation->block_size = PSA_BLOCK_CIPHER_BLOCK_SIZE(key_type);
+    operation->block_size = PSA_ALG_IS_BLOCK_CIPHER( alg ) ? PSA_BLOCK_CIPHER_BLOCK_SIZE( key_type ) : 1;
     if( PSA_ALG_IS_BLOCK_CIPHER( alg ) || ( alg == PSA_ALG_CTR ) )
     {
         operation->iv_size = PSA_BLOCK_CIPHER_BLOCK_SIZE( key_type );