Skip to content

Commit

Permalink
Update sm4_cbc_mac.h
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzhi committed Dec 25, 2023
1 parent 81c3538 commit 1def752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/gmssl/sm4_cbc_mac.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
* Copyright 2014-2023 The GmSSL Project. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
Expand All @@ -24,6 +24,8 @@ typedef struct {
size_t ivlen;
} SM4_CBC_MAC_CTX;

#define SM4_CBC_MAC_SIZE (SM4_BLOCK_SIZE)

void sm4_cbc_mac_init(SM4_CBC_MAC_CTX *ctx, const uint8_t key[16]);
void sm4_cbc_mac_update(SM4_CBC_MAC_CTX *ctx, const uint8_t *data, size_t datalen);
void sm4_cbc_mac_finish(SM4_CBC_MAC_CTX *ctx, uint8_t mac[16]);
Expand Down

0 comments on commit 1def752

Please sign in to comment.