os/security/crypto/weakcryptospi/test/tcryptospi/testdata/mac_test_cases.ini
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/security/crypto/weakcryptospi/test/tcryptospi/testdata/mac_test_cases.ini	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,269 @@
     1.4 +[MD2]
     1.5 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
     1.6 +ExMacValue		=5bbf0610f604175b8c693e5451f19e7f
     1.7 +AlgorithmUid		=KAlgorithmHashMd2
     1.8 +EncryptKey		=CryptoSpiValidKey
     1.9 +KeyType			=KHmacKeyParameter
    1.10 +
    1.11 +[MD2oom]
    1.12 +OOMCondition		=True
    1.13 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.14 +ExMacValue		=5bbf0610f604175b8c693e5451f19e7f
    1.15 +AlgorithmUid		=KAlgorithmHashMd2
    1.16 +EncryptKey		=CryptoSpiValidKey
    1.17 +KeyType			=KHmacKeyParameter
    1.18 +
    1.19 +[MD4]
    1.20 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.21 +ExMacValue		=690610e01f9fb08dad9897ca0827b0f9
    1.22 +AlgorithmUid		=KAlgorithmHashMd4
    1.23 +EncryptKey		=CryptoSpiValidKey
    1.24 +KeyType			=KHmacKeyParameter
    1.25 +
    1.26 +[MD5]
    1.27 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.28 +ExMacValue		=6782648a0d7495258a3f88a8522e9ed8
    1.29 +AlgorithmUid		=KAlgorithmHashMd5
    1.30 +EncryptKey		=CryptoSpiValidKey
    1.31 +KeyType			=KHmacKeyParameter
    1.32 +
    1.33 +[SHA1]
    1.34 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.35 +ExMacValue		=d905648e5918c371d2f333aba08aaf7c266957f0
    1.36 +AlgorithmUid		=KAlgorithmHashSha1
    1.37 +EncryptKey		=CryptoSpiValidKey
    1.38 +KeyType			=KHmacKeyParameter
    1.39 +
    1.40 +[SHA224]
    1.41 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.42 +ExMacValue		=6a885bd46638baa44b8ed0fcd6112c4c35196e5487ac10a2921db2d6
    1.43 +AlgorithmUid		=KAlgorithmHashSha224
    1.44 +EncryptKey		=CryptoSpiValidKey
    1.45 +KeyType			=KHmacKeyParameter
    1.46 +
    1.47 +[SHA256]
    1.48 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.49 +ExMacValue		=7def8226ba7a1fe52f5410f9546ee950999eecb21a1b6dd5f608acc72c18ae90
    1.50 +AlgorithmUid		=KAlgorithmHashSha256
    1.51 +EncryptKey		=CryptoSpiValidKey
    1.52 +KeyType			=KHmacKeyParameter
    1.53 +
    1.54 +[SHA384]
    1.55 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.56 +ExMacValue		=99fb021f6b21e0846e8529ecea2e83a4391e3f0f0c0e89ac083cda05703d88a57604830ab33661c38891d2011b0632a0
    1.57 +AlgorithmUid		=KAlgorithmHashSha384
    1.58 +EncryptKey		=CryptoSpiValidKey
    1.59 +KeyType			=KHmacKeyParameter
    1.60 +
    1.61 +[SHA512]
    1.62 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.63 +ExMacValue		=5954506259323c23f8f273ca0ce9f8b94a8640b5b42addc545da4cad590ab33343d8b994ae7e3bbddb5dea784c2feb052a7c7dffdd0f6099ca4ef3be4e223e58
    1.64 +AlgorithmUid		=KAlgorithmHashSha512
    1.65 +EncryptKey		=CryptoSpiValidKey
    1.66 +KeyType			=KHmacKeyParameter
    1.67 +
    1.68 +[SHA512oom]
    1.69 +OOMCondition		=True
    1.70 +SourcePath		=c:\testdata\tcryptospi\data\SmallHash-SRC.dat
    1.71 +ExMacValue		=5954506259323c23f8f273ca0ce9f8b94a8640b5b42addc545da4cad590ab33343d8b994ae7e3bbddb5dea784c2feb052a7c7dffdd0f6099ca4ef3be4e223e58
    1.72 +AlgorithmUid		=KAlgorithmHashSha512
    1.73 +EncryptKey		=CryptoSpiValidKey
    1.74 +KeyType			=KHmacKeyParameter
    1.75 +
    1.76 +[MAC96]
    1.77 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
    1.78 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-src.dat
    1.79 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-mac96-mac.dat
    1.80 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
    1.81 +
    1.82 +[MAC96-3Bytes]
    1.83 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
    1.84 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-3bytes-src.dat
    1.85 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-mac96-3bytes-mac.dat
    1.86 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
    1.87 +
    1.88 +[MAC96-16Bytes]
    1.89 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
    1.90 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-16bytes-src.dat
    1.91 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-mac96-16bytes-mac.dat
    1.92 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
    1.93 +
    1.94 +[MAC96-20Bytes]
    1.95 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
    1.96 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-20bytes-src.dat
    1.97 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-mac96-20bytes-mac.dat
    1.98 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
    1.99 +
   1.100 +[MAC96-32Bytes]
   1.101 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.102 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-32bytes-src.dat
   1.103 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-mac96-32bytes-mac.dat
   1.104 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
   1.105 +
   1.106 +[MAC96-34Bytes]
   1.107 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.108 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-34bytes-src.dat
   1.109 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-mac96-34bytes-mac.dat
   1.110 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
   1.111 +
   1.112 +[MAC96-1000Bytes]
   1.113 +EncryptKeyPath=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.114 +SourcePath=c:\testdata\tcryptospi\data\symmetric-mac-1000bytes-src.dat
   1.115 +EncryptedPath=c:\testdata\tcryptospi\data\symmetric-mac96-1000bytes-mac.dat
   1.116 +AlgorithmUid=KAlgorithmCipherAesXcbcMac96
   1.117 +EncryptKey=CryptoSpiValidKe
   1.118 +
   1.119 +[PRF128]
   1.120 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.121 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-src.dat
   1.122 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-mac.dat
   1.123 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.124 +
   1.125 +[PRF128-3Bytes]
   1.126 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.127 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-3bytes-src.dat
   1.128 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-3bytes-mac.dat
   1.129 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.130 +
   1.131 +[PRF128-16Bytes]
   1.132 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.133 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-16bytes-src.dat
   1.134 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-16bytes-mac.dat
   1.135 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.136 +
   1.137 +[PRF128-20Bytes]
   1.138 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.139 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-20bytes-src.dat
   1.140 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-20bytes-mac.dat
   1.141 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.142 +
   1.143 +[PRF128-32Bytes]
   1.144 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.145 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-32bytes-src.dat
   1.146 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-32bytes-mac.dat
   1.147 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.148 +
   1.149 +[PRF128-34Bytes]
   1.150 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.151 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-34bytes-src.dat
   1.152 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-34bytes-mac.dat
   1.153 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.154 +
   1.155 +[PRF128-1000Bytes]
   1.156 +EncryptKeyPath=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.157 +SourcePath=c:\testdata\tcryptospi\data\symmetric-mac-1000bytes-src.dat
   1.158 +EncryptedPath=c:\testdata\tcryptospi\data\symmetric-prf128-1000bytes-mac.dat
   1.159 +AlgorithmUid=KAlgorithmCipherAesXcbcPrf128
   1.160 +EncryptKey=CryptoSpiValidKe
   1.161 +
   1.162 +[PRF128-KeyLength-10Bytes]
   1.163 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key10.txt
   1.164 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-20bytes-src.dat
   1.165 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-key10bytes-mac.dat
   1.166 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.167 +
   1.168 +[PRF128-KeyLength-18Bytes]
   1.169 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key18.txt
   1.170 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-20bytes-src.dat
   1.171 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-key18bytes-mac.dat
   1.172 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.173 +
   1.174 +[MAC96oom-3Bytes]
   1.175 +OOMCondition		=True
   1.176 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.177 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-3bytes-src.dat
   1.178 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-mac96-3bytes-mac.dat
   1.179 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
   1.180 +
   1.181 +[PRF128oom-3Bytes]
   1.182 +OOMCondition		=True
   1.183 +EncryptKeyPath		=c:\testdata\tcryptospi\data\symmetric-mac-key.txt
   1.184 +SourcePath		=c:\testdata\tcryptospi\data\symmetric-mac-3bytes-src.dat
   1.185 +EncryptedPath		=c:\testdata\tcryptospi\data\symmetric-prf128-3bytes-mac.dat
   1.186 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.187 +
   1.188 +[MD2L]
   1.189 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.190 +ExMacValue		=6d9ba4878f414b0db86ff68bce7ef21d
   1.191 +AlgorithmUid		=KAlgorithmHashMd2
   1.192 +EncryptKey		=CryptoSpiValidKey
   1.193 +KeyType			=KHmacKeyParameter
   1.194 +
   1.195 +[MD4L]
   1.196 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.197 +ExMacValue		=63a93bfe08f8d511a950e4147b92af08
   1.198 +AlgorithmUid		=KAlgorithmHashMd4
   1.199 +EncryptKey		=CryptoSpiValidKey
   1.200 +KeyType			=KHmacKeyParameter
   1.201 +
   1.202 +[MD5L]
   1.203 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.204 +ExMacValue		=3edc17c34052092c2fc9070515538afc
   1.205 +AlgorithmUid		=KAlgorithmHashMd5
   1.206 +EncryptKey		=CryptoSpiValidKey
   1.207 +KeyType			=KHmacKeyParameter
   1.208 +
   1.209 +[SHA1L]
   1.210 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.211 +ExMacValue		=3522860167ce6fe5f82c294325d50cbede0e722c
   1.212 +AlgorithmUid		=KAlgorithmHashSha1
   1.213 +EncryptKey		=CryptoSpiValidKey
   1.214 +KeyType			=KHmacKeyParameter
   1.215 +
   1.216 +[SHA224L]
   1.217 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.218 +ExMacValue		=1c705b716327268fea6f350cf6284a1b4d57488f3061f7f2263d637b
   1.219 +AlgorithmUid		=KAlgorithmHashSha224
   1.220 +EncryptKey		=CryptoSpiValidKey
   1.221 +KeyType			=KHmacKeyParameter
   1.222 +
   1.223 +[SHA256L]
   1.224 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.225 +ExMacValue		=30f24803f112a146152d3410727fc3ca89612cb17900781495f88058c2b7db61
   1.226 +AlgorithmUid		=KAlgorithmHashSha256
   1.227 +EncryptKey		=CryptoSpiValidKey
   1.228 +KeyType			=KHmacKeyParameter
   1.229 +
   1.230 +[SHA384L]
   1.231 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.232 +ExMacValue		=8bee7602f4c0e5a5c61530ca5e3b53ab947cab80d88bb19b9ce180b086fd54a3cdd43cbfa23db075f052f3633dbe94c8
   1.233 +AlgorithmUid		=KAlgorithmHashSha384
   1.234 +EncryptKey		=CryptoSpiValidKey
   1.235 +KeyType			=KHmacKeyParameter
   1.236 +
   1.237 +[SHA512L]
   1.238 +SourcePath		=c:\testdata\tcryptospi\data\LargeHash-SRC.dat
   1.239 +ExMacValue		=8c4480e1e2eb16c02a01a543e7d1e9e63f89847f35f1ea71e4ff8a1146a10d8baf1305030280f441689a2ea553ba2f1d5829a892652e083b014c5d914fa8ce84
   1.240 +AlgorithmUid		=KAlgorithmHashSha512
   1.241 +EncryptKey		=CryptoSpiValidKey
   1.242 +KeyType			=KHmacKeyParameter
   1.243 +
   1.244 +[MAC96_load]
   1.245 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
   1.246 +EncryptKey		=CryptoSpiValidKe
   1.247 +KeyType			=KSymmetricKeyParameter
   1.248 +
   1.249 +[PRF128_load]
   1.250 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.251 +EncryptKey		=CryptoSpiValidKe
   1.252 +KeyType			=KSymmetricKeyParameter
   1.253 +
   1.254 +[Invalid_algorithm]
   1.255 +AlgorithmUid		=KAlgorithmCipherAes
   1.256 +EncryptKey		=CryptoSpiValidKe
   1.257 +KeyType			=KSymmetricKeyParameter
   1.258 +
   1.259 +[MAC_invalid_key]
   1.260 +AlgorithmUid		=KAlgorithmHashSha512
   1.261 +EncryptKey		=CryptoSpiValidKe
   1.262 +KeyType			=KSymmetricKeyParameter
   1.263 +
   1.264 +[MAC96_invalid_key]
   1.265 +AlgorithmUid		=KAlgorithmCipherAesXcbcMac96
   1.266 +EncryptKey		=CryptoSpiValidKey
   1.267 +KeyType			=KSymmetricKeyParameter
   1.268 +
   1.269 +[PRF128_invalid_key]
   1.270 +AlgorithmUid		=KAlgorithmCipherAesXcbcPrf128
   1.271 +EncryptKey		=CryptoSpiValidKey
   1.272 +KeyType			=KHmacKeyParameter