All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ell@lists.01.org
Subject: Re: [PATCH 02/17] checksum: Add l_checksum_clone API.
Date: Fri, 24 Jul 2015 10:55:58 -0500	[thread overview]
Message-ID: <55B2600E.7070706@gmail.com> (raw)
In-Reply-To: <1437708410-28075-2-git-send-email-andrew.zaborowski@intel.com>

[-- Attachment #1: Type: text/plain, Size: 875 bytes --]

Hi Andrew,

On 07/23/2015 10:26 PM, Andrew Zaborowski wrote:
> In the kernel API we use and also in GLib's API the l_checksum_get_digest()
> equivalents can only be called once on each object meaning that in a
> situation when multiple digest values at different points of a
> running stream are needed the API becomes impractical.  The new _clone()
> call returns a clone of the checksum's state at the current time, on
> which get_digest() can be called.
> ---
>   ell/checksum.c | 24 ++++++++++++++++++++++++
>   ell/checksum.h |  1 +
>   2 files changed, 25 insertions(+)
>

<snip>

> +LIB_EXPORT struct l_checksum *l_checksum_clone(struct l_checksum *checksum)
> +{
> +	struct l_checksum *clone;
> +

Patch has been applied, but I also added a tiny sanity check here to 
make sure that checksum != NULL in a follow-on commit.

Regards,
-Denis

  reply	other threads:[~2015-07-24 15:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24  3:26 [PATCH 01/17] checksum: Add SHA384 and SHA512 hash & hmac types Andrew Zaborowski
2015-07-24  3:26 ` [PATCH 02/17] checksum: Add l_checksum_clone API Andrew Zaborowski
2015-07-24 15:55   ` Denis Kenzior [this message]
2015-07-24  3:26 ` [PATCH 03/17] cipher: Add 3DES EDE and AES CBC-mode cipher types Andrew Zaborowski
2015-07-24 15:56   ` Denis Kenzior
2015-07-24  3:26 ` [PATCH 04/17] cipher: Add l_cipher_set_iv Andrew Zaborowski
2015-07-24  3:26 ` [PATCH 05/17] Add ASN.1 BER / DER decoding utilities as asn1-private.h Andrew Zaborowski
2015-07-24  3:26 ` [PATCH 06/17] Add RSA PKCS#1 1.5 assymetric key encryption operations Andrew Zaborowski
2015-07-24  3:26 ` [PATCH 07/17] Add cert.{c,h} for basic X509 certificate operations Andrew Zaborowski
2015-07-24  3:26 ` [PATCH 08/17] cert: Add RSA private key utilities Andrew Zaborowski
2015-07-24  3:26 ` [PATCH 09/17] unit: Add an RSA encryption/decryption test Andrew Zaborowski
2015-07-24 15:50 ` [PATCH 01/17] checksum: Add SHA384 and SHA512 hash & hmac types Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55B2600E.7070706@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ell@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.