summaryrefslogtreecommitdiffstats
path: root/botan/wrappers/swig/tests/pubkey.py
diff options
context:
space:
mode:
Diffstat (limited to 'botan/wrappers/swig/tests/pubkey.py')
-rw-r--r--botan/wrappers/swig/tests/pubkey.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/botan/wrappers/swig/tests/pubkey.py b/botan/wrappers/swig/tests/pubkey.py
new file mode 100644
index 0000000..456c520
--- /dev/null
+++ b/botan/wrappers/swig/tests/pubkey.py
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+import botan
+
+key = botan.X509_PublicKey("rsapub.pem")
+print key
+print key.key_id()
+print key.max_input_bits
+print key.algo
+print key.oid