BN_set_bit function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<BIGNUM>, Int)>(ffi.Pointer<BIGNUM>, ffi.Int)>(symbol: 'bssl_dart_BN_set_bit')
int BN_set_bit(
  1. Pointer<BIGNUM> a,
  2. int n
)

BN_set_bit sets the |n|th, least-significant bit in |a|. For example, if |a| is 2 then setting bit zero will make it 3. It returns one on success or zero on allocation failure.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<BIGNUM>, ffi.Int)>(
  symbol: 'bssl_dart_BN_set_bit',
)
external int BN_set_bit(
  ffi.Pointer<BIGNUM> a,
  int n,
);