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

crypto/des: invalid key size 32 #19254

Closed
squallcx opened this issue Feb 23, 2017 · 1 comment
Closed

crypto/des: invalid key size 32 #19254

squallcx opened this issue Feb 23, 2017 · 1 comment

Comments

@squallcx
Copy link

des.NewTripleDESCipher is 24 key length, who to handle 32 key length condition?

@ALTree
Copy link
Member

ALTree commented Feb 23, 2017

Is this a question or a bug report?

The first 3 lines of NewTripleDESCipher are:

if len(key) != 24 {
	return nil, KeySizeError(len(key))
}

so you'll need to handle any key-length-related error that the function returns.

We don't use the issue tracker for questions, so if you have further questions please see the Questions wiki page; it has a list of good places for asking them.

Closing, since this appears to be not-a-bug-report.

@ALTree ALTree closed this as completed Feb 23, 2017
@golang golang locked and limited conversation to collaborators Feb 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants