let in_b_blocks
    (in_b:buffer128) (in_index count:int) (heap_s:vale_heap) (layout:vale_heap_layout) (ptr:int) (data:seq quad32)
  =
  validSrcAddrsOffset128 heap_s ptr in_b in_index count layout Secret /\
  (forall (i:nat).{:pattern (index data i)}
    i < count /\ i < length data ==>
      reverse_bytes_quad32 (buffer128_read in_b (in_index + i) heap_s) == index data i)
let in_b_blocks
      (in_b: buffer128)
      (in_index count: int)
      (heap_s: vale_heap)
      (layout: vale_heap_layout)
      (ptr: int)
      (data: seq quad32)
     =
validSrcAddrsOffset128 heap_s ptr in_b in_index count layout Secret /\
(forall (i: nat). {:pattern (index data i)}
    i < count /\ i < length data ==>
    reverse_bytes_quad32 (buffer128_read in_b (in_index + i) heap_s) == index data i)
Vale.AES.PPC64LE.GHash.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.Poly1305.Math.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.Types_s.fst.checked Vale.Def.Prop_s.fst.checked Vale.Def.Opaque_s.fsti.checked Vale.Arch.TypesNative.fsti.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.GHash_BE.fsti.checked Vale.AES.GF128_s.fsti.checked Vale.AES.GF128.fsti.checked Vale.AES.GCTR_BE_s.fst.checked Vale.AES.GCTR_BE.fsti.checked Vale.AES.GCM_helpers_BE.fsti.checked Vale.AES.AES_helpers.fsti.checked Vale.AES.AES_BE_s.fst.checked prims.fst.checked FStar.Seq.Base.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
Vale.AES.PPC64LE.GHash.fsti
Vale.PPC64LE.Memory.buffer128 Prims.int Vale.PPC64LE.InsBasic.vale_heap Vale.Arch.HeapImpl.vale_heap_layout FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32 Prims.l_and Vale.PPC64LE.Decls.validSrcAddrsOffset128 Vale.Arch.HeapTypes_s.Secret Prims.l_Forall Prims.nat Prims.l_imp Prims.b2t Prims.op_LessThan FStar.Seq.Base.length Prims.eq2 Vale.Def.Types_s.quad32 Vale.Def.Types_s.reverse_bytes_quad32 Vale.PPC64LE.Decls.buffer128_read Prims.op_Addition FStar.Seq.Base.index Prims.logical
module Vale.AES.PPC64LE.GHash
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.AES.AES_BE_s
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.AES_helpers
open Vale.Poly1305.Math    // For lemma_poly_bits64()
open Vale.AES.GCM_helpers_BE
open Vale.AES.GCTR_BE_s
open Vale.AES.GCTR_BE
open Vale.Arch.TypesNative
open Vale.AES.PPC64LE.PolyOps
open Vale.AES.PPC64LE.GF128_Mul
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
#reset-options "--z3rlimit 50"

unfold let va_subscript_FStar__Seq__Base__seq = Seq.index

let hkeys_b_powers (hkeys_b:buffer128) (heap0:vale_heap) (layout:vale_heap_layout) (ptr:int) (h:poly) =
  validSrcAddrs128 heap0 ptr hkeys_b 3 layout Secret /\
  of_quad32 (reverse_bytes_quad32 (buffer128_read hkeys_b 0 heap0)) == gf128_power h 1 /\
  of_quad32 (reverse_bytes_quad32 (buffer128_read hkeys_b 1 heap0)) == gf128_power h 2

let in_b_blocks
    (in_b:buffer128) (in_index count:int) (heap_s:vale_heap) (layout:vale_heap_layout) (ptr:int) (data:seq quad32)
val in_b_blocks : in_b: Vale.PPC64LE.Memory.buffer128 ->
    in_index: Prims.int ->
    count: Prims.int ->
    heap_s: Vale.PPC64LE.InsBasic.vale_heap ->
    layout: Vale.Arch.HeapImpl.vale_heap_layout ->
    ptr: Prims.int ->
    data: FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32
  -> Prims.logical

    in_b: Vale.PPC64LE.Memory.buffer128 ->
    in_index: Prims.int ->
    count: Prims.int ->
    heap_s: Vale.PPC64LE.InsBasic.vale_heap ->
    layout: Vale.Arch.HeapImpl.vale_heap_layout ->
    ptr: Prims.int ->
    data: FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32
  -> Prims.logical