DH_check function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<DH>, Pointer<Int>)>(ffi.Pointer<DH>, ffi.Pointer<ffi.Int>)>(symbol: 'bssl_dart_DH_check')
int DH_check(
  1. Pointer<DH> dh,
  2. Pointer<Int> out_flags
)

DH_check checks the suitability of |dh| as a Diffie-Hellman group. and sets |DH_CHECK_*| flags in |*out_flags| if it finds any errors. It returns one if |*out_flags| was successfully set and zero on error.

Note: these checks may be quite computationally expensive.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<DH>, ffi.Pointer<ffi.Int>)>(
  symbol: 'bssl_dart_DH_check',
)
external int DH_check(
  ffi.Pointer<DH> dh,
  ffi.Pointer<ffi.Int> out_flags,
);