porting code from bouncy castle examples to make shit work
signing works