Skip to content
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
6810037
fix: use correct key lengths
tnotheis Oct 12, 2026
34781a5
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 13, 2026
f8dbbf0
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 13, 2026
4fe8cab
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 14, 2026
3280885
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 14, 2026
a68ede4
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 14, 2026
e2c954f
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 14, 2026
88bc050
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 14, 2026
76a4e9c
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 14, 2026
ff4c7c9
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 14, 2026
db9323f
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 19, 2026
7ee95ff
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 21, 2026
866cbc4
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 21, 2026
f3c59f6
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 21, 2026
645bc25
Merge branch 'main' into OpenID4VC-credential-requests-occasionally-f…
mergify[bot] Oct 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ export class EnmeshedHolderKeyManagementService implements Kms.KeyManagementServ
const publicJwk = {
kty: "EC",
crv: "P-256",
x: this.b64url(new Uint8Array(key.getPublic().getX().toArray())),
y: this.b64url(new Uint8Array(key.getPublic().getY().toArray()))
x: this.b64url(new Uint8Array(key.getPublic().getX().toArray("be", 32))),
y: this.b64url(new Uint8Array(key.getPublic().getY().toArray("be", 32)))
};

const privateJwk = {
...publicJwk,
d: this.b64url(new Uint8Array(key.getPrivate().toArray()))
d: this.b64url(new Uint8Array(key.getPrivate().toArray("be", 32)))
};

const jwkKeyPair = {
Expand Down Expand Up @@ -175,11 +175,11 @@ export class EnmeshedHolderKeyManagementService implements Kms.KeyManagementServ

const dataHash = ec.hash().update(options.data).digest();
const signature = key.sign(dataHash);
const r = new Uint8Array(signature.r.toArray());
const s = new Uint8Array(signature.s.toArray());
const signatureBytes = new Uint8Array(r.length + s.length);
const r = new Uint8Array(signature.r.toArray("be", 32));
const s = new Uint8Array(signature.s.toArray("be", 32));
const signatureBytes = new Uint8Array(64);
signatureBytes.set(r);
signatureBytes.set(s, r.length);
signatureBytes.set(s, 32);

return await Promise.resolve({
signature: signatureBytes
Expand Down Expand Up @@ -265,7 +265,7 @@ export class EnmeshedHolderKeyManagementService implements Kms.KeyManagementServ
);

const sharedSecret = localPriv.derive(remoteBasePoint.getPublic());
const sharedBytes = new Uint8Array(sharedSecret.toArray("be"));
const sharedBytes = new Uint8Array(sharedSecret.toArray("be", 32));
return sharedBytes;
}

Expand Down
Loading