diff options
author | Stef Walter <stef@memberwebs.com> | 2010-06-28 23:50:05 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2010-06-28 23:50:05 +0000 |
commit | 531aa6c9793c92aefed270843e4cfe33ea62fb57 (patch) | |
tree | 5b36a8fd59d5e35ade5856ea77f0d16cc3a9fd5b /src | |
parent | 205f968b122ec1a72b2299223a1938acaf4098aa (diff) |
Setup buffer size properly in AES tests.
Diffstat (limited to 'src')
-rw-r--r-- | src/aes.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -214,6 +214,7 @@ p11t_aes_test_key (CK_SESSION_HANDLE session, CK_OBJECT_HANDLE key) /* We try to wrap itself, not sure if that's the best idea ... */ for (i = 0; i < attrs[0].ulValueLen / sizeof (CK_ULONG); ++i) { + n_buffer = sizeof (buffer); if (mechanisms[i] == CKM_AES_CBC_PAD) if (!test_aes_wrap (session, key, key, buffer, &n_buffer)) return STOP; |