Importing crypto libraries
- crypto/external/bsd/heimdal - crypto/external/bsd/libsaslc - crypto/external/bsd/netpgp - crypto/external/bsd/openssl Change-Id: I91dbf05f33e637edf5b9bb408d5baddd7ba8cf75
This commit is contained in:
15
crypto/external/bsd/netpgp/dist/bindings/python/netpgp.py
vendored
Executable file
15
crypto/external/bsd/netpgp/dist/bindings/python/netpgp.py
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
#! /usr/bin/env python2.5
|
||||
|
||||
# netpgp bindings for python
|
||||
import _netpgppython
|
||||
|
||||
# initialisations
|
||||
n = _netpgppython.new_netpgp_t()
|
||||
_netpgppython.netpgp_setvar(n, "homedir", "/home/agc/.gnupg")
|
||||
_netpgppython.netpgp_setvar(n, "hash", "SHA256")
|
||||
_netpgppython.netpgp_init(n)
|
||||
|
||||
userid = _netpgppython.netpgp_getvar(n, "userid")
|
||||
_netpgppython.netpgp_sign_file(n, userid, "a", "a.gpg", 0, 0, 0)
|
||||
_netpgppython.netpgp_verify_file(n, "a.gpg", "/dev/null", 0)
|
||||
|
||||
Reference in New Issue
Block a user