From: Bodo Möller Date: Tue, 9 Apr 2002 11:53:51 +0000 (+0000) Subject: add usage examples X-Git-Tag: OpenSSL_0_9_7-beta1~116 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2826fcc85188285ac06b1d3c8b0944563b61e95f;p=oweals%2Fopenssl.git add usage examples --- diff --git a/CHANGES b/CHANGES index 28cb8b108e..42de0feb26 100644 --- a/CHANGES +++ b/CHANGES @@ -696,13 +696,30 @@ +) Rationalise EVP so it can be extended: don't include a union of cipher/digest structures, add init/cleanup functions. This also reduces the number of header dependencies. + Usage example: + + EVP_MD_CTX md; + + EVP_MD_CTX_init(&md); /* new function call */ + EVP_DigestInit(&md, EVP_sha1()); + EVP_DigestUpdate(&md, in, len); + EVP_DigestFinal(&md, out, NULL); + EVP_MD_CTX_cleanup(&md); /* new function call */ + [Ben Laurie] +) Make DES key schedule conform to the usual scheme, as well as correcting its structure. This means that calls to DES functions now have to pass a pointer to a des_key_schedule instead of a plain des_key_schedule (which was actually always a pointer - anyway). + anyway): E.g., + + des_key_schedule ks; + + des_set_key_checked(..., &ks); + des_ncbc_encrypt(..., &ks, ...); + + (Note that a later change renames 'des_...' into 'DES_...'.) [Ben Laurie] *) Enhanced support for IA-64 Unix platforms (well, Linux and HP-UX).