Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | lib: add `ByteIsUpper` | siddharth | 2021-06-06 | 1 | -0/+7 | |
| | ||||||
* | lib: update `BytesInCommon` | siddharth | 2021-06-05 | 1 | -2/+4 | |
| | | | | | Ensure that the returned `common` array does not point to any of the []byte arrays in `bbytes`. | |||||
* | lib/byte.go: update `BytesInCommon` doc | siddharth | 2021-06-05 | 1 | -1/+2 | |
| | ||||||
* | lib: add byte.go | siddharth | 2021-06-05 | 1 | -0/+31 | |
| | | | | | - Add `ByteInBytes` function - Add `BytesInCommon` function | |||||
* | lib: add ByteToUpper | rsiddharth | 2021-03-06 | 1 | -5/+9 | |
| | ||||||
* | lib: add AESGenCTRFunc | rsiddharth | 2021-03-03 | 1 | -0/+23 | |
| | ||||||
* | lib: add AESEncryptCTR | rsiddharth | 2021-03-03 | 1 | -5/+16 | |
| | ||||||
* | lib: add AESDecryptCTR | rsiddharth | 2021-03-01 | 1 | -0/+25 | |
| | ||||||
* | lib: remove oracle.go | rsiddharth | 2021-02-24 | 1 | -36/+0 | |
| | | | | Move functions into C12 and C14 where they're used. | |||||
* | lib: remove OracleAESRandomEncrypt | rsiddharth | 2021-02-24 | 2 | -33/+1 | |
| | | | | Move function into C11 where it is used. | |||||
* | lib: remove web.go | rsiddharth | 2021-02-24 | 1 | -94/+0 | |
| | | | | Move all its functions to C13 where it is used. | |||||
* | lib: update webSessionEncryptionKey | rsiddharth | 2021-02-24 | 1 | -4/+4 | |
| | | | | Use RandomBytes to set `webSessionEncryptionKey` | |||||
* | lib: randomBytes -> randomBytesWithLengthBetween | rsiddharth | 2021-02-24 | 2 | -3/+3 | |
| | ||||||
* | lib: RandomKey -> RandomBytes | rsiddharth | 2021-02-24 | 2 | -5/+5 | |
| | ||||||
* | challenge: ch17.go: don't use lib.OracleKey and lib.OracleIV | rsiddharth | 2021-02-24 | 1 | -10/+4 | |
| | ||||||
* | lib: put rand functions in rand.go | rsiddharth | 2021-02-24 | 2 | -49/+59 | |
| | ||||||
* | lib: add OracleIV | rsiddharth | 2021-02-21 | 1 | -0/+6 | |
| | ||||||
* | lib: update Pkcs7PaddingUndo, AESDecryptCBC | rsiddharth | 2021-02-11 | 2 | -7/+7 | |
| | | | | | Add error as the second return value to Pkcs7PaddingUndo and AESDecryptCBC. | |||||
* | lib: add CPError | rsiddharth | 2021-02-11 | 1 | -0/+11 | |
| | ||||||
* | lib: oracleKey -> OracleKey | rsiddharth | 2021-02-11 | 1 | -4/+4 | |
| | ||||||
* | lib: randomInt -> RandomInt | rsiddharth | 2021-02-11 | 1 | -4/+4 | |
| | ||||||
* | lib: add StrHas | rsiddharth | 2021-01-30 | 1 | -0/+10 | |
| | ||||||
* | lib: update StripSpaceChars | rsiddharth | 2021-01-30 | 1 | -0/+3 | |
| | | | | strip 'NUL' character too. | |||||
* | lib: stripSpaceChars -> StripSpaceChars | rsiddharth | 2021-01-30 | 3 | -3/+3 | |
| | ||||||
* | lib: add StrToUpper | rsiddharth | 2021-01-27 | 1 | -0/+12 | |
| | ||||||
* | lib: update Pkcs7PaddingUndo | rsiddharth | 2021-01-26 | 1 | -1/+10 | |
| | | | | Add validation. | |||||
* | challenge: do challenge 14 | rsiddharth | 2021-01-25 | 1 | -1/+1 | |
| | ||||||
* | lib: add HasConsecutiveMatchingBlocks | rsiddharth | 2021-01-12 | 1 | -0/+14 | |
| | ||||||
* | lib: add OracleAESVarEncryptECB | rsiddharth | 2021-01-12 | 1 | -0/+6 | |
| | | | | For challenge 14. This will be used as the `AES-128-ECB` function. | |||||
* | lib: add oracleRandom | rsiddharth | 2021-01-12 | 1 | -0/+6 | |
| | | | | For challenge 14. This will be used as the `random-prefix`. | |||||
* | lib: update randomBytes | rsiddharth | 2021-01-12 | 1 | -14/+2 | |
| | | | | Use randomInt to get the random byte array length. | |||||
* | lib: add randomInt | rsiddharth | 2021-01-12 | 1 | -0/+19 | |
| | ||||||
* | lib/web: update import statment | rsiddharth | 2020-12-21 | 1 | -3/+1 | |
| | ||||||
* | lib: add web.go | rsiddharth | 2020-12-20 | 1 | -0/+96 | |
| | | | | For challenge 13. | |||||
* | lib/str: add StrSplitAt | rsiddharth | 2020-12-20 | 1 | -0/+17 | |
| | ||||||
* | lib/str: add NumToStr | rsiddharth | 2020-12-20 | 1 | -0/+9 | |
| | ||||||
* | lib/str: add NumToChar | rsiddharth | 2020-12-20 | 1 | -0/+8 | |
| | ||||||
* | lib/aes: add OracleAESEncryptECB | rsiddharth | 2020-12-13 | 1 | -0/+18 | |
| | ||||||
* | lib/blocks: rename CipherIsECB -> CipherUsesECB | rsiddharth | 2020-12-12 | 1 | -1/+1 | |
| | ||||||
* | lib/blocks: BlockIsECB -> CipherIsECB | rsiddharth | 2020-12-09 | 1 | -1/+1 | |
| | ||||||
* | lib/oracle.go: add OracleAESRandomEncrypt | rsiddharth | 2020-12-09 | 1 | -0/+68 | |
| | ||||||
* | lib/aes: update AESEncryptCBC | rsiddharth | 2020-12-09 | 1 | -0/+7 | |
| | | | | Add padding | |||||
* | lib/aes: update AESEncryptECB | rsiddharth | 2020-12-09 | 1 | -0/+7 | |
| | | | | Add padding. | |||||
* | lib/aes: update AESEncrryptECB | rsiddharth | 2020-12-09 | 1 | -3/+3 | |
| | | | | Change argument name `cipher` to `plain`. | |||||
* | lib/blocks: add Pkcs7PaddingUndo | rsiddharth | 2020-12-09 | 1 | -0/+5 | |
| | ||||||
* | lib/blocks: move isECB from ch. 8 in here as BlockIsECB | rsiddharth | 2020-12-08 | 1 | -0/+23 | |
| | ||||||
* | lib/hex: add PrettifyHexStr | rsiddharth | 2020-12-06 | 1 | -0/+12 | |
| | ||||||
* | lib/hex: update BytesToHexStr | rsiddharth | 2020-12-06 | 1 | -1/+1 | |
| | | | | Don't add space character. | |||||
* | lib/aes: add AESEncryptCBC | rsiddharth | 2020-12-06 | 1 | -1/+17 | |
| | ||||||
* | lib/aes: add AESEncryptECB | rsiddharth | 2020-12-06 | 1 | -0/+14 | |
| |