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

Base64 error messaging in version and type verification #162

Open
seebees opened this issue Sep 19, 2019 · 1 comment
Open

Base64 error messaging in version and type verification #162

seebees opened this issue Sep 19, 2019 · 1 comment

Comments

@seebees
Copy link
Contributor

seebees commented Sep 19, 2019

When the version and type elements of the AWS Encryption Message format are verified,
the error message should be customize if the version and type match the base64 value.
This is convent sugar for a common problem.

Valid blobs will have the first 2 bytes in HEX will be: 01, 80, and in DEC 01, 128
Valid blobs that have not been properly base64 decoded
the values in HEX will be 41, 59, and in DEC 65, 89

aws/aws-encryption-sdk-javascript#217

@mattsb42-aws
Copy link
Member

This will be mostly addressed by aws/aws-encryption-sdk-python#192.
What we might want to do here specifically is surface the error to the caller in a special way.

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

No branches or pull requests

2 participants