summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* lib: add BytesToUint32ssiddharth2021-10-091-0/+22
|
* lib: refactor sha1 implementationsiddharth2021-10-091-7/+23
| | | | Add ability to set initial hash values for Sha1
* lib: Sha1MacVerifysiddharth2021-10-051-0/+6
|
* lib: add Sha1Macsiddharth2021-10-051-0/+5
|
* lib: implement sha1siddharth2021-09-261-0/+209
|
* lib: CPError.err -> CPError.Errsiddharth2021-09-191-2/+2
|
* lib: aesInvCipher -> AESInvCiphersiddharth2021-09-191-3/+3
|
* lib/rng.go: remove blank linesiddharth2021-09-121-1/+0
|
* lib: aesCipher -> AESCiphersiddharth2021-09-121-4/+4
|
* lib: remove MTTokensiddharth2021-09-091-23/+0
|
* lib: MTPasswordResetToken -> MTTokensiddharth2021-09-041-1/+3
|
* lib: MTPpasswordResetTokensiddharth2021-09-041-0/+22
|
* lib: add MTXORStreamsiddharth2021-09-041-0/+49
|
* lib: add BytesEqualsiddharth2021-09-041-0/+4
|
* lib: MTRand.index -> MTRand.Indexsiddharth2021-08-181-6/+7
|
* lib: MTRand.genSt -> MTRand.GenSTsiddharth2021-08-181-8/+8
|
* lib: add MTRand.UnTempersiddharth2021-08-171-0/+21
|
* lib: rng.go: remove MTSeed, MTExtract, and friendssiddharth2021-08-171-46/+0
|
* lib: add MTRand type and methodssiddharth2021-08-171-0/+50
| | | | This is going to replace MTSeed and MTExtract functions.
* challenge: do challenge 22siddharth2021-07-011-0/+11
|
* challenge: do challenge 21siddharth2021-06-271-0/+69
|
* lib: update AlphaPunchScoresiddharth2021-06-191-20/+1
| | | | | - Use AsciiScores for scores - Remove isAlphaPunch
* lib: add PrintableAscii, AsciiScoressiddharth2021-06-191-0/+27
| | | | Extracted from challenge 19
* lib: update RepeatingXORsiddharth2021-06-191-11/+5
| | | | | | - Change input type to []byte. - Change retur type to []byte. - Update RepeatingXOR calls in challenge 5 an 6.
* lib/byte.go: fix copyrightsiddharth2021-06-061-1/+1
|
* lib: add `ByteIsUpper`siddharth2021-06-061-0/+7
|
* lib: update `BytesInCommon`siddharth2021-06-051-2/+4
| | | | | Ensure that the returned `common` array does not point to any of the []byte arrays in `bbytes`.
* lib/byte.go: update `BytesInCommon` docsiddharth2021-06-051-1/+2
|
* lib: add byte.gosiddharth2021-06-051-0/+31
| | | | | - Add `ByteInBytes` function - Add `BytesInCommon` function
* lib: add ByteToUpperrsiddharth2021-03-061-5/+9
|
* lib: add AESGenCTRFuncrsiddharth2021-03-031-0/+23
|
* lib: add AESEncryptCTRrsiddharth2021-03-031-5/+16
|
* lib: add AESDecryptCTRrsiddharth2021-03-011-0/+25
|
* lib: remove oracle.gorsiddharth2021-02-241-36/+0
| | | | Move functions into C12 and C14 where they're used.
* lib: remove OracleAESRandomEncryptrsiddharth2021-02-242-33/+1
| | | | Move function into C11 where it is used.
* lib: remove web.gorsiddharth2021-02-241-94/+0
| | | | Move all its functions to C13 where it is used.
* lib: update webSessionEncryptionKeyrsiddharth2021-02-241-4/+4
| | | | Use RandomBytes to set `webSessionEncryptionKey`
* lib: randomBytes -> randomBytesWithLengthBetweenrsiddharth2021-02-242-3/+3
|
* lib: RandomKey -> RandomBytesrsiddharth2021-02-242-5/+5
|
* challenge: ch17.go: don't use lib.OracleKey and lib.OracleIVrsiddharth2021-02-241-10/+4
|
* lib: put rand functions in rand.gorsiddharth2021-02-242-49/+59
|
* lib: add OracleIVrsiddharth2021-02-211-0/+6
|
* lib: update Pkcs7PaddingUndo, AESDecryptCBCrsiddharth2021-02-112-7/+7
| | | | | Add error as the second return value to Pkcs7PaddingUndo and AESDecryptCBC.
* lib: add CPErrorrsiddharth2021-02-111-0/+11
|
* lib: oracleKey -> OracleKeyrsiddharth2021-02-111-4/+4
|
* lib: randomInt -> RandomIntrsiddharth2021-02-111-4/+4
|
* lib: add StrHasrsiddharth2021-01-301-0/+10
|
* lib: update StripSpaceCharsrsiddharth2021-01-301-0/+3
| | | | strip 'NUL' character too.
* lib: stripSpaceChars -> StripSpaceCharsrsiddharth2021-01-303-3/+3
|
* lib: add StrToUpperrsiddharth2021-01-271-0/+12
|