Low-weight guard in EC keypair generator