2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
16 #include <aes/aes_impl.h>
19 #include "cryptotest.h"
27 uint8_t N
[AES_BLOCK_LEN
];
35 args
.outlen
= sizeof (N
);
36 args
.keylen
= sizeof (keytest
);
39 args
.mechname
= SUN_CKM_AES_CMAC
;
42 for (i
= 0; i
< sizeof (RES
) / sizeof (RES
[0]); i
++) {
43 args
.inlen
= DATALEN
[i
];
44 errs
+= run_test(&args
, RES
[i
], AES_BLOCK_LEN
, MAC_FG
);
45 (void) fprintf(stderr
, "----------\n");
48 (void) fprintf(stderr
, "%d tests failed\n", errs
);