supl/locationsuplfw/protocolhandlerapi/src/epos_suplkey.cpp
changeset 39 3efc7a0e8755
parent 22 4c4ed41530db
equal deleted inserted replaced
37:e175e2ba2fb0 39:3efc7a0e8755
   211             sha1_end(cx->key, cx->ctx);         /* store the result as the  */
   211             sha1_end(cx->key, cx->ctx);         /* store the result as the  */
   212             cx->klen = OUT_BLOCK_LENGTH;        /* key and set new length   */
   212             cx->klen = OUT_BLOCK_LENGTH;        /* key and set new length   */
   213         }
   213         }
   214 
   214 
   215         /* pad the key if necessary */
   215         /* pad the key if necessary */
   216         //coverity[OVERRUN_STATIC  :FALSE]
   216         //coverity[overrun-local]
   217         memset(cx->key + cx->klen, 0, IN_BLOCK_LENGTH - cx->klen);
   217         memset(cx->key + cx->klen, 0, IN_BLOCK_LENGTH - cx->klen);
   218 
   218 
   219         /* xor ipad into key value  */
   219         /* xor ipad into key value  */
   220         for(i = 0; i < (IN_BLOCK_LENGTH >> 2); ++i)
   220         for(i = 0; i < (IN_BLOCK_LENGTH >> 2); ++i)
   221             ((unsigned long*)cx->key)[i] ^= 0x36363636;
   221             ((unsigned long*)cx->key)[i] ^= 0x36363636;