package camlpdf

  1. Overview
  2. Docs
type encryption =
  1. | ARC4 of int * int
  2. | AESV2
  3. | AESV3 of bool
val aes_cook_encrypt_key : string -> string
val aes_cook_decrypt_key : string -> string
val aes_encrypt : string -> Pdfio.caml_bytes -> int -> Pdfio.caml_bytes -> int -> unit
val aes_decrypt : string -> Pdfio.caml_bytes -> int -> Pdfio.caml_bytes -> int -> unit
val sha_256 : string -> string
val sha_384 : string -> string
val sha_512 : string -> string
val key_expansion : 'a -> int array -> string
val key_expansion_decrypt : 'a -> int array -> string
val ksa : int array -> int array -> unit
val prga : int array -> int ref -> int ref -> int
val crypt : int array -> Pdfio.bytes -> Pdfio.bytes
val ran255 : unit -> int
val mkiv : unit -> int array
val get_blocks : Pdfio.bytes -> int array list
val bytes_of_blocks : int array list -> Pdfio.bytes
val get_padding : Pdfio.bytes -> int option
val cutshort : Pdfio.bytes -> Pdfio.bytes
val print_txt : Pdfio.bytes -> int -> unit
val aes_decrypt_data : ?remove_padding:bool -> 'a -> int array -> Pdfio.bytes -> Pdfio.bytes
val aes_decrypt_data_ecb : ?remove_padding:bool -> 'a -> int array -> Pdfio.bytes -> Pdfio.bytes
val aes_encrypt_data : ?firstblock:int array -> 'a -> int array -> Pdfio.bytes -> Pdfio.bytes
val aes_encrypt_data_ecb : 'a -> int array -> Pdfio.bytes -> Pdfio.bytes
val string_of_input : Pdfio.input -> string
val sha256 : Pdfio.input -> string
val sha384 : Pdfio.input -> string
val sha512 : Pdfio.input -> string
val find_hash : encryption -> int32 -> int32 -> int array -> int -> int array
val decrypt_stream_data : encryption -> bool -> string option -> int -> int -> int array -> int -> int -> Pdfio.bytes -> Pdfio.bytes
OCaml

Innovation. Community. Security.