keyword: include sha-2 512/256
Reference: https://github.com/systemd/casync/issues/101#issuecomment-340019721 Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
a30ab86d71
commit
3a0105dc85
2 changed files with 28 additions and 24 deletions
|
@ -50,6 +50,8 @@ var (
|
|||
"sha384digest": hasherKeywordFunc("sha384digest", sha512.New384), // A synonym for `sha384`
|
||||
"sha512": hasherKeywordFunc("sha512digest", sha512.New), // The SHA512 message digest of the file
|
||||
"sha512digest": hasherKeywordFunc("sha512digest", sha512.New), // A synonym for `sha512`
|
||||
"sha512256": hasherKeywordFunc("sha512digest", sha512.New512_256), // The SHA512/256 message digest of the file
|
||||
"sha512256digest": hasherKeywordFunc("sha512digest", sha512.New512_256), // A synonym for `sha512256`
|
||||
|
||||
"flags": flagsKeywordFunc, // NOTE: this is a noop, but here to support the presence of the "flags" keyword.
|
||||
|
||||
|
|
|
@ -316,6 +316,8 @@ func KeywordSynonym(name string) Keyword {
|
|||
retname = "sha384digest"
|
||||
case "sha512":
|
||||
retname = "sha512digest"
|
||||
case "sha512256":
|
||||
retname = "sha512256digest"
|
||||
case "xattrs":
|
||||
retname = "xattr"
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue