• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • pkcs11

  • Documentation
  • pkcs11 lib
  • P11_bigint Module
package pkcs11
  • pkcs11
    • P11
    • P11_aes_cbc_encrypt_data_params
    • P11_attribute
    • P11_attribute_type
      • Encoding
    • P11_attribute_types
    • P11_bigint
    • P11_des_cbc_encrypt_data_params
    • P11_ec_kdf
    • P11_ecdh1_derive_params
    • P11_ecmqv_derive_params
    • P11_flags
    • P11_hex_data
    • P11_hw_feature_type
    • P11_info
    • P11_key_attributes
    • P11_key_gen_mechanism
    • P11_key_type
    • P11_mechanism
    • P11_mechanism_info
    • P11_mechanism_type
    • P11_object_class
    • P11_object_handle
    • P11_pkcs5_pbkd2_data_params
    • P11_pkcs5_pbkd2_pseudo_random_function_type
    • P11_pkcs5_pbkdf2_salt_source_type
    • P11_rsa_pkcs_mgf_type
    • P11_rsa_pkcs_oaep_params
    • P11_rsa_pkcs_pss_params
    • P11_rv
    • P11_session_handle
    • P11_session_info
    • P11_slot
    • P11_slot_id
    • P11_slot_info
    • P11_template
    • P11_token_info
    • P11_ulong
    • P11_user_type
    • P11_version
Legend:
Library
Module
Module type
Parameter
Class
Class type

Big integers used in PKCS#11.

PKCS#11 expects them to be encoded in big-endian, so manipulating the underlying representation is error-prone.

type t
val equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val encode : t -> string

Convert to/from a big-endian byte array.

val decode : string -> t
val to_int : t -> int
val of_int : int -> t
val to_string : t -> string
val zero : t
val of_z : Z.t -> t
val to_z : t -> Z.t

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct