# coding: utf-8
# PyGOST -- Pure Python GOST cryptographic functions library
-# Copyright (C) 2015-2021 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2015-2024 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
# CertificateSerialNumber(impl=tag_ctxp(2), optional=True),
# ),
)
+
+
+class KeyUsage(BitString):
+ schema = (
+ ("digitalSignature", 0),
+ ("nonRepudiation", 1),
+ ("keyEncipherment", 2),
+ ("dataEncipherment", 3),
+ ("keyAgreement", 4),
+ ("keyCertSign", 5),
+ ("cRLSign", 6),
+ ("encipherOnly", 7),
+ ("decipherOnly", 8),
+ )