Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API mismatch with actual result of call of /sign-pkcs1 #7

Open
Niro opened this issue Feb 26, 2023 · 0 comments
Open

API mismatch with actual result of call of /sign-pkcs1 #7

Niro opened this issue Feb 26, 2023 · 0 comments

Comments

@Niro
Copy link

Niro commented Feb 26, 2023

API spec states that successful call should result an array of uint8s, but actual API call result is below

{
  "result": "ZTV2sNVmCEV2WygS8Q+sVxqMZq5Nahck34tqlqEtURtQ2f0UPNtrRl63zJAI9KZlureYpu1lyvR3a/dJasJtCfwqKvhTV/q/3G5hnIUEFwOCcJBUAXrDlrkY3GAKzJQG6Y08m4FB26cfxpAvETWiHy1inAh5enazkU1qh7KFq/aHUrTPeNAomT/OJhlYKnqgdwvyXpJY0eZfX2ZdezRRtEsLvkJ4CNgjwijSo9DN6+d/AkNz3T2nhDisQ1sleELAfk2doDnNdNLRgFxZZpo6mssQS7BRy86/hpOBuOOjl8uUPzTOM1yTae3rDo4hyittyqQ3AO6h6ysxGDNb+mUZN56ZGM9/vk+Jb1U3h8lRUvBGS1/Fg0BolII4vJ+qOCKu/wCpX4ALPpNLFR2h8VdEyW89KxS9qPLvrWsol68SIKIRbjml0SBoblF14Vw4EUv02Dr/+SLNozJlNm3PC3LtmkXfK8O4L3klY7BdYck8VE27kb7vHu39zEFOO+SBa7lE5XM1sGSfhBGtbp57uzhH6GAfahNCaJXw++Vyc8cR+rtQSCuuIrXrZmHhNn5PkW3n0DoTEon71/HY5t1zSgFisPW0gr/E6Nts/Gu73WrUOqq/cSFOb5ugglynk8QUzrvDTQvDanq18iZukN7lxi8dWxYNiDDyDFjFc8PEak2sSlg="
}

As a result deserialisation of such json string leads to Exception. I've found that in C# implementation such issue may be present too.

It is also would be great to pass bytes as a message and ability to choose sign algorithm as it made in AWS KMS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant