+proc param_hash_long_name {hash_alg {pk_alg {}}} {
+ # R 1323565.1.023-2018 (5.2.1.2) not recommends or forbids encoding
+ # hash oid into TC26 (2012) parameters in AlgorithmIdentifier, so
+ # this is removed.
+ # Note:
+ # Commit d47b346 reverts this behavior for 512-bit 0,A,B parameters
+ switch -glob $pk_alg {
+ gost2012_256:TC* {return}
+ gost2012_512:C {return}
+ }