Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexw91 committed Sep 17, 2024
1 parent af3d043 commit b9e133d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions ssl/ssl_key_share.cc
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,8 @@ class HybridKeyShare : public SSLKeyShare {
*out = KYBER768_R3_CIPHERTEXT_BYTES;
return true;
case SSL_GROUP_MLKEM768:
*out = MLKEM768_CIPHERTEXT_BYTES;
return true;
*out = MLKEM768_CIPHERTEXT_BYTES;
return true;
case SSL_GROUP_X25519:
*out = 32;
return true;
Expand Down Expand Up @@ -727,10 +727,10 @@ CONSTEXPR_ARRAY HybridGroup kHybridGroups[] = {
{
SSL_GROUP_X25519_MLKEM768, // group_id
{
// Note: MLKEM768 is sent first due to FIPS requirements.
// For more details, see https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem.html#section-3
SSL_GROUP_MLKEM768, // component_group_ids[0]
SSL_GROUP_X25519, // component_group_ids[1]
// Note: MLKEM768 is sent first due to FIPS requirements.
// For more details, see https://www.ietf.org/archive/id/draft-kwiatkowski-tls-ecdhe-mlkem.html#section-3
SSL_GROUP_MLKEM768, // component_group_ids[0]
SSL_GROUP_X25519, // component_group_ids[1]
},
}
};
Expand Down
12 changes: 6 additions & 6 deletions ssl/ssl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -749,14 +749,14 @@ static const HybridGroupTest kHybridGroupTests[] = {
X25519_KEYSHARE_SIZE + MLKEM768_CIPHERTEXT_BYTES,
X25519_SECRET_SIZE + MLKEM768_SHARED_SECRET_LEN,
{
// MLKEM768 is sent first for X25519MLKEM768 for FIPS compliance
MLKEM768_PUBLIC_KEY_BYTES, // offer_share_sizes[0]
X25519_KEYSHARE_SIZE, // offer_share_sizes[1]
// MLKEM768 is sent first for X25519MLKEM768 for FIPS compliance
MLKEM768_PUBLIC_KEY_BYTES, // offer_share_sizes[0]
X25519_KEYSHARE_SIZE, // offer_share_sizes[1]
},
{
// MLKEM768 is sent first for X25519MLKEM768 for FIPS compliance
MLKEM768_CIPHERTEXT_BYTES, // accept_share_sizes[0]
X25519_KEYSHARE_SIZE, // accept_share_sizes[1]
// MLKEM768 is sent first for X25519MLKEM768 for FIPS compliance
MLKEM768_CIPHERTEXT_BYTES, // accept_share_sizes[0]
X25519_KEYSHARE_SIZE, // accept_share_sizes[1]
},
},
};
Expand Down

0 comments on commit b9e133d

Please sign in to comment.