[sheepdog] [PATCH] tests: change cipher mode for random function from CTR to CBC

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu May 16 16:20:01 CEST 2013


This uses CBC instead because CTR is not supported by the older
version of openssl.  In addition, we don't need a secure encription,
so this patch uses a faster 128 bit mode.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 tests/common.rc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/common.rc b/tests/common.rc
index 6150090..243460f 100644
--- a/tests/common.rc
+++ b/tests/common.rc
@@ -401,7 +401,7 @@ _cleanup_devices()
 
 _random()
 {
-	openssl enc -aes-256-ctr -pass pass:"$(date)" -nosalt < /dev/zero 2>/dev/null
+	openssl enc -aes-128-cbc -pass pass:"$(date)" -nosalt < /dev/zero 2>/dev/null
 }
 
 # make sure this script returns success
-- 
1.8.1.3.566.gaa39828




More information about the sheepdog mailing list