OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / freeswan / klips / test / east-des-parity-01 / setkey.sh
1 #!/bin/sh
2
3 authkey=0x87658765876587658765876587658765
4
5 key=0x4142434445464649494a4a4c4c4f4f515152525454575758 
6 # is a key with bad parity in the first subkey.
7 ipsec spi --af inet --edst 192.1.2.45 --spi 0x12345678 --proto esp --src 192.1.2.23 --esp 3des-md5-96 --enckey $key --authkey $authkey
8
9 key=0x4043434545464649494a4b4c4c4f4f515152525454575758
10 # is a key with bad parity in the second subkey.
11 ipsec spi --af inet --edst 192.1.2.45 --spi 0x12345678 --proto esp --src 192.1.2.23 --esp 3des-md5-96 --enckey $key --authkey $authkey
12
13 key=0x4043434545464649494a4a4c4c4f4f515152525454565758 
14 # is a key with bad parity in the third subkey.
15 ipsec spi --af inet --edst 192.1.2.45 --spi 0x12345678 --proto esp --src 192.1.2.23 --esp 3des-md5-96 --enckey $key --authkey $authkey
16
17 halt -p
18