diff src/win32/7zip/7z/CPP/7zip/Crypto/Pbkdf2HmacSha1.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Crypto/Pbkdf2HmacSha1.h	Sat Mar 03 10:31:27 2012 -0600
     1.3 @@ -0,0 +1,21 @@
     1.4 +// Pbkdf2HmacSha1.h
     1.5 +// Password-Based Key Derivation Function (RFC 2898, PKCS #5) based on HMAC-SHA-1
     1.6 +
     1.7 +#ifndef __CRYPTO_PBKDF2_HMAC_SHA1_H
     1.8 +#define __CRYPTO_PBKDF2_HMAC_SHA1_H
     1.9 +
    1.10 +#include <stddef.h>
    1.11 +#include "../../Common/Types.h"
    1.12 +
    1.13 +namespace NCrypto {
    1.14 +namespace NSha1 {
    1.15 +
    1.16 +void Pbkdf2Hmac(const Byte *pwd, size_t pwdSize, const Byte *salt, size_t saltSize,
    1.17 +    UInt32 numIterations, Byte *key, size_t keySize);
    1.18 +
    1.19 +void Pbkdf2Hmac32(const Byte *pwd, size_t pwdSize, const UInt32 *salt, size_t saltSize,
    1.20 +    UInt32 numIterations, UInt32 *key, size_t keySize);
    1.21 +
    1.22 +}}
    1.23 +
    1.24 +#endif