LibWeb: Implement the deriveBits algorithm for X448

This commit is contained in:
Andreas Kling 2024-11-25 15:56:40 +01:00 committed by Andreas Kling
commit d625e12082
Notes: github-actions[bot] 2024-11-25 16:17:43 +00:00
4 changed files with 81 additions and 18 deletions

View file

@ -6,24 +6,24 @@ Rerun
Found 18 tests
1 Pass
17 Fail
15 Pass
3 Fail
Details
Result Test Name MessagePass setup - define tests
Fail X448 key derivation checks for all-zero value result with a key of order 0
Fail X448 key derivation checks for all-zero value result with a key of order 1
Fail X448 key derivation checks for all-zero value result with a key of order p-1 (order 2)
Fail X448 key derivation checks for all-zero value result with a key of order p (=0, order 4)
Fail X448 key derivation checks for all-zero value result with a key of order p+1 (=1, order 1)
Fail X448 good parameters
Pass X448 key derivation checks for all-zero value result with a key of order 0
Pass X448 key derivation checks for all-zero value result with a key of order 1
Pass X448 key derivation checks for all-zero value result with a key of order p-1 (order 2)
Pass X448 key derivation checks for all-zero value result with a key of order p (=0, order 4)
Pass X448 key derivation checks for all-zero value result with a key of order p+1 (=1, order 1)
Pass X448 good parameters
Fail X448 mixed case parameters
Fail X448 short result
Pass X448 short result
Fail X448 non-multiple of 8 bits
Fail X448 missing public property
Fail X448 public property of algorithm is not a CryptoKey
Pass X448 missing public property
Pass X448 public property of algorithm is not a CryptoKey
Fail X448 mismatched algorithms
Fail X448 no deriveBits usage for base key
Fail X448 base key is not a private key
Fail X448 public property value is a private key
Fail X448 public property value is a secret key
Fail X448 asking for too many bits
Pass X448 no deriveBits usage for base key
Pass X448 base key is not a private key
Pass X448 public property value is a private key
Pass X448 public property value is a secret key
Pass X448 asking for too many bits