diff options
| author | Miloslav Trmač <mitr@redhat.com> | 2010-08-06 00:14:43 +0200 |
|---|---|---|
| committer | Miloslav Trmač <mitr@redhat.com> | 2010-08-24 20:58:31 +0200 |
| commit | 94c0f2e59bc3f30688c78b052e6cfed184354178 (patch) | |
| tree | 6376d7db7a3b3693159c1467c9e12b94d88b7d83 /examples | |
| parent | 9350eafb139e2f2f4f2338905cb7adef5b640093 (diff) | |
| download | cryptodev-linux-94c0f2e59bc3f30688c78b052e6cfed184354178.tar.gz cryptodev-linux-94c0f2e59bc3f30688c78b052e6cfed184354178.tar.xz cryptodev-linux-94c0f2e59bc3f30688c78b052e6cfed184354178.zip | |
Support output data in NCRIO_SESSION_UPDATE
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/ncr_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ncr_lib.c b/examples/ncr_lib.c index a657b56..e8d4a66 100644 --- a/examples/ncr_lib.c +++ b/examples/ncr_lib.c @@ -433,8 +433,8 @@ test_ncr_hash_key(void) /* encrypt */ DIAGNOSTIC_CALL(ncr_session_init, &session, NCR_KEY_INVALID, NULL, hash_vectors[0].op, hash_vectors[0].algorithm); - DIAGNOSTIC_CALL(ncr_session_update_direct_data, session, (void*)hash_vectors[0].plaintext, hash_vectors[0].plaintext_size); - DIAGNOSTIC_CALL(ncr_session_update_key_data, session, key); + DIAGNOSTIC_CALL(ncr_session_update_direct_data, session, (void*)hash_vectors[0].plaintext, hash_vectors[0].plaintext_size, NULL, 0); + DIAGNOSTIC_CALL(ncr_session_update_key_data, session, key, NULL, 0); DIAGNOSTIC_CALL(ncr_session_final, session, data, sizeof(data)); if (output_size != hash_vectors[0].output_size || memcmp(data, output, hash_vectors[0].output_size) != 0) { DIAGNOSTIC_ERROR("HASH test vector %d failed!\n", 0); |
