Building.Open.Source.Network.Security.Tools.Components.And.Techniques [Electronic resources] نسخه متنی

This is a Digital Library

With over 100,000 free electronic resource in Persian, Arabic and English

Building.Open.Source.Network.Security.Tools.Components.And.Techniques [Electronic resources] - نسخه متنی

Mike D. Schiffman

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید







Table 7.1 with which OpenSSL was compiled.



void EVP_MD_CTX_init(EVP_MD_CTX *ctx);


EVP_MD_CTX_init () initializes a message digest context ctx for use by filling it with zero. This function must be called prior to any other function that modifies ctx.



const EVP_MD *EVP_get_digestbyname(const char *name);


EVP_get_digestbyname() returns a pointer to a message digest type corresponding to the canonical name of the algorithm name. Upon success, the function returns a pointer to the message digest structure; upon failure (name is not a supported algorithm), the function returns NULL.



int EVP_DigestInit_ex (EVP_MD_CTX *ctx, const EVP_MD *type,
ENGINE *impl);


The EVP_Digest_Init () initializes message digest context ctx for hashing by using the digest type from the engine that impl specifies. You should have previously initialed ctx with a call to EVP_MD_CTX_init () while acquiring type from a previous call to EVP_getdigestbyname(). If impl is NULL, you use the default software implementation. Upon success, the function returns 1; upon failure, the function returns 0.



int EVP_DigestUpdate (EVP_MD_CTX *ctx, const void *d, unsigned
int cnt);


EVP_DigestUpdate () performs the hashing for the context that ctx references.! function hashes cnt bytes of data to which d points. This function is often called repeatedly in a loop. Upon success, the function returns 1; upon failure, the function returns 0.



int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md,
unsigned int *ctx);


EVP_DigestFinal_ex() retrieves the digest value from ctx and writes it to md and writes the length of the digest to s. Upon success, the function returns 1; upon failure, the function returns 0.



int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx);


EVP_MD_CTX_cleanup () destroys all structures and cleans up all memory (including sensitive data) associated with ctx. You always call this function inside EVP_cipherFinal_ex () to implicitly clean up upon finalizing. As such, you only need to call the function in the event of an unrecoverable error being detected (for instance, EVP.DigestUpdate () failed), and you need to terminate the cipher operation before you can call EVP_DigestFinal_ ex (). Upon success, the function returns 1; upon failure, the function returns 0.



EVP_MD_CTX_md (ctx);


EVP_MD_CTX_md () is a macro that returns the EVP_MD structure from ctx.



EVP_MD_CTX_size(ctx);


EVP_MD__CTX_md () is a macro that returns the size of the hash from ctx.



EVP_MD_CTX_block_size(ctx);


EVP_MD_CTX_md () is a macro that returns the block size from ctx.

/ 135