We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e471b1b + 2f7a7f1 commit 2dd4a8bCopy full SHA for 2dd4a8b
spec/tpm/key_attestation_spec.rb
@@ -375,7 +375,11 @@
375
t_public.parameters.scheme = TPM::ALG_NULL
376
t_public.parameters.curve_id = curve_id
377
t_public.parameters.kdf = TPM::ALG_NULL
378
- t_public.unique.buffer = attested_key.public_key.to_bn.to_s(2)[1..-1]
+
379
+ public_key_bytes = attested_key.public_key.to_bn.to_s(2)[1..-1]
380
+ coordinate_length = public_key_bytes.size / 2
381
+ t_public.unique.x.buffer = public_key_bytes[0..(coordinate_length - 1)]
382
+ t_public.unique.y.buffer = public_key_bytes[coordinate_length..-1]
383
384
t_public.to_binary_s
385
end
0 commit comments