summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib: add OracleAESVarEncryptECBrsiddharth2021-01-121-0/+6
| | | | For challenge 14. This will be used as the `AES-128-ECB` function.
* lib: add oracleRandomrsiddharth2021-01-121-0/+6
| | | | For challenge 14. This will be used as the `random-prefix`.
* lib: update randomBytesrsiddharth2021-01-121-14/+2
| | | | Use randomInt to get the random byte array length.
* lib: add randomIntrsiddharth2021-01-121-0/+19
|
* lib/web: update import statmentrsiddharth2020-12-211-3/+1
|
* lib: add web.gorsiddharth2020-12-201-0/+96
| | | | For challenge 13.
* lib/str: add StrSplitAtrsiddharth2020-12-201-0/+17
|
* lib/str: add NumToStrrsiddharth2020-12-201-0/+9
|
* lib/str: add NumToCharrsiddharth2020-12-201-0/+8
|
* lib/aes: add OracleAESEncryptECBrsiddharth2020-12-131-0/+18
|
* lib/blocks: rename CipherIsECB -> CipherUsesECBrsiddharth2020-12-121-1/+1
|
* lib/blocks: BlockIsECB -> CipherIsECBrsiddharth2020-12-091-1/+1
|
* lib/oracle.go: add OracleAESRandomEncryptrsiddharth2020-12-091-0/+68
|
* lib/aes: update AESEncryptCBCrsiddharth2020-12-091-0/+7
| | | | Add padding
* lib/aes: update AESEncryptECBrsiddharth2020-12-091-0/+7
| | | | Add padding.
* lib/aes: update AESEncrryptECBrsiddharth2020-12-091-3/+3
| | | | Change argument name `cipher` to `plain`.
* lib/blocks: add Pkcs7PaddingUndorsiddharth2020-12-091-0/+5
|
* lib/blocks: move isECB from ch. 8 in here as BlockIsECBrsiddharth2020-12-081-0/+23
|
* lib/hex: add PrettifyHexStrrsiddharth2020-12-061-0/+12
|
* lib/hex: update BytesToHexStrrsiddharth2020-12-061-1/+1
| | | | Don't add space character.
* lib/aes: add AESEncryptCBCrsiddharth2020-12-061-1/+17
|
* lib/aes: add AESEncryptECBrsiddharth2020-12-061-0/+14
|
* lib/aes: add aesCipherrsiddharth2020-12-061-0/+36
|
* lib/aes: add aesMixColumnsrsiddharth2020-12-061-0/+19
|
* lib/aes: add aesSubBytesrsiddharth2020-12-061-0/+13
|
* lib/aes: add aesShiftRowsrsiddharth2020-12-061-0/+14
|
* lib/aes: AESDecrypt -> AESDecryptECBrsiddharth2020-12-051-1/+1
|
* lib/hex: add HexStrToBytesrsiddharth2020-12-051-0/+19
|
* lib/aes.go: add AESDecryptCBCrsiddharth2020-12-051-0/+16
|
* lib: blocks: add Pkcs7Paddingrsiddharth2020-11-281-0/+13
|
* lib: blocks: add BlocksEqualrsiddharth2020-11-251-0/+13
|
* lib: aes: fix AESDecryptrsiddharth2020-11-231-1/+1
|
* lib: aes: add 'aes' prefix to AES related functionsrsiddharth2020-11-221-21/+21
|
* lib: str: add BytesToStrrsiddharth2020-11-221-0/+8
|
* lib: str: add StrToBytesrsiddharth2020-11-221-0/+8
|
* lib: aes: add AESDecryptrsiddharth2020-11-221-0/+13
|
* lib: aes: add AESInvCipherrsiddharth2020-11-221-0/+34
|
* lib: aes: add InvMixColumnsrsiddharth2020-11-221-0/+19
|
* lib: gf: fix GFMultiplyrsiddharth2020-11-221-2/+2
| | | | | The logXPlusOneOf[a] + logXPlusOneOf[b] addition can go over 255, so make it a uint16 addition.
* lib: aes: add InvSubBytesrsiddharth2020-11-211-0/+33
|
* lib: aes: add InvShiftRowsrsiddharth2020-11-211-0/+13
|
* lib: aes: add AddRoundKeyrsiddharth2020-11-171-0/+24
|
* lib: update MkState docstringrsiddharth2020-11-171-1/+1
|
* lib: add MkStatersiddharth2020-11-161-0/+17
|
* lib/aes.go: fix KeyExpansion docstringrsiddharth2020-11-161-1/+1
|
* lib/aes.go: add KeyExpansionrsiddharth2020-11-141-0/+97
| | | | Written while listening to Neil Young's Decade.
* lib: add BytesToHexStrrsiddharth2020-11-141-0/+9
|
* lib: add GFMultiplyrsiddharth2020-11-081-0/+128
|
* lib: AlphaScore -> AlphaPunchScorersiddharth2020-09-061-1/+1
| | | | | * lib/str.go (AlphaScore): Rename to... (AlphaPunchScore): ...this.
* lib: isAlpha -> isAlphaPunchrsiddharth2020-09-061-2/+3
| | | | | | * lib/str.go (isAlpha): Rename to... (isAlphaPunch): ...this. (AlphaScore): change isAlpha call to isAlphaPunch call.