Lines Matching refs:typ
14 typ := typ0.(*prog.StructType)
15 family := g.GenerateArg(typ.Fields[0], &calls)
18 feat := prog.MakeConstArg(typ.Fields[2], 0)
19 mask := prog.MakeConstArg(typ.Fields[3], 0)
21 feat = g.GenerateArg(typ.Fields[2], &calls).(*prog.ConstArg)
22 mask = g.GenerateArg(typ.Fields[3], &calls).(*prog.ConstArg)
26 algTypeData := fixedSizeData(algType, typ.Fields[1].Size())
27 algNameData := fixedSizeData(algName, typ.Fields[4].Size())
28 arg = prog.MakeGroupArg(typ, []prog.Arg{
30 prog.MakeDataArg(typ.Fields[1], algTypeData),
33 prog.MakeDataArg(typ.Fields[4], algNameData),
38 func (arch *arch) generateAlgName(g *prog.Gen, typ prog.Type, old prog.Arg) (
40 return generateAlgNameStruct(g, typ, allTypes[g.Rand().Intn(len(allTypes))].typ)
43 func (arch *arch) generateAlgAeadName(g *prog.Gen, typ prog.Type, old prog.Arg) (
45 return generateAlgNameStruct(g, typ, ALG_AEAD)
48 func (arch *arch) generateAlgHashName(g *prog.Gen, typ prog.Type, old prog.Arg) (
50 return generateAlgNameStruct(g, typ, ALG_HASH)
53 func (arch *arch) generateAlgBlkcipherhName(g *prog.Gen, typ prog.Type, old prog.Arg) (
55 return generateAlgNameStruct(g, typ, ALG_BLKCIPHER)
59 typ := typ0.(*prog.StructType)
61 algNameData := fixedSizeData(algName, typ.Fields[0].Size())
62 arg = prog.MakeGroupArg(typ, []prog.Arg{
63 prog.MakeDataArg(typ.Fields[0], algNameData),
69 typ := allTypes[rnd.Intn(len(allTypes))]
70 name := generateAlg(rnd, typ.typ)
71 return typ.name, name
74 func generateAlg(rnd *rand.Rand, typ int) string {
75 algs := allAlgs[typ]
101 typ int member