X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fasn1schemas%2Fx509.py;h=f434fbb84d61e4f77b513119ed10f095c13a43f2;hp=cda11da42dcb4d1a8daff65bb054b9c6d02108f4;hb=0a222bc1e121d463351d0c259a403c3e8d331e60;hpb=9d164d4752669895c45db4770309e5815498ff1e diff --git a/pygost/asn1schemas/x509.py b/pygost/asn1schemas/x509.py index cda11da..f434fbb 100644 --- a/pygost/asn1schemas/x509.py +++ b/pygost/asn1schemas/x509.py @@ -246,3 +246,17 @@ class AuthorityKeyIdentifier(Sequence): # 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), + )