summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2010-06-28 23:50:05 +0000
committerStef Walter <stef@memberwebs.com>2010-06-28 23:50:05 +0000
commit531aa6c9793c92aefed270843e4cfe33ea62fb57 (patch)
tree5b36a8fd59d5e35ade5856ea77f0d16cc3a9fd5b /src
parent205f968b122ec1a72b2299223a1938acaf4098aa (diff)
Setup buffer size properly in AES tests.
Diffstat (limited to 'src')
-rw-r--r--src/aes.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aes.c b/src/aes.c
index b7a1bdc..5b94ef5 100644
--- a/src/aes.c
+++ b/src/aes.c
@@ -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;