LibHac/tests/LibHac.Tests/CryptoTests/TestVectors/CBC128Long.rsp
Alex Barney 506a4691bb Fix transforming data with .NET's AES crypto functions
Input data with sizes larger than 512 bytes that weren't powers of two would fail when copying to the output buffer because rented arrays come in powers of two. This limits the copy size to the number of bytes that were actually encrypted or decrypted.
2022-11-23 14:49:59 -07:00

20 lines
4.4 KiB
Text

# Large AES-CBC-128 test vectors
[ENCRYPT]
COUNT = 0
KEY = cc1795a8ebb516723669c82bef7f3d7b
IV = 0f118d07e3116a8037e109e3bdd523fd
PLAINTEXT = 046ae94d7543d38504df4a10a0b56ead52883ab8f3e3a8c9be0fb16967e925b5cb4dd6a789c1001f819cbb3bc6af9293e242d372b19464b8eb2949bcb4d232b8c529386351feb4ca16d99378f97bcf12aad7179a4368dc5f91bf15739c06d75ffc2264c8437986104266a59baaa9ebbd014610d038aa74ac189d146ad01b2b253a226fe3a69c1b7042051ee13a5a61d0af6b324f936eb990800871119d6471a47082e7cc3783629a476b8efc012c69d1fbd8af4c80b3ecf9e91d454dcc2a60725a2c75ab2e58c9b60cb5ccea9b09c0f1f924944c68daaaca612d5e1077a0ffa583dbe2cf509dbb42de793f53b65904e37fb1ab332d158080c8fa4f453123ff3f22ff8364c726ccf43fa470c1658b1381acce8504334a746b8887a6eb5a7e1bac0ee3a551841ed162a6d8158e0a018d5b9c4b48649f513c82397cfca18e3d14e0d3dfd7d0907466d56f833140b838b585b6e7d3ab284bd2ef863d42d2d0c7033916b74e2634107adede5fa4a5b4e1d472af8a2838a0c42fe9a49e7f6d4b270d7180239aff7bddd451169f91070a49f5751c8ac54a99305856d5eb5a12b972a33c699d80a60489c1a879cdeb2bf5defb9d5b3c4382bf2844ec252afe1142c653b5891ff538c19e82ea1d04ac6c7b66c9018e4fc415cfea381269a1db0f2f56c9051767f13975498ed2ab21817fbe5b40e6f58ef715b6e5bbc7e9b4fc9df75b5db36d587c302a080d29c42b700df0310e7d
CIPHERTEXT = 1eb775460c2ecde0a2d677b9c241931c762306ca0643b93546dbce36a7e50250eaf97810cec779ffe88d58fd63d3bae36e392b71f73a929076aa050a2b9febe6e167fa7c5b4da8d6b7262dee138b134e1fe13e2af494764c08ef491fe93dcb02405397955ab4742984f09888498895bc87d1fb612969d57e7a60368849efef898eb7ff004cf5bfca4a1fe1f120f3f69e81b73345ae75eca396df1b6a78eb0ee6fd6891519fc06a6cad9d5a56ccaddfb2966028ac48ab03e4f956e564890892e97497f31d1af35f2d0989e3ee0333e4d791c20b34b3af8e63c28960da54b4c3d6b40b56d1e73f62f145f7374fedcba3ad0896c6bd3ac360aeecb8540caaad6e68f28947c7fd52eda16c511374863dfbc09ebf9ec30a28d599c032d71cb1ddb90e28cee739675ba9f0c5f000ab2841a9a3433d7b9c1c5572cf21d092fa09630723e55c0bc68712cc27b15e32dfcb73d7915ebdaf8e386334e5b72c1f876438b2070b10849e293a4a6397056338bb8f4a82a7e4b0ee4bd00fe61cc5f2fc3c97274d6372050c9478b7aeb1384207e686551a71e68a2db113546154328ab4fea8d9007214fcbcc5c030578ced72545e5008ed9dc18129cacd2cd78e907fca3b2e91e2b5f471f857c32ff3680f68bc7dac67bfaa31c471e210af12876c101ff429b335699638634283476737e8f8c942d2d345d5d1fc2ecfb24fe150ee426e6c2d2b306f00c6b9c216a72c65d5afa1dc3b192d
[DECRYPT]
COUNT = 0
KEY = cc1795a8ebb516723669c82bef7f3d7b
IV = 0f118d07e3116a8037e109e3bdd523fd
PLAINTEXT = 046ae94d7543d38504df4a10a0b56ead52883ab8f3e3a8c9be0fb16967e925b5cb4dd6a789c1001f819cbb3bc6af9293e242d372b19464b8eb2949bcb4d232b8c529386351feb4ca16d99378f97bcf12aad7179a4368dc5f91bf15739c06d75ffc2264c8437986104266a59baaa9ebbd014610d038aa74ac189d146ad01b2b253a226fe3a69c1b7042051ee13a5a61d0af6b324f936eb990800871119d6471a47082e7cc3783629a476b8efc012c69d1fbd8af4c80b3ecf9e91d454dcc2a60725a2c75ab2e58c9b60cb5ccea9b09c0f1f924944c68daaaca612d5e1077a0ffa583dbe2cf509dbb42de793f53b65904e37fb1ab332d158080c8fa4f453123ff3f22ff8364c726ccf43fa470c1658b1381acce8504334a746b8887a6eb5a7e1bac0ee3a551841ed162a6d8158e0a018d5b9c4b48649f513c82397cfca18e3d14e0d3dfd7d0907466d56f833140b838b585b6e7d3ab284bd2ef863d42d2d0c7033916b74e2634107adede5fa4a5b4e1d472af8a2838a0c42fe9a49e7f6d4b270d7180239aff7bddd451169f91070a49f5751c8ac54a99305856d5eb5a12b972a33c699d80a60489c1a879cdeb2bf5defb9d5b3c4382bf2844ec252afe1142c653b5891ff538c19e82ea1d04ac6c7b66c9018e4fc415cfea381269a1db0f2f56c9051767f13975498ed2ab21817fbe5b40e6f58ef715b6e5bbc7e9b4fc9df75b5db36d587c302a080d29c42b700df0310e7d
CIPHERTEXT = 1eb775460c2ecde0a2d677b9c241931c762306ca0643b93546dbce36a7e50250eaf97810cec779ffe88d58fd63d3bae36e392b71f73a929076aa050a2b9febe6e167fa7c5b4da8d6b7262dee138b134e1fe13e2af494764c08ef491fe93dcb02405397955ab4742984f09888498895bc87d1fb612969d57e7a60368849efef898eb7ff004cf5bfca4a1fe1f120f3f69e81b73345ae75eca396df1b6a78eb0ee6fd6891519fc06a6cad9d5a56ccaddfb2966028ac48ab03e4f956e564890892e97497f31d1af35f2d0989e3ee0333e4d791c20b34b3af8e63c28960da54b4c3d6b40b56d1e73f62f145f7374fedcba3ad0896c6bd3ac360aeecb8540caaad6e68f28947c7fd52eda16c511374863dfbc09ebf9ec30a28d599c032d71cb1ddb90e28cee739675ba9f0c5f000ab2841a9a3433d7b9c1c5572cf21d092fa09630723e55c0bc68712cc27b15e32dfcb73d7915ebdaf8e386334e5b72c1f876438b2070b10849e293a4a6397056338bb8f4a82a7e4b0ee4bd00fe61cc5f2fc3c97274d6372050c9478b7aeb1384207e686551a71e68a2db113546154328ab4fea8d9007214fcbcc5c030578ced72545e5008ed9dc18129cacd2cd78e907fca3b2e91e2b5f471f857c32ff3680f68bc7dac67bfaa31c471e210af12876c101ff429b335699638634283476737e8f8c942d2d345d5d1fc2ecfb24fe150ee426e6c2d2b306f00c6b9c216a72c65d5afa1dc3b192d