1#!/bin/sh
| 1#!/bin/sh
|
2# $FreeBSD: head/tools/regression/geom_eli/init.t 159327 2006-06-06 06:44:19Z pjd $
| 2# $FreeBSD: head/tools/regression/geom_eli/init.t 172031 2007-09-01 06:33:02Z pjd $
|
3 4base=`basename $0` 5no=45 6sectors=100 7keyfile=`mktemp /tmp/$base.XXXXXX` || exit 1 8
| 3 4base=`basename $0` 5no=45 6sectors=100 7keyfile=`mktemp /tmp/$base.XXXXXX` || exit 1 8
|
9echo "1..180"
| 9echo "1..220"
|
10 11i=1 12for cipher in aes:0 aes:128 aes:192 aes:256 \ 13 3des:0 3des:192 \ 14 blowfish:0 blowfish:128 blowfish:160 blowfish:192 blowfish:224 \ 15 blowfish:256 blowfish:288 blowfish:320 blowfish:352 blowfish:384 \
| 10 11i=1 12for cipher in aes:0 aes:128 aes:192 aes:256 \ 13 3des:0 3des:192 \ 14 blowfish:0 blowfish:128 blowfish:160 blowfish:192 blowfish:224 \ 15 blowfish:256 blowfish:288 blowfish:320 blowfish:352 blowfish:384 \
|
16 blowfish:416 blowfish:448; do
| 16 blowfish:416 blowfish:448 \ 17 camellia:0 camellia:128 camellia:192 camellia:256; do
|
17 ealgo=${cipher%%:*} 18 keylen=${cipher##*:} 19 for secsize in 512 1024 2048 4096 8192; do 20 rnd=`mktemp /tmp/$base.XXXXXX` || exit 1 21 mdconfig -a -t malloc -s `expr $secsize \* $sectors + 512`b -u $no || exit 1 22 23 dd if=/dev/random of=${keyfile} bs=512 count=16 >/dev/null 2>&1 24
--- 32 unchanged lines hidden --- | 18 ealgo=${cipher%%:*} 19 keylen=${cipher##*:} 20 for secsize in 512 1024 2048 4096 8192; do 21 rnd=`mktemp /tmp/$base.XXXXXX` || exit 1 22 mdconfig -a -t malloc -s `expr $secsize \* $sectors + 512`b -u $no || exit 1 23 24 dd if=/dev/random of=${keyfile} bs=512 count=16 >/dev/null 2>&1 25
--- 32 unchanged lines hidden --- |