Compute a string using sqlite3_vsnprintf() with a maximum length ** of 50 bytes and add it to the hash. */
| 1924 | ** of 50 bytes and add it to the hash. |
| 1925 | */ |
| 1926 | static void hash_step_vformat( |
| 1927 | SHA3Context *p, /* Add content to this context */ |
| 1928 | const char *zFormat, |
| 1929 | ... |
| 1930 | ){ |
| 1931 | va_list ap; |
| 1932 | int n; |
| 1933 | char zBuf[50]; |
| 1934 | va_start(ap, zFormat); |
| 1935 | sqlite3_vsnprintf(sizeof(zBuf),zBuf,zFormat,ap); |
| 1936 | va_end(ap); |
| 1937 | n = (int)strlen(zBuf); |
| 1938 | SHA3Update(p, (unsigned char*)zBuf, n); |
| 1939 | } |
| 1940 | |
| 1941 | /* |
| 1942 | ** Implementation of the sha3_query(SQL,SIZE) function. |
no test coverage detected