encrypted {
    {field dem {with dem}}
    {field kem {list} {of kem} >0}
    {field id {hexlet} optional}
    {field payload {bin} optional}
    {field pubs {list} {of map} optional >0} {# attached public keys}
}

dem {
    {field . {map}}
    {field a {str} >0} {# xchapoly-krkc}
                       {# xchapoly-krmr}
                       {# kuznechik-ctr-hmac-kr}
}

kem {
    {field a {str} >0}
    {field cek {bin} >0}
}

schema-include fpr.tcl
schema-include kem-with-encap.tcl
schema-include kem-gost3410-hkdf.tcl
schema-include kem-balloon-blake2b-hkdf.tcl
schema-include kem-pbkdf2.tcl