Skip to content

Commit

Permalink
Move functionality to derive public keys from private keys into oscrypto
Browse files Browse the repository at this point in the history
 - keys.PrivateKeyInfo().unwrap() is now
   oscrypto.asymmetric.PrivateKey().unwrap()
 - keys.PrivateKeyInfo().public_key is now
   oscrypto.asymmetric.PrivateKey().public_key.unwrap()
 - keys.PrivateKeyInfo().public_key_info is now
   oscrypto.asymmetric.PrivateKey().public_key.asn1
 - keys.PrivateKeyInfo().fingerprint is now
   oscrypto.asymmetric.PrivateKey().fingerprint
 - keys.PublicKeyInfo().unwrap() is now
   oscrypto.asymmetric.PublicKey().unwrap()
 - keys.PublicKeyInfo().fingerprint is now
   oscrypto.asymmetric.PublicKey().fingerprint
  • Loading branch information
wbond committed Jul 13, 2019
1 parent e5779a4 commit 564e744
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 834 deletions.
314 changes: 0 additions & 314 deletions asn1crypto/_elliptic_curve.py

This file was deleted.

11 changes: 10 additions & 1 deletion asn1crypto/_errors.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# coding: utf-8

"""
Helper for formatting exception messages. Exports the following items:
Exports the following items:
- unwrap()
- APIException()
"""

from __future__ import unicode_literals, division, absolute_import, print_function
Expand All @@ -12,6 +13,14 @@
import textwrap


class APIException(Exception):
"""
An exception indicating an API has been removed from asn1crypto
"""

pass


def unwrap(string, *params):
"""
Takes a multi-line string and does the following:
Expand Down
45 changes: 0 additions & 45 deletions asn1crypto/_ffi.py

This file was deleted.

Loading

0 comments on commit 564e744

Please sign in to comment.