summaryrefslogtreecommitdiffstats
path: root/challenge
Commit message (Collapse)AuthorAgeFilesLines
* challenge/c16.go: use lib.RandomBytes to generate keyrsiddharth2021-02-271-3/+1
|
* challenge: remove blank linesrsiddharth2021-02-249-12/+0
|
* lib: remove oracle.gorsiddharth2021-02-242-16/+45
| | | | Move functions into C12 and C14 where they're used.
* lib: remove OracleAESRandomEncryptrsiddharth2021-02-241-1/+33
| | | | Move function into C11 where it is used.
* lib: remove web.gorsiddharth2021-02-241-6/+82
| | | | Move all its functions to C13 where it is used.
* lib: RandomKey -> RandomBytesrsiddharth2021-02-241-2/+2
|
* challenge: ch17.go: don't use lib.OracleKey and lib.OracleIVrsiddharth2021-02-241-3/+10
|
* challenge/c16.go: refactorrsiddharth2021-02-241-69/+58
| | | | Keep everything inside C16
* challenge/c15.go: gofmtrsiddharth2021-02-241-0/+1
|
* challenge/c14.go: refactorrsiddharth2021-02-241-108/+103
| | | | Keep everything inside C14
* challenge/c13.go: gofmtrsiddharth2021-02-241-0/+1
|
* challenge/c12.go: refactorrsiddharth2021-02-242-81/+87
| | | | Keep everything inside C12
* challenge/c11.go: gofmtrsiddharth2021-02-241-0/+1
|
* challenge/c10.go: refactorrsiddharth2021-02-241-22/+12
| | | | Keep everything inside C10
* challenge/c09.go: gofmtrsiddharth2021-02-241-0/+1
|
* challenge/c08.go: refactorrsiddharth2021-02-241-210/+210
| | | | Keep everything inside C8
* challenge/c07.go: refactorrsiddharth2021-02-241-6/+6
| | | | Keep everything inside C7
* challenge/c06.go: refactorrsiddharth2021-02-241-98/+96
| | | | Keep everything inside C6
* challenge/c05.go: refactorrsiddharth2021-02-242-7/+5
| | | | Keep everything inside C5
* challenge/c04.go: refactorrsiddharth2021-02-241-35/+32
| | | | Keep everything inside C4
* challenge/c03.go: gofmtrsiddharth2021-02-241-0/+1
|
* challenge/c02.go: gofmtrsiddharth2021-02-241-0/+1
|
* challenge/c01.go: gofmtrsiddharth2021-02-241-0/+1
|
* challenge/c17.go: update outputrsiddharth2021-02-211-0/+1
|
* challenge: do challenge 17rsiddharth2021-02-211-0/+184
|
* lib: update Pkcs7PaddingUndo, AESDecryptCBCrsiddharth2021-02-113-12/+22
| | | | | Add error as the second return value to Pkcs7PaddingUndo and AESDecryptCBC.
* challenge: update ch16rsiddharth2021-02-011-32/+16
| | | | | | | - Don't use AESDecryptCBC directly for the bitflap attack. - Use just function 1 (cbcBitFlipEncrypt) and 2 (cbcBitFlipDecryptHasAdmin) to modify the cipher to produce the needed ';admin=true;' in the de-ciphered text.
* challenge: do challenge 16rsiddharth2021-01-301-0/+120
|
* challenge: update C15rsiddharth2021-01-261-2/+2
|
* challenge: do challenge 15rsiddharth2021-01-261-0/+40
|
* challenge: add output for challenge 14rsiddharth2021-01-251-0/+7
|
* challenge: freshSheepBlock -> freshSheepBytesrsiddharth2021-01-252-8/+8
|
* challenge: do challenge 14rsiddharth2021-01-251-0/+128
|
* challenge: fix findUnknownStringCharacteristicsrsiddharth2021-01-191-1/+1
|
* challenge/ch13.go -> challenge/c13.gorsiddharth2020-12-211-0/+0
|
* do challenge 13rsiddharth2020-12-211-0/+30
|
* challenge: do challenge 12rsiddharth2020-12-131-0/+121
|
* lib/blocks: rename CipherIsECB -> CipherUsesECBrsiddharth2020-12-122-2/+2
|
* do challenge 11rsiddharth2020-12-101-0/+37
|
* lib/blocks: BlockIsECB -> CipherIsECBrsiddharth2020-12-091-1/+1
|
* lib/aes: update AESEncryptCBCrsiddharth2020-12-091-11/+7
| | | | Add padding
* lib/blocks: move isECB from ch. 8 in here as BlockIsECBrsiddharth2020-12-081-24/+1
|
* challenge: fix typo in challenge 08rsiddharth2020-12-061-2/+2
|
* challenge: fix challenge 08rsiddharth2020-12-061-4/+4
|
* challenge: complete challenge 10rsiddharth2020-12-061-4/+24
|
* lib/aes: AESDecrypt -> AESDecryptECBrsiddharth2020-12-051-1/+1
|
* challenge: c10: specify data type for NIST SP 800-38A varsrsiddharth2020-12-051-3/+3
|
* challenge: c10: cosmetic edit to cryptopals 10 testrsiddharth2020-12-051-8/+4
|
* challenge: c10: cosmetic edit to NIST SP 800-38A testrsiddharth2020-12-051-12/+13
|
* challenge: ch10: add NIST SP 800-38A F.2.2 decryption testrsiddharth2020-12-051-83/+97
|