Skip to content

Commit

Permalink
Integrate esdk with mpl (#45)
Browse files Browse the repository at this point in the history
These are the changes to the ESDK
to integrate with the MPL
  • Loading branch information
seebees authored Feb 2, 2023
1 parent b98df44 commit 8cec193
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ module AwsCryptographyPrimitivesOperations refines AbstractAwsCryptographyPrimit
}

predicate HkdfExpandEnsuresPublicly(input: HkdfExpandInput, output: Result<seq<uint8>, Error>)
{true}
{
output.Success?
==>
&& |output.value| == input.expectedLength as nat
}

method HkdfExpand ( config: InternalConfig, input: HkdfExpandInput )
returns (output: Result<seq<uint8>, Error>)
Expand All @@ -74,7 +78,11 @@ module AwsCryptographyPrimitivesOperations refines AbstractAwsCryptographyPrimit
}

predicate HkdfEnsuresPublicly(input: HkdfInput, output: Result<seq<uint8>, Error>)
{true}
{
output.Success?
==>
&& |output.value| == input.expectedLength as nat
}

method Hkdf ( config: InternalConfig, input: HkdfInput )
returns (output: Result<seq<uint8>, Error>)
Expand Down

0 comments on commit 8cec193

Please sign in to comment.