-class ContentInfo(Sequence):
- schema = (
- ("contentType", ContentType()),
- ("content", Any(expl=tag_ctxc(0))),
- )
-
-
-class Gost2814789IV(OctetString):
- bounds = (8, 8)
-
-
-class Gost2814789Parameters(Sequence):
- schema = (
- ("iv", Gost2814789IV()),
- ("encryptionParamSet", ObjectIdentifier()),
- )
-
-
-class Gost2814789Key(OctetString):
- bounds = (32, 32)
-
-
-class Gost2814789MAC(OctetString):
- bounds = (4, 4)
-
-
-class Gost2814789EncryptedKey(Sequence):
- schema = (
- ("encryptedKey", Gost2814789Key()),
- ("maskKey", Gost2814789Key(impl=tag_ctxp(0), optional=True)),
- ("macKey", Gost2814789MAC()),
- )
-
-
-class GostR34102001TransportParameters(Sequence):
- schema = (
- ("encryptionParamSet", ObjectIdentifier()),
- ("ephemeralPublicKey", SubjectPublicKeyInfo(
- impl=tag_ctxc(0),
- optional=True,
- )),
- ("ukm", OctetString()),
- )
-
-
-class GostR3410KeyTransport(Sequence):
- schema = (
- ("sessionEncryptedKey", Gost2814789EncryptedKey()),
- ("transportParameters", GostR34102001TransportParameters(
- impl=tag_ctxc(0),
- optional=True,
- )),
- )
-
-