summaryrefslogblamecommitdiffstats
path: root/cryptopals.go
blob: a5f5e90c2f5936e81e83db4db5803bc8e12f87f1 (plain) (tree)
1
2
3


                                                    


















                                               

                              

                              

                              

                              

                              

                              

                              

                              

                               

                               

                               

                               

                               

                               

         
// Copyright © 2020 rsiddharth <s@ricketyspace.net>
// SPDX-License-Identifier: ISC

package main

import (
	"flag"
	"ricketyspace.net/cryptopals/challenge"
)

var c = flag.Int("c", 0, "Challenge to run")

func init() {
	flag.Parse()
}

func main() {
	switch *c {
	case 0:
		flag.PrintDefaults()
	case 1:
		challenge.C1()
	case 2:
		challenge.C2()
	case 3:
		challenge.C3()
	case 4:
		challenge.C4()
	case 5:
		challenge.C5()
	case 6:
		challenge.C6()
	case 7:
		challenge.C7()
	case 8:
		challenge.C8()
	case 9:
		challenge.C9()
	case 10:
		challenge.C10()
	case 11:
		challenge.C11()
	case 12:
		challenge.C12()
	case 13:
		challenge.C13()
	case 14:
		challenge.C14()
	case 15:
		challenge.C15()
	}
}