summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* lib: remove genKeyrsiddharth2020-09-061-14/+0
| | | | * lib/hamming.go (genKey): Remove function.
* lib: update KeySizeWithMinDistancersiddharth2020-09-061-3/+3
| | | | | | * lib/hamming.go (KeySizeWithMinDistance): Add argument 'bs'. Use first K bytes and next K bytes of 'bs' for 'p' and 'q'.
* lib: remove KeySizeWithMinDistanceIterrsiddharth2020-09-061-15/+0
|
* lib: add BreakIntoBlocksrsiddharth2020-09-061-1/+1
| | | | * lib/blocks.go (BreakIntoBlocks): Fix typo -- 8 -> keysize.
* lib: update XORCrackSingleKeyrsiddharth2020-09-061-5/+5
| | | | | * lib/brute.go (XORCrackSingleKey): Simplify function; use FillBytes and FixedXORBytes
* lib: update isAlpharsiddharth2020-09-061-0/+6
| | | | * lib/str.go (isAlpha): Add common punctuation.
* lib: add FillBytesrsiddharth2020-09-061-0/+11
| | | | * lib/str.go (FillBytes): New function.
* lib: add FixedXORBytesrsiddharth2020-09-061-0/+12
| | | | * lib/xor.go (FixedXORBytes): New function.
* lib: add TransposeBlocksrsiddharth2020-09-061-0/+17
| | | | * lib/blocks.go (TransposeBlocks): New function.
* lib: add BreakIntoBlocksrsiddharth2020-09-061-0/+32
| | | | * lib/blocks.go (BreakIntoBlocks): New function.
* lib: add AlphaScorersiddharth2020-09-051-0/+10
| | | | * lib/str.go (AlphaScore): New function.
* lib: add isAlpharsiddharth2020-09-051-0/+10
| | | | * lib/str.go (isAlpha): New function.
* lib: move around stripSpaceCharsrsiddharth2020-09-052-15/+15
| | | | | * lib/b64.go (stripSpaceChars): Move to... * lib/str.go (stripSpaceChars): ...here.
* lib: add Base64ToBytesrsiddharth2020-09-051-0/+32
| | | | | | * lib/b64.go (Base64ToBytes): New function. lib/b64.go
* lib: add indexrsiddharth2020-09-051-0/+10
| | | | * lib/b64.go (index): New function.
* lib: add stripSpaceCharsrsiddharth2020-09-051-0/+15
| | | | * lib/b64.go (stripSpaceChars): New function.
* lib: add KeySizeWithMinDistanceIterrsiddharth2020-09-051-0/+14
| | | | * lib/hamming.go (KeySizeWithMinDistanceIter): New function.
* lib: add KeySizeWithMinDistancersiddharth2020-09-051-0/+23
| | | | * lib/hamming.go (KeySizeWithMinDistance): New function.