public static BIG hashModOrder ( byte [ ] data ) { HASH256 hash = new HASH256 ( ) ; for ( byte b : data ) { hash . process ( b ) ; } byte [ ] hasheddata = hash . hash ( ) ; BIG ret = BIG . fromBytes ( hasheddata ) ; ret . mod ( IdemixUtils . GROUP_ORDER ) ; return ret ; }
hashModOrder hashes bytes to an amcl . BIG in 0 ... GROUP_ORDER