Revision aa1ca8698adfe929a9eff86ac143eaf90fc3e8ee authored by Jay Bosamiya on 03 June 2019, 21:51:38 UTC, committed by Jay Bosamiya on 03 June 2019, 21:51:38 UTC
1 parent 6055e85
Raw File
Lib.RawIntTypes.fst
module Lib.RawIntTypes

open Lib.IntTypes

(* This module offers direct access to the internals of IntTypes.
   Typechecking it requires full access to IntTypes.fst (not just IntTypes.fsti)
   Use only if you need to, because using this module will load more F* dependencies.
   More importantly, using the u*_to_UInt* functions BREAKS secret independence.  *)

friend Lib.IntTypes

let u8_from_UInt8 x = x

let u16_from_UInt16 x = x

let u32_from_UInt32 x = x

let u64_from_UInt64 x = x

let u128_from_UInt128 x = x

let size_from_UInt32 x = x

let u8_to_UInt8 x = x

let u16_to_UInt16 x = x

let u32_to_UInt32 x = x

let u64_to_UInt64 x = x

let u128_to_UInt128 x = x

let size_to_UInt32 x = x

let uint_to_nat #t #l (x:uint_t t l) = uint_v #t #l x
back to top