ok
Direktori : /proc/thread-self/root/proc/self/root/lib64/python2.7/site-packages/M2Crypto/ |
Current File : //proc/thread-self/root/proc/self/root/lib64/python2.7/site-packages/M2Crypto/EVP.pyc |
� �1Mc @ s� d Z d d l m Z m Z m Z m Z d d l Z d e f d � � YZ e j e � d � Z d d d � � YZ d d d � � YZ d d � Z d d d � � YZ d d d � � YZ e j d � Z e j d � Z e j d � Z d S( s� M2Crypto wrapper for OpenSSL EVP API. Copyright (c) 1999-2004 Ng Pheng Siong. All rights reserved. Portions Copyright (c) 2004-2007 Open Source Applications Foundation. Author: Heikki Toivonen i����( t Errt utilt BIOt RSANt EVPErrorc B s e Z RS( ( t __name__t __module__( ( ( s2 /usr/lib64/python2.7/site-packages/M2Crypto/EVP.pyR s c C s t j | | | | � S( s� Derive a key from password using PBKDF2 algorithm specified in RFC 2898. @param password: Derive the key from this password. @type password: str @param salt: Salt. @type salt: str @param iter: Number of iterations to perform. @type iter: int @param keylen: Length of key to produce. @type keylen: int @return: Key. @rtype: str ( t m2t pkcs5_pbkdf2_hmac_sha1( t passwordt saltt itert keylen( ( s2 /usr/lib64/python2.7/site-packages/M2Crypto/EVP.pyt pbkdf2 s t MessageDigestc B sA e Z d Z e j Z d � Z d � Z d � Z d � Z e Z RS( s Message Digest c C se t t | d � } | d k r0 t d | f � n | � | _ t j � | _ t j | j | j � d S( Ns unknown algorithm( t getattrR t Nonet ValueErrort mdt md_ctx_newt ctxt digest_init( t selft algoR ( ( s2 /usr/lib64/python2.7/site-packages/M2Crypto/EVP.pyt __init__( s c C s) t | d d � r% | j | j � n d S( NR ( R R t m2_md_ctx_freeR ( R ( ( s2 /usr/lib64/python2.7/site-packages/M2Crypto/EVP.pyt __del__0 s c C s t j | j | � S( s Add data to be digested. @return: -1 for Python error, 1 for success, 0 for OpenSSL failure. ( R t digest_updateR ( R t data( ( s2 /usr/lib64/python2.7/site-packages/M2Crypto/EVP.pyt update4 s c C s t j | j � S( N( R t digest_finalR ( R ( ( s2 /usr/lib64/python2.7/site-packages/M2Crypto/EVP.pyt final<