version 1.1, 2007/06/07 19:37:34 |
version 1.2, 2007/09/12 19:39:19 |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/endian.h> |
#include <sys/endian.h> |
|
|
|
#include "xmalloc.h" |
#include "umac.h" |
#include "umac.h" |
#include <string.h> |
#include <string.h> |
#include <stdlib.h> |
#include <stdlib.h> |
|
|
if (ctx) { |
if (ctx) { |
if (ALLOC_BOUNDARY) |
if (ALLOC_BOUNDARY) |
ctx = (struct umac_ctx *)ctx->free_ptr; |
ctx = (struct umac_ctx *)ctx->free_ptr; |
free(ctx); |
xfree(ctx); |
} |
} |
return (1); |
return (1); |
} |
} |
|
|
size_t bytes_to_add; |
size_t bytes_to_add; |
aes_int_key prf_key; |
aes_int_key prf_key; |
|
|
octx = ctx = malloc(sizeof(*ctx) + ALLOC_BOUNDARY); |
octx = ctx = xmalloc(sizeof(*ctx) + ALLOC_BOUNDARY); |
if (ctx) { |
if (ctx) { |
if (ALLOC_BOUNDARY) { |
if (ALLOC_BOUNDARY) { |
bytes_to_add = ALLOC_BOUNDARY - |
bytes_to_add = ALLOC_BOUNDARY - |