Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1766020273, "reponame":"openssl", "desc":"OpenSSL", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl", "f":3, "items": [ {"schema":"libjg2-1", "cid":"517f46187d2c3196dff9e067d565954b", "commit": {"type":"commit", "time": 1488468336, "time_ofs": 60, "oid_tree": { "oid": "11d8258cd52d86310dcea6fdfcfdd0d8fe1553c7", "alias": []}, "oid":{ "oid": "5908555c961ae5d3fc265e0961997fbe14a02091", "alias": []}, "msg": "evp/e_aes_cbc_hmac_{sha1|sha256}.c: tag reference code.", "sig_commit": { "git_time": { "time": 1488468336, "offset": 60 }, "name": "Andy Polyakov", "email": "appro@openssl.org", "md5": "50bd64fa2a792cbbf679fa16213a3b2a" }, "sig_author": { "git_time": { "time": 1488364841, "offset": 60 }, "name": "Andy Polyakov", "email": "appro@openssl.org", "md5": "50bd64fa2a792cbbf679fa16213a3b2a" }}, "body": "evp/e_aes_cbc_hmac_{sha1|sha256}.c: tag reference code.\n\nReviewed-by: Richard Levitte \u003clevitte@openssl.org\u003e\n" , "diff": "diff --git a/crypto/evp/e_aes_cbc_hmac_sha1.c b/crypto/evp/e_aes_cbc_hmac_sha1.c\nindex 52c7c74..a3c8951 100644\n--- a/crypto/evp/e_aes_cbc_hmac_sha1.c\n+++ b/crypto/evp/e_aes_cbc_hmac_sha1.c\n@@ -565,7 +565,7 @@ static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,\n }\n # endif\n \n-# if 1\n+# if 1 /* see original reference version in #else */\n len -\u003d SHA_DIGEST_LENGTH; /* amend mac */\n if (len \u003e\u003d (256 + SHA_CBLOCK)) {\n j \u003d (len - (256 + SHA_CBLOCK)) \u0026 (0 - SHA_CBLOCK);\n@@ -659,7 +659,7 @@ static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,\n }\n # endif\n len +\u003d SHA_DIGEST_LENGTH;\n-# else\n+# else /* pre-lucky-13 reference version of above */\n SHA1_Update(\u0026key-\u003emd, out, inp_len);\n res \u003d key-\u003emd.num;\n SHA1_Final(pmac-\u003ec, \u0026key-\u003emd);\n@@ -686,7 +686,7 @@ static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,\n /* verify HMAC */\n out +\u003d inp_len;\n len -\u003d inp_len;\n-# if 1\n+# if 1 /* see original reference version in #else */\n {\n unsigned char *p \u003d out + len - 1 - maxpad - SHA_DIGEST_LENGTH;\n size_t off \u003d out - p;\n@@ -708,7 +708,7 @@ static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,\n res \u003d 0 - ((0 - res) \u003e\u003e (sizeof(res) * 8 - 1));\n ret \u0026\u003d (int)~res;\n }\n-# else\n+# else /* pre-lucky-13 reference version of above */\n for (res \u003d 0, i \u003d 0; i \u003c SHA_DIGEST_LENGTH; i++)\n res |\u003d out[i] ^ pmac-\u003ec[i];\n res \u003d 0 - ((0 - res) \u003e\u003e (sizeof(res) * 8 - 1));\ndiff --git a/crypto/evp/e_aes_cbc_hmac_sha256.c b/crypto/evp/e_aes_cbc_hmac_sha256.c\nindex 5a92e0b..4830c00 100644\n--- a/crypto/evp/e_aes_cbc_hmac_sha256.c\n+++ b/crypto/evp/e_aes_cbc_hmac_sha256.c\n@@ -552,7 +552,7 @@ static int aesni_cbc_hmac_sha256_cipher(EVP_CIPHER_CTX *ctx,\n key-\u003emd \u003d key-\u003ehead;\n SHA256_Update(\u0026key-\u003emd, key-\u003eaux.tls_aad, plen);\n \n-# if 1\n+# if 1 /* see original reference version in #else */\n len -\u003d SHA256_DIGEST_LENGTH; /* amend mac */\n if (len \u003e\u003d (256 + SHA256_CBLOCK)) {\n j \u003d (len - (256 + SHA256_CBLOCK)) \u0026 (0 - SHA256_CBLOCK);\n@@ -680,7 +680,7 @@ static int aesni_cbc_hmac_sha256_cipher(EVP_CIPHER_CTX *ctx,\n for (; inp_blocks \u003c pad_blocks; inp_blocks++)\n sha1_block_data_order(\u0026key-\u003emd, data, 1);\n }\n-# endif\n+# endif /* pre-lucky-13 reference version of above */\n key-\u003emd \u003d key-\u003etail;\n SHA256_Update(\u0026key-\u003emd, pmac-\u003ec, SHA256_DIGEST_LENGTH);\n SHA256_Final(pmac-\u003ec, \u0026key-\u003emd);\n@@ -688,7 +688,7 @@ static int aesni_cbc_hmac_sha256_cipher(EVP_CIPHER_CTX *ctx,\n /* verify HMAC */\n out +\u003d inp_len;\n len -\u003d inp_len;\n-# if 1\n+# if 1 /* see original reference version in #else */\n {\n unsigned char *p \u003d\n out + len - 1 - maxpad - SHA256_DIGEST_LENGTH;\n@@ -711,7 +711,7 @@ static int aesni_cbc_hmac_sha256_cipher(EVP_CIPHER_CTX *ctx,\n res \u003d 0 - ((0 - res) \u003e\u003e (sizeof(res) * 8 - 1));\n ret \u0026\u003d (int)~res;\n }\n-# else\n+# else /* pre-lucky-13 reference version of above */\n for (res \u003d 0, i \u003d 0; i \u003c SHA256_DIGEST_LENGTH; i++)\n res |\u003d out[i] ^ pmac-\u003ec[i];\n res \u003d 0 - ((0 - res) \u003e\u003e (sizeof(res) * 8 - 1));\n","s":{"c":1766020273,"u": 29463}} ],"g": 31250,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}