- NAME
- SYNOPSIS
- DESCRIPTION
- RETURN VALUES
- CONFORMING TO
- SEE ALSO
- COPYRIGHT

# NAME

SM9_MASTER_KEY_new, SM9_MASTER_KEY_free, SM9_KEY_new, SM9_KEY_free - SM9 Algorithm

# SYNOPSIS

     #include <openssl/sm9.h>

     SM9_MASTER_KEY *SM9_MASTER_KEY_new(void);
     void SM9_MASTER_KEY_free(SM9_MASTER_KEY *a);

     SM9_KEY *SM9_KEY_new(void);
     void SM9_KEY_free(SM9_KEY *a);

# DESCRIPTION

SM9_MASTER_KEY_new() allocates an empty SM9_MASTER_KEY structure.

SM9_MASTER_KEY_new()分配一个新的SM9_MASTER_KEY结构。

SM9_MASTER_KEY_free() frees the given SM9_MASTER_KEY structure.

SM9_MASTER_KEY_free()将给定的SM9_MASTER_KEY结构释放。

SM9_KEY_new() allocates an empty SM9_KEY structure.

SM9_KEY_new()分配一个新的SM9_KEY结构。

SM9_KEY_free() frees the given SM9_KEY structure.

SM9_KEY_free()将给定的SM9_KEY结构释放。

# RETURN VALUES

SM9_MASTER_KEY_new() returns a pointer to an allocated SM9_MASTER_KEY structure or NULL on error.

SM9_MASTER_KEY_new()返回一个指向已分配的SM9_MASTER_KEY结构的指针。如果发生错误则返回NULL。

SM9_KEY_new() returns a pointer to an allocated SM9_KEY structure or NULL on error.

SM9_KEY_new()返回一个指向已分配的SM9_KEY结构的指针。如果发生错误则返回NULL。

SM9_MASTER_KEY_free() and SM9_KEY_free() have no return value.

SM9_MASTER_KEY_free()和SM9_KEY_free()无返回值。

# CONFORMING TO

GM/T 0044-2016 SM9 Identification Cryptographic Algorithm

# SEE ALSO

EVP_DigestInit(3)

# COPYRIGHT

Copyright 2014-2019 The GmSSL Project. All Rights Reserved.

Licensed under the GmSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at http://gmssl.org/license.html.