コード例 #1
0
 def __init__(self, pkey=None, _pyfree=0, md='sha1'):
     if pkey is not None:
         self.pkey = pkey
         self._pyfree = _pyfree
     else:
         self.pkey = m2.pkey_new()
         self._pyfree = 1
     self._set_context(md)
コード例 #2
0
ファイル: EVP.py プロジェクト: appknox/m2crypto
 def __init__(self, pkey=None, _pyfree=0, md='sha1'):
     # type: (Optional[bytes], int, str) -> None
     if pkey is not None:
         self.pkey = pkey  # type: bytes
         self._pyfree = _pyfree
     else:
         self.pkey = m2.pkey_new()
         self._pyfree = 1
     self._set_context(md)
コード例 #3
0
 def __init__(self, pkey=None, _pyfree=0, md='sha1'):
     # type: (Optional[bytes], int, str) -> None
     if pkey is not None:
         self.pkey = pkey  # type: bytes
         self._pyfree = _pyfree
     else:
         self.pkey = m2.pkey_new()
         self._pyfree = 1
     self._set_context(md)