This commit is contained in:
parent
61150598d2
commit
b8b10fe19a
3 changed files with 104 additions and 103 deletions
|
|
@ -77,7 +77,7 @@ let () =
|
|||
let xts = salt |> decode in
|
||||
let ikm = ikm |> decode in
|
||||
let ctx = ctx |> decode in
|
||||
let okm = Crypto.FDH_RSA.Kdf.kdf ~xts ~ikm ~ctx ~len:out_len in
|
||||
let okm = Fdh_rsa.Kdf.kdf ~xts ~ikm ~ctx ~len:out_len in
|
||||
let okm = okm |> encode in
|
||||
assert (okm = out);
|
||||
|
||||
|
|
@ -104,7 +104,7 @@ let () =
|
|||
rsa_public_key |> decode |> RsaPublicKey.of_octets |> Result.get_ok
|
||||
in
|
||||
let bks = blinding_key_secret |> decode in
|
||||
let s = FDH_RSA.rsa_blind pub ~bks ~msg |> encode in
|
||||
let s = Fdh_rsa.rsa_blind pub ~bks ~msg |> encode in
|
||||
assert (s = blinded_message);
|
||||
|
||||
()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue