crypto/null: use ring size function