We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What happened:
Can you explain why only key size = 32B is supported? One would expect it will be at-least variable, thus can be override.
https://github.com/blend/go-sdk/blob/master/crypto/local_transit.go#L21
if len(decoded) != DefaultKeySize
// ParseKey parses a key from a string. func ParseKey(key string) ([]byte, error) { decoded, err := hex.DecodeString(key) if err != nil { return nil, ex.New(err) } if len(decoded) != DefaultKeySize { return nil, ex.New("parse key; invalid key length") } return decoded, nil }
The text was updated successfully, but these errors were encountered:
// The key should be 16 bytes (AES-128), 24 bytes (AES-192) or 32 bytes (AES-256)
Sorry, something went wrong.
No branches or pull requests
What happened:
Can you explain why only key size = 32B is supported?
One would expect it will be at-least variable, thus can be override.
https://github.com/blend/go-sdk/blob/master/crypto/local_transit.go#L21
if len(decoded) != DefaultKeySize
The text was updated successfully, but these errors were encountered: