From edcb64e9841498c6b6ae33f9646d0cebfcdac853 Mon Sep 17 00:00:00 2001 From: Nicholas Molnar <65710+neekolas@users.noreply.github.com> Date: Thu, 18 Jan 2024 09:23:09 -0800 Subject: [PATCH] Expose encryption methods --- openmls/src/ciphersuite/hpke.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmls/src/ciphersuite/hpke.rs b/openmls/src/ciphersuite/hpke.rs index 061c4d1249..570f90f637 100644 --- a/openmls/src/ciphersuite/hpke.rs +++ b/openmls/src/ciphersuite/hpke.rs @@ -90,7 +90,7 @@ impl From<(&str, &[u8])> for EncryptContext { } /// Encrypt to an HPKE key with a label. -pub(crate) fn encrypt_with_label( +pub fn encrypt_with_label( public_key: &[u8], label: &str, context: &[u8], @@ -123,7 +123,7 @@ pub(crate) fn encrypt_with_label( } /// Decrypt with HPKE and label. -pub(crate) fn decrypt_with_label( +pub fn decrypt_with_label( private_key: &[u8], label: &str, context: &[u8],