+
+ /* Now test partial API. */
+ hmac_sha256_init(&ctx, k, ksize);
+ hmac_sha256_update(&ctx, d, dsize / 2);
+ hmac_sha256_update(&ctx, (char *)d + dsize/2, dsize - dsize/2);
+ hmac_sha256_done(&ctx, &hmac);
+ ok1(memcmp(&hmac, expect, hmacsize) == 0);
+