diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2019-05-21 19:10:48 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2019-05-21 19:14:19 +0100 |
commit | 12e9bb25fcee27771fb96bda05aa796591f4e4bf (patch) | |
tree | c7269fafe314249b73ecfe715fe00acc099251bb /doc/doc-docbook/spec.xfpt | |
parent | 96eb7d2a5b86afec3b66a61a1ba8af82ab0c6d41 (diff) |
Expansions: ${sha2_N}
Diffstat (limited to 'doc/doc-docbook/spec.xfpt')
-rw-r--r-- | doc/doc-docbook/spec.xfpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 48237e4ea..d78378c9b 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -10958,10 +10958,14 @@ returns the SHA-1 hash fingerprint of the certificate. .vitem &*${sha256:*&<&'string'&>&*}*& +.vitem &*${sha2:*&<&'string'&>&*}*& &&& + &*${sha2_<n>:*&<&'string'&>&*}*& .cindex "SHA-256 hash" +.cindex "SHA-2 hash" .cindex certificate fingerprint .cindex "expansion" "SHA-256 hashing" .cindex "&%sha256%& expansion item" +.cindex "&%sha2%& expansion item" The &%sha256%& operator computes the SHA-256 hash value of the string and returns it as a 64-digit hexadecimal number, in which any letters are in upper case. @@ -10969,6 +10973,15 @@ it as a 64-digit hexadecimal number, in which any letters are in upper case. If the string is a single variable of type certificate, returns the SHA-256 hash fingerprint of the certificate. +.new +The operator can also be spelled &%sha2%& and does the same as &%sha256%& +(except for certificates, which are not supported). +Finally, if an underbar +and a number is appended it specifies the output length, selecting a +member of the SHA-2 family of hash functions. +Values of 256, 384 and 512 are accepted, with 256 being the default. +.wen + .vitem &*${sha3:*&<&'string'&>&*}*& &&& &*${sha3_<n>:*&<&'string'&>&*}*& |