(keyId: string, n: number)
| 8 | |
| 9 | /** Build a `CreateSplitKey` TTLV request for an AES-256 symmetric key. */ |
| 10 | export const buildCreateSplitKeyRequest = (keyId: string, n: number) => ({ |
| 11 | tag: "CreateSplitKey", |
| 12 | type: "Structure", |
| 13 | value: [ |
| 14 | { tag: "ObjectType", type: "Enumeration", value: "SymmetricKey" }, |
| 15 | { tag: "UniqueIdentifier", type: "TextString", value: keyId }, |
| 16 | { tag: "SplitKeyParts", type: "Integer", value: n }, |
| 17 | { tag: "SplitKeyThreshold", type: "Integer", value: n }, |
| 18 | { tag: "SplitKeyMethod", type: "Enumeration", value: "XOR" }, |
| 19 | ], |
| 20 | }); |
no outgoing calls
no test coverage detected