Get the underlying pointer for ruby object val
and return it as a Fiddle::Pointer
object.
accessor to Fiddle::CStructEntity
accessor to Fiddle::CUnionEntity
Calculates the offsets and sizes for the given types
in the struct.
Calculate the necessary offset and for each union member with the given types
Calls wait repeatedly until the given block yields a truthy value.
Generates a random prime number of bit length bits. If safe is set to true
, generates a safe prime. If add is specified, generates a prime that fulfills condition p % add = rem
.
Tests bit bit in bn and returns true
if set, false
if not set.
Enables the flags on the BN
object. Currently, the flags argument can contain zero of OpenSSL::BN::CONSTTIME
.
Set
the defaults for this engine with the given flag.
These flags are used to control combinations of algorithm methods.
flag can be one of the following, other flags are available depending on your OS.
0xFFFF
0x0000
See also <openssl/engine.h>
Sets MAC parameters and generates MAC over the PKCS #12 structure.
This method uses HMAC
and the PKCS #12 specific password-based KDF
as specified in the original PKCS #12.
See also the man page PKCS12_set_mac(3).
Added in version 3.3.0.
Emit a sequence with map
and tag