Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #20318

Re: M2crypto

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <debatem1@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'app,': 0.07; 'epydoc': 0.09; 'libraries.': 0.09; 'suggestions:': 0.09; 'received:209.85.214.174': 0.13; 'arguments:': 0.16; 'low-level': 0.16; 'openssl': 0.16; '\xa0you': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'to:2**1': 0.21; 'cc:no real name:2**0': 0.21; 'trying': 0.21; 'header:In-Reply-To:1': 0.22; 'assume': 0.22; 'feb': 0.22; 'right.': 0.25; 'tests': 0.25; 'cc:2**0': 0.26; 'code': 0.26; "i'm": 0.28; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; 'key,': 0.30; 'sun,': 0.30; 'actually': 0.31; 'wont': 0.34; 'probably': 0.35; 'to:no real name:2**1': 0.35; 'trouble': 0.35; 'received:209.85.214': 0.36; 'two': 0.36; 'hello,': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'using': 0.37; 'another': 0.37; 'skip:_ 10': 0.38; "i'll": 0.38; 'received:209.85': 0.38; 'some': 0.38; 'useful': 0.38; 'getting': 0.38; 'easier': 0.38; 'describe': 0.39; 'received:209': 0.39; 'being': 0.40; 'might': 0.40; 'more': 0.61; 'kind': 0.62; 'yourself': 0.69; 'salt': 0.77; 'claims': 0.80; 'perfect,': 0.84; 'url:api': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=o/4frZgY9vnYAynmWREdwOX17zUUAsG48LvKHVZFnmg=; b=FaYCtXZT3NoklR+HUYvr0vjYPPqi/wU40mX1B7fLiiHTvwnDQLlAP6lD9KpkIRC/pJ PMyuenwa1pjVgPqYmse3lHdN165tpmnVDAYWVXU/ZR9Yui7Ov7tK/uQQx58kd9xHTtnD 2ax+W9+jsqxuM0CfjKCBgb74ayKD161w7UZYY=
MIME-Version 1.0
In-Reply-To <jh9jrl$jqs$1@speranza.aioe.org>
References <2515ca96-77c9-4264-aaf2-42bd98fcf9ca@dq9g2000vbb.googlegroups.com> <jh9jrl$jqs$1@speranza.aioe.org>
Date Sun, 12 Feb 2012 16:28:29 -0800
Subject Re: M2crypto
From geremy condra <debatem1@gmail.com>
To mwilson@the-wire.com, cezar4846@gmail.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5748.1329092912.27778.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1329092912 news.xs4all.nl 6867 [2001:888:2000:d::a6]:60572
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20318

Show key headers only | View raw


On Sun, Feb 12, 2012 at 4:00 PM, Mel Wilson <mwilson@the-wire.com> wrote:
> zigi wrote:
>
>> Hello,
>> M2crypto
>>
>> __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5',
>> salt='12345678', i=1, padding=1)
>>
>> I wont write app, using M2crypto and I can not understand what are the
>> arguments:
>> key, iv, op, salt ?
>> What they do ?
>
> I assume you're reading in <http://www.heikkitoivonen.net/m2crypto/api/>
> about M2Crypto.EVP.Cipher.
>
> Epydoc claims another victim.
>
> I'm having a lot of trouble finding documentation.  The obvious OpenSSL
> pages are kind of thin, too.  You might see some useful code in the EVP unit
> tests m2crypto/tests/test_evp.py in the m2crypto installation.

Not intending to be rude, but being perfectly serious: as a general
rule, if you don't know what an IV is you're probably getting yourself
into a lot of trouble working with low-level crypto libraries.

Two suggestions:

1. Describe what you're trying to do- I'll be able to help more if I
know what you're actually going for.

2. Try keyczar. It's not perfect, but it's a lot easier to get right.

Geremy Condra

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

M2crypto zigi <cezar4846@gmail.com> - 2012-02-12 14:34 -0800
  Re: M2crypto Mel Wilson <mwilson@the-wire.com> - 2012-02-12 19:00 -0500
    Re: M2crypto geremy condra <debatem1@gmail.com> - 2012-02-12 16:28 -0800
      Re: M2crypto zigi <cezar4846@gmail.com> - 2012-02-13 00:37 -0800
        Re: M2crypto geremy condra <debatem1@gmail.com> - 2012-02-13 14:27 -0800
          Re: M2crypto zigi <cezar4846@gmail.com> - 2012-02-13 14:38 -0800

csiph-web