Fix comment about the hash in use

This commit is contained in:
Jason Rhinelander 2023-04-21 18:29:40 -03:00
parent 0ff8fb8922
commit ab1a84f6c5
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 2 additions and 2 deletions

View File

@ -114,10 +114,10 @@ std::array<unsigned char, 32> subkey_verify_key(
const unsigned char* pubkey, const unsigned char* subkey) {
std::array<unsigned char, 32> subkey_pub;
// Need to compute: (c + H("OxenSSSubkey" || c || A)) A and use that instead of A for
// Need to compute: (c + H(c || A, key="OxenSSSubkey")) A and use that instead of A for
// verification:
// H("OxenSSSubkey" || c || A):
// H(c || A, key="OxenSSSubkey"):
crypto_generichash_state h_state;
crypto_generichash_init(
&h_state,