LibHac/tests/LibHac.Tests/CryptoTests/TestVectors/CTR128.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

26 lines
2.9 KiB
Text

[ENCRYPT]
COUNT = 0
KEY = ae6852f8121067cc4bf7a5765577f39e
IV = 00000030000000000000000000000001
PLAINTEXT = 53696e676c6520626c6f636b206d7367
CIPHERTEXT = e4095d4fb7a7b3792d6175a3261311b8
COUNT = 1
KEY = 7e24067817fae0d743d6ce1f32539163
IV = 006cb6dbc0543b59da48d90b00000001
PLAINTEXT = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
CIPHERTEXT = 5104a106168a72d9790d41ee8edad388eb2e1efc46da57c8fce630df9141be28
COUNT = 2
KEY = 7691be035e5020a8ac6e618529f9a0dc
IV = 00e0017b27777f3f4a1786f000000001
PLAINTEXT = 000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223
CIPHERTEXT = c1cf48a89f2ffdd9cf4652e9efdb72d74540a42bde6d7836d59a5ceaaef3105325b2072f
COUNT = 3
KEY = 7691be035e5020a8ac6e618529f9a0dc
IV = 00e0017b27777f3f4a1786f000000001
PLAINTEXT = c3bbbc92963e759a279269ad93dc7de252c5567068d011b71762affe5e8eeaf1015ebb3eba6b7c18a3d8f61efb762a5393bd0213e25a807e0af0680405681a5c8ee6c3f9a858c23ab0a668406caac984a867f8e87075a4dfd771d3d7dd7a42a06b24ea468811e1afab7261c39213f5feb8f089a0d043be6098eb8d2491b0b64fb80028108747e0596354de14250621ace48db87b45b069eb337d923d5e64392d1dd08f85ce593c19abb334b3aaad4c13f26b01b025a1be5bebfcfd26449b62781fa421d5dd427aba6c97d4764343a63a2cb1553953ec1316852b06117553e05b7c8d8e38b76e7486084f2ab597104cc382248994f23e247ae3dbdbb5ea90196d293357ffa73d35c3e0309f23ae2b1497462af10a8c283c78c1b22103b769d7e48766206d9ce370b2c2c8563c0556d4c9a4e3e277cedd6d88d12032e6e321c6e86f64de4f62de65e523d6e9f1b369f0cd9811ece397654e3f976beab7ec9723dd0ce4edc41ea589f0c2fedb82540a041a25194c99d83e3f9561a51496b9f7378954abc9fcc6a9d8d4d68cbc29c3f1587f0e804fd9ba700f959bd5fe8707fbdb00bec2d25380103d6b1d5a1aa539bd30b162d101b534754592e95f7b174803ad23830b8ad65c37b3221abf152668a540abbf75afa837a9677e74fb020598fc7376c708ffbc8a129f6a5c0ed2eb51928c135aa16d7fe59d378060bb4167d0562de48db833b6da3624248a5ab99c9734817d
CIPHERTEXT = 0275f6390d148e44e0dd314f700a013a0794e048a2a87f96dae1e90fec60e4bd04cd9e32ad3e4a1805e508d1ad55adba784167bbbf5eecb76cc8472d43c74d93fd72a57f48847a6ea61416aaae835e9e44457feb1d05317d83767a39b19b2919997ed549ba3a96b30a027c30f3a23d6be3916c7d05ad09ffc3b0d87d049a9fb6014d173905d35753863b791db9b5cc62a5a5f1f631efc0c3320aa6580e71a0686adfbed4206362f3e26950d2c7b2a1314241f1f9812d5d50236a36cdc00832a2d4e0c57ad3d542b801ae56d22be6ba7ee3ba62fdb337ebc299feb4278f355d3eccedfd8584cfbe2d5ba83c55b07ad3dc50ff988a7b05fca81e6d4b3934c6435f4443c6d76e44a4572878bfe98fc0fc4b868ae40528ad6057fccd8497799d67393b6d3a5a0481e5bb4f9ab40e176adfba1fc57917318b18d76381f76301c2f509025b12a93cf812ce9461a543934ba81f486cd992de153a5a5503256fd975116b493c6a8eec9d5217d4b775ecafda14fcae831083ec483005695aa7118d0bb91840b9784fd0cc72326d1c270d13225797b6eb56502879dbf9471cb2eea3f662ebf383b94c982258e49517c91b2b2dde04f6edd793edbc8761f0ee2cbc7d71c97e2a1dddfd8702acffc8622de40862b911ddce9186441428ff849f692feafa06d33c3cf905c602d3a16eb9eeec147e99dd7db16523ecf6332c694455be9d9f4925c81c1499a511c7ac1e3610b6f785a502