# PBC library: group of composite order for pairing operation

How to generate composite order group using PBC library? With PBC library, element_init_G1(g,pairing) statement creates element $g$ for group of prime order. I want to know how element of composite order group is created.

• Pairings of Type A1 support groups of composite order, but PBC doesn't seem to support the generation of group orders with more than two prime factors. You can see how jPBC does it. Anyway, this site is generally not for programming problems. Stack Overflow is more appropriate for those. – Artjom B. Jan 11 '16 at 10:47
• Relic(github.com/relic-toolkit/relic) is probably a better library to use than PBC. It's faster and actually still under active development. I think it supports composite order groups, but I am not sure. – imichaelmiers Jan 12 '16 at 18:39