val va_req_Keyhash_init
      (va_b0: va_code)
      (va_s0: va_state)
      (win: bool)
      (alg: algorithm)
      (key: (seq nat32))
      (roundkeys_b hkeys_b: buffer128)
    : prop
let va_req_Keyhash_init (va_b0:va_code) (va_s0:va_state) (win:bool) (alg:algorithm) (key:(seq
  nat32)) (roundkeys_b:buffer128) (hkeys_b:buffer128) : prop =
  (va_require_total va_b0 (va_code_Keyhash_init win alg) va_s0 /\ va_get_ok va_s0 /\ (let
    (round_ptr:(va_int_range 0 18446744073709551615)) = (if win then va_get_reg64 rRcx va_s0 else
    va_get_reg64 rRdi va_s0) in let (hkey_ptr:(va_int_range 0 18446744073709551615)) = (if win then
    va_get_reg64 rRdx va_s0 else va_get_reg64 rRsi va_s0) in Vale.X64.Memory.is_initial_heap
    (va_get_mem_layout va_s0) (va_get_mem va_s0) /\ (aesni_enabled /\ pclmulqdq_enabled /\
    avx_enabled /\ sse_enabled) /\ (alg = AES_128 \/ alg = AES_256) /\
    Vale.X64.Decls.buffers_disjoint128 roundkeys_b hkeys_b /\ Vale.AES.AES_s.is_aes_key_LE alg key
    /\ Vale.X64.Decls.buffer128_as_seq (va_get_mem va_s0) roundkeys_b ==
    Vale.AES.AES_s.key_to_round_keys_LE alg key /\ Vale.X64.Decls.validSrcAddrs128 (va_get_mem
    va_s0) round_ptr roundkeys_b (Vale.AES.AES_common_s.nr alg + 1) (va_get_mem_layout va_s0)
    Secret /\ Vale.X64.Decls.validDstAddrs128 (va_get_mem va_s0) hkey_ptr hkeys_b 8
    (va_get_mem_layout va_s0) Secret))
val va_req_Keyhash_init
      (va_b0: va_code)
      (va_s0: va_state)
      (win: bool)
      (alg: algorithm)
      (key: (seq nat32))
      (roundkeys_b hkeys_b: buffer128)
    : prop
let va_req_Keyhash_init
      (va_b0: va_code)
      (va_s0: va_state)
      (win: bool)
      (alg: algorithm)
      (key: (seq nat32))
      (roundkeys_b hkeys_b: buffer128)
    : prop =
(va_require_total va_b0 (va_code_Keyhash_init win alg) va_s0 /\ va_get_ok va_s0 /\
  (let round_ptr:(va_int_range 0 18446744073709551615) =
      (if win then va_get_reg64 rRcx va_s0 else va_get_reg64 rRdi va_s0)
    in
    let hkey_ptr:(va_int_range 0 18446744073709551615) =
      (if win then va_get_reg64 rRdx va_s0 else va_get_reg64 rRsi va_s0)
    in
    Vale.X64.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\
    (aesni_enabled /\ pclmulqdq_enabled /\ avx_enabled /\ sse_enabled) /\
    (alg = AES_128 \/ alg = AES_256) /\ Vale.X64.Decls.buffers_disjoint128 roundkeys_b hkeys_b /\
    Vale.AES.AES_s.is_aes_key_LE alg key /\
    Vale.X64.Decls.buffer128_as_seq (va_get_mem va_s0) roundkeys_b ==
    Vale.AES.AES_s.key_to_round_keys_LE alg key /\
    Vale.X64.Decls.validSrcAddrs128 (va_get_mem va_s0)
      round_ptr
      roundkeys_b
      (Vale.AES.AES_common_s.nr alg + 1)
      (va_get_mem_layout va_s0)
      Secret /\
    Vale.X64.Decls.validDstAddrs128 (va_get_mem va_s0)
      hkey_ptr
      hkeys_b
      8
      (va_get_mem_layout va_s0)
      Secret))
Vale.AES.X64.GF128_Init.fsti.checked
Vale.X64.State.fsti.checked Vale.X64.QuickCodes.fsti.checked Vale.X64.QuickCode.fst.checked Vale.X64.Memory.fsti.checked Vale.X64.Machine_s.fst.checked Vale.X64.InsVector.fsti.checked Vale.X64.InsMem.fsti.checked Vale.X64.InsBasic.fsti.checked Vale.X64.InsAes.fsti.checked Vale.X64.Flags.fsti.checked Vale.X64.Decls.fsti.checked Vale.X64.CPU_Features_s.fst.checked Vale.Math.Poly2_s.fsti.checked Vale.Math.Poly2.Lemmas.fsti.checked Vale.Math.Poly2.Bits_s.fsti.checked Vale.Math.Poly2.Bits.fsti.checked Vale.Math.Poly2.fsti.checked Vale.Def.Words_s.fsti.checked Vale.Def.Words.Four_s.fsti.checked Vale.Def.Types_s.fst.checked Vale.Arch.Types.fsti.checked Vale.Arch.HeapImpl.fsti.checked Vale.AES.X64.PolyOps.fsti.checked Vale.AES.X64.GF128_Mul.fsti.checked Vale.AES.X64.AES.fsti.checked Vale.AES.OptPublic.fsti.checked Vale.AES.GHash.fsti.checked Vale.AES.GF128_s.fsti.checked Vale.AES.GF128.fsti.checked Vale.AES.AES_s.fst.checked Vale.AES.AES_common_s.fst.checked Vale.AES.AES256_helpers.fsti.checked prims.fst.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
Vale.AES.X64.GF128_Init.fsti
Vale.X64.Decls.va_code Vale.X64.Decls.va_state Prims.bool Vale.AES.AES_common_s.algorithm FStar.Seq.Base.seq Vale.X64.Memory.nat32 Vale.X64.Memory.buffer128 Prims.l_and Vale.X64.Decls.va_require_total Vale.AES.X64.GF128_Init.va_code_Keyhash_init Prims.b2t Vale.X64.Decls.va_get_ok Vale.X64.Memory.is_initial_heap Vale.X64.Decls.va_get_mem_layout Vale.X64.Decls.va_get_mem Vale.X64.CPU_Features_s.aesni_enabled Vale.X64.CPU_Features_s.pclmulqdq_enabled Vale.X64.CPU_Features_s.avx_enabled Vale.X64.CPU_Features_s.sse_enabled Prims.l_or Prims.op_Equality Vale.AES.AES_common_s.AES_128 Vale.AES.AES_common_s.AES_256 Vale.X64.Decls.buffers_disjoint128 Vale.AES.AES_s.is_aes_key_LE Prims.eq2 Vale.Def.Types_s.quad32 Vale.X64.Decls.buffer128_as_seq Vale.AES.AES_s.key_to_round_keys_LE Vale.X64.Decls.validSrcAddrs128 Prims.op_Addition Vale.AES.AES_common_s.nr Vale.Arch.HeapTypes_s.Secret Vale.X64.Decls.validDstAddrs128 Vale.X64.Decls.va_int_range Vale.X64.Decls.va_get_reg64 Vale.X64.Machine_s.rRdx Vale.X64.Machine_s.rRsi Vale.X64.Machine_s.rRcx Vale.X64.Machine_s.rRdi Prims.prop
module Vale.AES.X64.GF128_Init
open Vale.Def.Words_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Math.Poly2_s
open Vale.Math.Poly2
open Vale.Math.Poly2.Bits_s
open Vale.Math.Poly2.Bits
open Vale.Math.Poly2.Lemmas
open Vale.AES.GF128_s
open Vale.AES.GF128
open Vale.AES.GHash
open Vale.AES.AES_s
open Vale.AES.AES256_helpers
open Vale.AES.X64.AES
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsVector
open Vale.X64.InsAes
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
open Vale.AES.X64.PolyOps
open Vale.AES.X64.GF128_Mul
open Vale.AES.GHash
open Vale.AES.OptPublic
//-- Keyhash_init

val va_code_Keyhash_init : win:bool -> alg:algorithm -> Tot va_code

val va_codegen_success_Keyhash_init : win:bool -> alg:algorithm -> Tot va_pbool
let va_req_Keyhash_init (va_b0:va_code) (va_s0:va_state) (win:bool) (alg:algorithm) (key:(seq
val va_req_Keyhash_init
      (va_b0: va_code)
      (va_s0: va_state)
      (win: bool)
      (alg: algorithm)
      (key: (seq nat32))
      (roundkeys_b hkeys_b: buffer128)
    : prop

    va_b0: Vale.X64.Decls.va_code ->
    va_s0: Vale.X64.Decls.va_state ->
    win: Prims.bool ->
    alg: Vale.AES.AES_common_s.algorithm ->
    key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
    roundkeys_b: Vale.X64.Memory.buffer128 ->
    hkeys_b: Vale.X64.Memory.buffer128
  -> Prims.prop