summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* lib: fix HexStrToBytessiddharth2021-10-161-1/+1
|
* lib: add HmacSha1siddharth2021-10-122-0/+116
|
* lib: move around MDPaddingsiddharth2021-10-121-42/+42
|
* lib: add BytesToUint32sLittleEndiansiddharth2021-10-111-0/+22
|
* lib: add Mac and MacVerify for md4siddharth2021-10-112-0/+33
|
* lib: md4Padding -> Md4Paddingsiddharth2021-10-111-2/+2
|
* lib: implement md4siddharth2021-10-102-0/+311
|
* Revert "lib: move common hashing functions to hash.go"siddharth2021-10-102-68/+67
| | | | This reverts commit 15e142c3f12fd9228b69bcaf4a2703c9d8205d59.
* lib: move sha arithmetic functions to hash.gosiddharth2021-10-102-27/+27
|
* lib: sha_test: reformat import statementsiddharth2021-10-101-3/+1
|
* lib: add test for sha1siddharth2021-10-101-0/+46
|
* lib: move common hashing functions to hash.gosiddharth2021-10-102-67/+72
|
* lib: update HexStrToAsciiStrsiddharth2021-10-101-2/+2
| | | | Convert uint16 to byte before converting it to a string.
* lib: refactor sha1 padding and hashingsiddharth2021-10-091-20/+30
| | | | | Refactor so that the Sha1 message length can be fudged before the message is hashed; for use in challenge 29.
* lib: update sha1Padsiddharth2021-10-091-32/+2
| | | | Use MDPadding for padding the message.
* lib: add MPPaddingsiddharth2021-10-091-0/+41
|
* 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.