~ubuntu-branches/debian/experimental/linux-tools/experimental

« back to all changes in this revision

Viewing changes to include/crypto/algapi.h

  • Committer: Package Import Robot
  • Author(s): Ben Hutchings
  • Date: 2014-02-02 16:57:49 UTC
  • mfrom: (1.1.10) (0.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20140202165749-tw94o9t1t0a8txk6
Tags: 3.13-1~exp2
Merge changes from sid up to 3.12.6-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
386
386
        return (type ^ CRYPTO_ALG_ASYNC) & mask & CRYPTO_ALG_ASYNC;
387
387
}
388
388
 
 
389
noinline unsigned long __crypto_memneq(const void *a, const void *b, size_t size);
 
390
 
 
391
/**
 
392
 * crypto_memneq - Compare two areas of memory without leaking
 
393
 *                 timing information.
 
394
 *
 
395
 * @a: One area of memory
 
396
 * @b: Another area of memory
 
397
 * @size: The size of the area.
 
398
 *
 
399
 * Returns 0 when data is equal, 1 otherwise.
 
400
 */
 
401
static inline int crypto_memneq(const void *a, const void *b, size_t size)
 
402
{
 
403
        return __crypto_memneq(a, b, size) != 0UL ? 1 : 0;
 
404
}
 
405
 
389
406
#endif  /* _CRYPTO_ALGAPI_H */
390