Skip to content

Commit

Permalink
Add Identity name/value pair (GH weidai11#542)
Browse files Browse the repository at this point in the history
China’s SM2 uses an identity field for digital signatures. We used a ConstByteArrayParameter rather than a char* because the identifier may not be a C-string. The observation is based on experience with Thomas Wu’s Secure Remote Protocol (SRP)
  • Loading branch information
noloader committed Nov 25, 2017
1 parent 3dbd762 commit 1ca704a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions argnames.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ CRYPTOPP_DEFINE_NAME_STRING(TreeMode) //!< byte
CRYPTOPP_DEFINE_NAME_STRING(FileName) //!< const char *
CRYPTOPP_DEFINE_NAME_STRING(FileTime) //!< int
CRYPTOPP_DEFINE_NAME_STRING(Comment) //!< const char *
CRYPTOPP_DEFINE_NAME_STRING(Identity) //!< ConstByteArrayParameter
DOCUMENTED_NAMESPACE_END

NAMESPACE_END
Expand Down

0 comments on commit 1ca704a

Please sign in to comment.