Skip to content

Commit

Permalink
specify correct key dst for fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
BasileiosKal committed Nov 29, 2023
1 parent 3f5e64f commit 8a9a63f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
12 changes: 10 additions & 2 deletions draft-irtf-cfrg-bbs-signatures.md
Original file line number Diff line number Diff line change
Expand Up @@ -1887,10 +1887,14 @@ Following the procedure defined in (#secret-key) with an input `key_material` va
```
key_material = {{ $KeyPairFixtures.bls12-381-shake-256.keypair.keyMaterial }}
```
and the following `key_info` value
the following `key_info` value
```
key_info = {{ $KeyPairFixtures.bls12-381-shake-256.keypair.keyInfo }}
```
and the following `key_dst` value, defined by `api_id || KEYGEN_DST_`, where `api_id` the identifier of the BBS Ciphersuite defined in (#bbs-signatures-interface) for the `BLS12-381-SHAKE-256` ciphersuite defined in (#bls12-381-shake-256),
```
key_dst = {{ $KeyPairFixtures.bls12-381-shake-256.keypair.keyDst }}
```
Outputs the following SK value
Expand Down Expand Up @@ -2085,10 +2089,14 @@ Following the procedure defined in (#secret-key) with an input `key_material` va
```
key_material = {{ $KeyPairFixtures.bls12-381-sha-256.keypair.keyMaterial }}
```
and the following `key_info` value
the following `key_info` value
```
key_info = {{ $KeyPairFixtures.bls12-381-sha-256.keypair.keyInfo }}
```
and the following `key_dst` value, defined by `api_id || KEYGEN_DST_`, where `api_id` the identifier of the BBS Ciphersuite defined in (#bbs-signatures-interface) for the `BLS12-381-SHA-256` ciphersuite defined in (#bls12-381-sha-256),
```
key_dst = {{ $KeyPairFixtures.bls12-381-sha-256.keypair.keyDst }}
```
Outputs the following SK value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"caseName": "key pair fixture",
"keyMaterial": "746869732d49532d6a7573742d616e2d546573742d494b4d2d746f2d67656e65726174652d246528724074232d6b6579",
"keyInfo": "746869732d49532d736f6d652d6b65792d6d657461646174612d746f2d62652d757365642d696e2d746573742d6b65792d67656e",
"keyDst": "4242535f424c53313233383147315f584d443a5348412d3235365f535357555f524f5f4832475f484d32535f4b455947454e5f4453545f",
"keyPair": {
"secretKey": "60e55110f76883a13d030b2f6bd11883422d5abde717569fc0731f51237169fc",
"publicKey": "a820f230f6ae38503b86c70dc50b61c58a77e45c39ab25c0652bbaa8fa136f2851bd4781c9dcde39fc9d1d52c9e60268061e7d7632171d91aa8d460acee0e96f1e7c4cfb12d3ff9ab5d5dc91c277db75c845d649ef3c4f63aebc364cd55ded0c"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"caseName": "key pair fixture",
"keyMaterial": "746869732d49532d6a7573742d616e2d546573742d494b4d2d746f2d67656e65726174652d246528724074232d6b6579",
"keyInfo": "746869732d49532d736f6d652d6b65792d6d657461646174612d746f2d62652d757365642d696e2d746573742d6b65792d67656e",
"keyDst": "4242535f424c53313233383147315f584f463a5348414b452d3235365f535357555f524f5f4832475f484d32535f4b455947454e5f4453545f",
"keyPair": {
"secretKey": "2eee0f60a8a3a8bec0ee942bfd46cbdae9a0738ee68f5a64e7238311cf09a079",
"publicKey": "92d37d1d6cd38fea3a873953333eab23a4c0377e3e049974eb62bd45949cdeb18fb0490edcd4429adff56e65cbce42cf188b31bddbd619e419b99c2c41b38179eb001963bc3decaae0d9f702c7a8c004f207f46c734a5eae2e8e82833f3e7ea5"
Expand Down

0 comments on commit 8a9a63f

Please sign in to comment.