Skip to content

Commit

Permalink
Define INFO_x msg as constant size array ref
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Oct 20, 2024
1 parent da11771 commit 76d4517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions payjoin/src/hpke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ pub const PADDED_MESSAGE_BYTES: usize = 7168;
pub const PADDED_PLAINTEXT_A_LENGTH: usize =
PADDED_MESSAGE_BYTES - UNCOMPRESSED_PUBLIC_KEY_SIZE * 2;
pub const PADDED_PLAINTEXT_B_LENGTH: usize = PADDED_MESSAGE_BYTES - UNCOMPRESSED_PUBLIC_KEY_SIZE;
pub const INFO_A: &[u8] = b"PjV2MsgA";
pub const INFO_B: &[u8] = b"PjV2MsgB";
pub const INFO_A: &[u8; 8] = b"PjV2MsgA";
pub const INFO_B: &[u8; 8] = b"PjV2MsgB";

pub type SecretKey = <SecpK256HkdfSha256 as hpke::Kem>::PrivateKey;
pub type PublicKey = <SecpK256HkdfSha256 as hpke::Kem>::PublicKey;
Expand Down

0 comments on commit 76d4517

Please sign in to comment.