=pod =encoding utf8 =head1 NAME SM9_setup, SM9_generate_master_secret, SM9_extract_public_parameters, SM9_extract_private_key, SM9_extract_public_key - SM9 Algorithm =head1 SYNOPSIS #include int SM9_setup(int pairing, int scheme, int hash1, SM9PublicParameters **mpk, SM9MasterSecret **msk); SM9MasterSecret *SM9_generate_master_secret(int pairing, int scheme, int hash1); SM9PublicParameters *SM9_extract_public_parameters(SM9MasterSecret *msk); SM9PrivateKey *SM9_extract_private_key(SM9MasterSecret *msk, const char *id, size_t idlen); SM9PublicKey *SM9_extract_public_key(SM9PublicParameters *mpk, const char *id, size_t idlen); =head1 DESCRIPTION =head1 RETURN VALUES =head1 CONFORMING TO GM/T 0044-2016 SM9 Identification Cryptographic Algorithm =head1 SEE ALSO L =head1 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 L. =cut