val aes_reqs
      (alg: algorithm)
      (key: seq nat32)
      (round_keys: seq quad32)
      (keys_b: buffer128)
      (key_ptr: nat64)
      (heap0: vale_heap)
      (layout: vale_heap_layout)
    : prop0
val aes_reqs
      (alg: algorithm)
      (key: seq nat32)
      (round_keys: seq quad32)
      (keys_b: buffer128)
      (key_ptr: nat64)
      (heap0: vale_heap)
      (layout: vale_heap_layout)
    : prop0
let aes_reqs
  (alg:algorithm) (key:seq nat32) (round_keys:seq quad32) (keys_b:buffer128)
  (key_ptr:nat64) (heap0:vale_heap) (layout:vale_heap_layout) : prop0
  =
  aesni_enabled /\ avx_enabled /\
  (alg = AES_128 || alg = AES_256) /\
  is_aes_key_LE alg key /\
  length(round_keys) == nr(alg) + 1 /\
  round_keys == key_to_round_keys_LE alg key /\
  key_ptr == buffer_addr keys_b heap0 /\
  validSrcAddrs128 heap0 key_ptr keys_b (nr alg + 1) layout Secret /\
  buffer128_as_seq heap0 keys_b == round_keys
module Vale.AES.X64.AESCTR
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_s
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.AES.AES_helpers
open Vale.Poly1305.Math    // For lemma_poly_bits64()
open Vale.AES.GCM_helpers
open Vale.AES.GCTR_s
open Vale.AES.GCTR
open Vale.Arch.TypesNative
open Vale.AES.X64.GHash
open Vale.AES.GHash
/
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.Poly1305.Math.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.X64.GHash.fsti.checked Vale.AES.GHash.fsti.checked Vale.AES.GCTR_s.fst.checked Vale.AES.GCTR.fsti.checked Vale.AES.GCM_helpers.fsti.checked Vale.AES.AES_s.fst.checked Vale.AES.AES_helpers.fsti.checked prims.fst.checked FStar.Seq.Base.fsti.checked FStar.Seq.fst.checked FStar.Pervasives.Native.fst.checked FStar.Pervasives.fsti.checked
Vale.AES.X64.AESCTR.fsti

    alg: Vale.AES.AES_common_s.algorithm ->
    key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 ->
    round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
    keys_b: Vale.X64.Memory.buffer128 ->
    key_ptr: Vale.X64.Memory.nat64 ->
    heap0: Vale.X64.InsBasic.vale_heap ->
    layout: Vale.Arch.HeapImpl.vale_heap_layout
  -> Vale.Def.Prop_s.prop0
Vale.AES.AES_common_s.algorithm FStar.Seq.Base.seq Vale.X64.Memory.nat32 Vale.X64.Decls.quad32 Vale.X64.Memory.buffer128 Vale.X64.Memory.nat64 Vale.X64.InsBasic.vale_heap Vale.Arch.HeapImpl.vale_heap_layout Prims.l_and Prims.b2t Vale.X64.CPU_Features_s.aesni_enabled Vale.X64.CPU_Features_s.avx_enabled Prims.op_BarBar Prims.op_Equality Vale.AES.AES_common_s.AES_128 Vale.AES.AES_common_s.AES_256 Vale.AES.AES_s.is_aes_key_LE Prims.eq2 Prims.int FStar.Seq.Base.length Prims.op_Addition Vale.AES.AES_common_s.nr Vale.Def.Types_s.quad32 Vale.AES.AES_s.key_to_round_keys_LE Vale.X64.Memory.buffer_addr Vale.X64.Memory.vuint128 Vale.X64.Decls.validSrcAddrs128 Vale.Arch.HeapTypes_s.Secret Vale.X64.Decls.buffer128_as_seq Vale.Def.Prop_s.prop0
let aes_reqs
      (alg: algorithm)
      (key: seq nat32)
      (round_keys: seq quad32)
      (keys_b: buffer128)
      (key_ptr: nat64)
      (heap0: vale_heap)
      (layout: vale_heap_layout)
    : prop0 =
  
aesni_enabled /\ avx_enabled /\ (alg = AES_128 || alg = AES_256) /\ is_aes_key_LE alg key /\
length (round_keys) == nr (alg) + 1 /\ round_keys == key_to_round_keys_LE alg key /\
key_ptr == buffer_addr keys_b heap0 /\
validSrcAddrs128 heap0 key_ptr keys_b (nr alg + 1) layout Secret /\
buffer128_as_seq heap0 keys_b == round_keys