encrypted {
{field . {map}}
{field dem {with dem}}
{field kem {list} {of kem} >0}
{field id {hexlet} optional}
{field payload {bin} optional}
{field pubs {list} {of type map} optional >0} {# attached public keys}
}
dem {
{field . {map}}
{field a {str} >0} {# xchapoly-krkc}
{# xchacha-krmr}
{# kuznechik-ctr-hmac-kr}
}
kem {
{field . {map}}
{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