forked from openwsn-berkeley/lakers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
46 lines (38 loc) · 876 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#![no_std]
use edhoc_consts::*;
use edhoc_crypto_trait::Crypto;
// TODO: the function signatures should not be necessarily the same as the zeroconf version
// find a way to be generic on this part.
// initiator side
pub fn i_prepare_ead_1(
_crypto: &mut impl Crypto,
_x: &BytesP256ElemLen,
_ss: u8,
) -> Option<EADItem> {
None
}
pub fn i_process_ead_2(
_crypto: &mut impl Crypto,
_ead_2: EADItem,
_cred_v_u8: &[u8],
_h_message_1: &BytesHashLen,
) -> Result<(), ()> {
Ok(())
}
pub fn i_prepare_ead_3() -> Option<EADItem> {
None
}
// responder side
pub fn r_process_ead_1(
_crypto: &mut impl Crypto,
_ead_1: &EADItem,
_message_1: &BufferMessage1,
) -> Result<(), ()> {
Ok(())
}
pub fn r_prepare_ead_2() -> Option<EADItem> {
None
}
pub fn r_process_ead_3(_ead_3: EADItem) -> Result<(), ()> {
Ok(())
}