# coding: utf-8
# PyGOST -- Pure Python GOST cryptographic functions library
-# Copyright (C) 2015-2020 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2015-2021 Sergey Matveev <stargrave@stargrave.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
"""PKCS #10 related structures (**NOT COMPLETE**)
"""
-from pyderasn import Any
from pyderasn import BitString
from pyderasn import Integer
-from pyderasn import ObjectIdentifier
from pyderasn import Sequence
from pyderasn import SetOf
from pyderasn import tag_ctxc
+from pygost.asn1schemas.cms import Attribute
from pygost.asn1schemas.x509 import AlgorithmIdentifier
from pygost.asn1schemas.x509 import Name
from pygost.asn1schemas.x509 import SubjectPublicKeyInfo
-class AttributeValue(Any):
- pass
-
-
-class AttributeValues(SetOf):
- schema = AttributeValue()
-
-
-class Attribute(Sequence):
- schema = (
- ("type", ObjectIdentifier()),
- ("values", AttributeValues()),
- )
-
-
class Attributes(SetOf):
schema = Attribute()