val va_req_Keyhash_init
      (va_b0: va_code)
      (va_s0: va_state)
      (alg: algorithm)
      (key: (seq nat32))
      (roundkeys_b hkeys_b: buffer128)
    : prop
let va_req_Keyhash_init (va_b0:va_code) (va_s0:va_state) (alg:algorithm) (key:(seq nat32))
  (roundkeys_b:buffer128) (hkeys_b:buffer128) : prop =
  (va_require_total va_b0 (va_code_Keyhash_init alg) va_s0 /\ va_get_ok va_s0 /\
    Vale.PPC64LE.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\ (alg =
    AES_128 \/ alg = AES_256) /\ Vale.PPC64LE.Decls.buffers_disjoint128 roundkeys_b hkeys_b /\
    Vale.AES.AES_BE_s.is_aes_key_word alg key /\ Vale.Arch.Types.reverse_bytes_quad32_seq
    (Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem va_s0) roundkeys_b) ==
    Vale.AES.AES_BE_s.key_to_round_keys_word alg key /\ Vale.PPC64LE.Decls.validSrcAddrs128
    (va_get_mem va_s0) (va_get_reg 4 va_s0) roundkeys_b (Vale.AES.AES_common_s.nr alg + 1)
    (va_get_mem_layout va_s0) Secret /\ Vale.PPC64LE.Decls.validDstAddrs128 (va_get_mem va_s0)
    (va_get_reg 3 va_s0) hkeys_b 3 (va_get_mem_layout va_s0) Secret)
val va_req_Keyhash_init
      (va_b0: va_code)
      (va_s0: va_state)
      (alg: algorithm)
      (key: (seq nat32))
      (roundkeys_b hkeys_b: buffer128)
    : prop
let va_req_Keyhash_init
      (va_b0: va_code)
      (va_s0: va_state)
      (alg: algorithm)
      (key: (seq nat32))
      (roundkeys_b hkeys_b: buffer128)
    : prop =
(va_require_total va_b0 (va_code_Keyhash_init alg) va_s0 /\ va_get_ok va_s0 /\
  Vale.PPC64LE.Memory.is_initial_heap (va_get_mem_layout va_s0) (va_get_mem va_s0) /\
  (alg = AES_128 \/ alg = AES_256) /\ Vale.PPC64LE.Decls.buffers_disjoint128 roundkeys_b hkeys_b /\
  Vale.AES.AES_BE_s.is_aes_key_word alg key /\
  Vale.Arch.Types.reverse_bytes_quad32_seq (Vale.PPC64LE.Decls.buffer128_as_seq (va_get_mem va_s0)
        roundkeys_b) ==
  Vale.AES.AES_BE_s.key_to_round_keys_word alg key /\
  Vale.PPC64LE.Decls.validSrcAddrs128 (va_get_mem va_s0)
    (va_get_reg 4 va_s0)
    roundkeys_b
    (Vale.AES.AES_common_s.nr alg + 1)
    (va_get_mem_layout va_s0)
    Secret /\
  Vale.PPC64LE.Decls.validDstAddrs128 (va_get_mem va_s0)
    (va_get_reg 3 va_s0)
    hkeys_b
    3
    (va_get_mem_layout va_s0)
    Secret)
Vale.AES.PPC64LE.GF128_Init.fsti.checked
Vale.PPC64LE.State.fsti.checked Vale.PPC64LE.QuickCodes.fsti.checked Vale.PPC64LE.QuickCode.fst.checked Vale.PPC64LE.Memory.fsti.checked Vale.PPC64LE.Machine_s.fst.checked Vale.PPC64LE.InsVector.fsti.checked Vale.PPC64LE.InsMem.fsti.checked Vale.PPC64LE.InsBasic.fsti.checked Vale.PPC64LE.Decls.fsti.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.PPC64LE.PolyOps.fsti.checked Vale.AES.PPC64LE.GF128_Mul.fsti.checked Vale.AES.PPC64LE.AES.fsti.checked Vale.AES.OptPublic_BE.fsti.checked Vale.AES.GHash_BE.fsti.checked Vale.AES.GF128_s.fsti.checked Vale.AES.GF128.fsti.checked Vale.AES.AES_common_s.fst.checked Vale.AES.AES_BE_s.fst.checked Vale.AES.AES256_helpers_BE.fsti.checked prims.fst.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
Vale.AES.PPC64LE.GF128_Init.fsti
Vale.PPC64LE.Decls.va_code Vale.PPC64LE.Decls.va_state Vale.AES.AES_common_s.algorithm FStar.Seq.Base.seq Vale.PPC64LE.Memory.nat32 Vale.PPC64LE.Memory.buffer128 Prims.l_and Vale.PPC64LE.Decls.va_require_total Vale.AES.PPC64LE.GF128_Init.va_code_Keyhash_init Prims.b2t Vale.PPC64LE.Decls.va_get_ok Vale.PPC64LE.Memory.is_initial_heap Vale.PPC64LE.Decls.va_get_mem_layout Vale.PPC64LE.Decls.va_get_mem Prims.l_or Prims.op_Equality Vale.AES.AES_common_s.AES_128 Vale.AES.AES_common_s.AES_256 Vale.PPC64LE.Decls.buffers_disjoint128 Vale.AES.AES_BE_s.is_aes_key_word Prims.eq2 Vale.Def.Types_s.quad32 Vale.Arch.Types.reverse_bytes_quad32_seq Vale.PPC64LE.Decls.buffer128_as_seq Vale.AES.AES_BE_s.key_to_round_keys_word Vale.PPC64LE.Decls.validSrcAddrs128 Vale.PPC64LE.Decls.va_get_reg Prims.op_Addition Vale.AES.AES_common_s.nr Vale.Arch.HeapTypes_s.Secret Vale.PPC64LE.Decls.validDstAddrs128 Prims.prop
module Vale.AES.PPC64LE.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_BE
open Vale.AES.AES_BE_s
open Vale.AES.AES256_helpers_BE
open Vale.AES.PPC64LE.AES
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale.PPC64LE.InsBasic
open Vale.PPC64LE.InsMem
open Vale.PPC64LE.InsVector
open Vale.PPC64LE.QuickCode
open Vale.PPC64LE.QuickCodes
open Vale.AES.PPC64LE.PolyOps
open Vale.AES.PPC64LE.GF128_Mul
open Vale.AES.OptPublic_BE
//-- Keyhash_init

val va_code_Keyhash_init : alg:algorithm -> Tot va_code

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

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