mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-22 08:16:28 +08:00
SKF Wrapper
This commit is contained in:
@@ -79,5 +79,4 @@ clean:
|
||||
|
||||
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
||||
|
||||
sm3.o: sm3.c sm3.h ../byteorder.h
|
||||
sm3test.o: sm3test.c sm3.h ../byteorder.h
|
||||
sm3.o: ../byteorder.h sm3.c sm3.h
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#define IPAD 0x36
|
||||
#define OPAD 0x5C
|
||||
|
||||
|
||||
|
||||
void hmac_sm3_init(hmac_sm3_ctx_t *ctx, const unsigned char *key, size_t key_len)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -119,4 +119,27 @@ static char *pt(unsigned char *md)
|
||||
sprintf(&(buf[i * 2]), "%02x", md[i]);
|
||||
return (buf);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user