]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/corecrypto/cchmac/src/cchmac.c
28a9a2fe4104cf769c2c9f0a932a106df601bef8
5 * Created by Michael Brouwer on 12/7/10.
6 * Copyright 2010,2011 Apple Inc. All rights reserved.
10 #include <corecrypto/cchmac.h>
12 void cchmac(const struct ccdigest_info
*di
,
13 unsigned long key_len
, const void *key
,
14 unsigned long data_len
, const void *data
, unsigned char *mac
) {
15 cchmac_di_decl(di
, hc
);
16 cchmac_init(di
, hc
, key_len
, key
);
17 cchmac_update(di
, hc
, data_len
, data
);
18 cchmac_final(di
, hc
, mac
);
19 cchmac_di_clear(di
, hc
);