CRYPTO_ocb128_new function
- @Native<Pointer<ocb128_context> Function(Pointer<Void>, Pointer<Void>, Pointer<NativeFunction<Void Function(Pointer<UnsignedChar> in$, Pointer<UnsignedChar> out, Pointer<Void> key)>>, Pointer<NativeFunction<Void Function(Pointer<UnsignedChar> in$, Pointer<UnsignedChar> out, Pointer<Void> key)>>, Pointer<NativeFunction<Void Function(Pointer<UnsignedChar> in$, Pointer<UnsignedChar> out, Size blocks, Pointer<Void> key, Size start_block_num, Pointer<UnsignedChar> offset_i, Pointer<Pointer<UnsignedChar>> L_, Pointer<UnsignedChar> checksum)>>)>(ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.Void>, ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.UnsignedChar> in$, ffi.Pointer<ffi.UnsignedChar> out, ffi.Pointer<ffi.Void> key)>>, ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.UnsignedChar> in$, ffi.Pointer<ffi.UnsignedChar> out, ffi.Pointer<ffi.Void> key)>>, ffi.Pointer<ffi.NativeFunction<ffi.Void Function(ffi.Pointer<ffi.UnsignedChar> in$, ffi.Pointer<ffi.UnsignedChar> out, ffi.Size blocks, ffi.Pointer<ffi.Void> key, ffi.Size start_block_num, ffi.Pointer<ffi.UnsignedChar> offset_i, ffi.Pointer<ffi.Pointer<ffi.UnsignedChar>> L_, ffi.Pointer<ffi.UnsignedChar> checksum)>>)>()
Pointer<ocb128_context>
CRYPTO_ocb128_new(
- Pointer<Void> keyenc,
- Pointer<Void> keydec,
- Pointer<NativeFunction<Void Function(Pointer<UnsignedChar> in$, Pointer<UnsignedChar> out, Pointer<Void> key)>> encrypt,
- Pointer<NativeFunction<Void Function(Pointer<UnsignedChar> in$, Pointer<UnsignedChar> out, Pointer<Void> key)>> decrypt,
- Pointer<NativeFunction<Void Function(Pointer<UnsignedChar> in$, Pointer<UnsignedChar> out, Size blocks, Pointer<Void> key, Size start_block_num, Pointer<UnsignedChar> offset_i, Pointer<Pointer<UnsignedChar>> L_, Pointer<UnsignedChar> checksum)>> stream,
)
Implementation
@ffi.Native<
ffi.Pointer<ocb128_context> Function(
ffi.Pointer<ffi.Void>,
ffi.Pointer<ffi.Void>,
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.UnsignedChar> in$,
ffi.Pointer<ffi.UnsignedChar> out,
ffi.Pointer<ffi.Void> key,
)
>
>,
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.UnsignedChar> in$,
ffi.Pointer<ffi.UnsignedChar> out,
ffi.Pointer<ffi.Void> key,
)
>
>,
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.UnsignedChar> in$,
ffi.Pointer<ffi.UnsignedChar> out,
ffi.Size blocks,
ffi.Pointer<ffi.Void> key,
ffi.Size start_block_num,
ffi.Pointer<ffi.UnsignedChar> offset_i,
ffi.Pointer<ffi.Pointer<ffi.UnsignedChar>> L_,
ffi.Pointer<ffi.UnsignedChar> checksum,
)
>
>,
)
>()
external ffi.Pointer<ocb128_context> CRYPTO_ocb128_new(
ffi.Pointer<ffi.Void> keyenc,
ffi.Pointer<ffi.Void> keydec,
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.UnsignedChar> in$,
ffi.Pointer<ffi.UnsignedChar> out,
ffi.Pointer<ffi.Void> key,
)
>
>
encrypt,
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.UnsignedChar> in$,
ffi.Pointer<ffi.UnsignedChar> out,
ffi.Pointer<ffi.Void> key,
)
>
>
decrypt,
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<ffi.UnsignedChar> in$,
ffi.Pointer<ffi.UnsignedChar> out,
ffi.Size blocks,
ffi.Pointer<ffi.Void> key,
ffi.Size start_block_num,
ffi.Pointer<ffi.UnsignedChar> offset_i,
ffi.Pointer<ffi.Pointer<ffi.UnsignedChar>> L_,
ffi.Pointer<ffi.UnsignedChar> checksum,
)
>
>
stream,
);