OpenSSL 1.1.1-pre2
This commit is contained in:
@@ -39,9 +39,9 @@ void md4_block_data_order(MD4_CTX *c, const void *p, size_t num);
|
||||
*/
|
||||
|
||||
/*
|
||||
* As pointed out by Wei Dai <weidai@eskimo.com>, the above can be simplified
|
||||
* to the code below. Wei attributes these optimizations to Peter Gutmann's
|
||||
* SHS code, and he attributes it to Rich Schroeppel.
|
||||
* As pointed out by Wei Dai, the above can be simplified to the code
|
||||
* below. Wei attributes these optimizations to Peter Gutmann's SHS code,
|
||||
* and he attributes it to Rich Schroeppel.
|
||||
*/
|
||||
#define F(b,c,d) ((((c) ^ (d)) & (b)) ^ (d))
|
||||
#define G(b,c,d) (((b) & (c)) | ((b) & (d)) | ((c) & (d)))
|
||||
|
||||
@@ -43,5 +43,5 @@ unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md)
|
||||
#endif
|
||||
MD4_Final(md, &c);
|
||||
OPENSSL_cleanse(&c, sizeof(c)); /* security consideration */
|
||||
return (md);
|
||||
return md;
|
||||
}
|
||||
Reference in New Issue
Block a user