Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::BN#set_flags
bn.set_flags(flags) => nil
ext/openssl/ossl_bn.c
View on GitHub ↗
static VALUE
ossl_bn_set_flags(VALUE self, VALUE arg)
{
BIGNUM *bn;
GetBN(self, bn);
rb_check_frozen(self);
BN_set_flags(bn, NUM2INT(arg));
return Qnil;
}
Enables the flags on the BN object. Currently, the flags argument can contain zero of OpenSSL::BN::CONSTTIME.