Browse Source

use - in hash descriptors.

Kelvin Sherlock 8 years ago
parent
commit
2dc574d477
2 changed files with 8 additions and 8 deletions
  1. 4 4
      src/hashes/blake2b.c
  2. 4 4
      src/hashes/blake2s.c

+ 4 - 4
src/hashes/blake2b.c

@@ -71,7 +71,7 @@ struct blake2b_param {
 
 
 const struct ltc_hash_descriptor blake2b_160_desc =
 const struct ltc_hash_descriptor blake2b_160_desc =
 {
 {
-    "blake2b_160",
+    "blake2b-160",
     25,
     25,
     20,
     20,
     128,
     128,
@@ -86,7 +86,7 @@ const struct ltc_hash_descriptor blake2b_160_desc =
 
 
 const struct ltc_hash_descriptor blake2b_256_desc =
 const struct ltc_hash_descriptor blake2b_256_desc =
 {
 {
-    "blake2b_256",
+    "blake2b-256",
     26,
     26,
     32,
     32,
     128,
     128,
@@ -101,7 +101,7 @@ const struct ltc_hash_descriptor blake2b_256_desc =
 
 
 const struct ltc_hash_descriptor blake2b_384_desc =
 const struct ltc_hash_descriptor blake2b_384_desc =
 {
 {
-    "blake2b_384",
+    "blake2b-384",
     27,
     27,
     48,
     48,
     128,
     128,
@@ -116,7 +116,7 @@ const struct ltc_hash_descriptor blake2b_384_desc =
 
 
 const struct ltc_hash_descriptor blake2b_512_desc =
 const struct ltc_hash_descriptor blake2b_512_desc =
 {
 {
-    "blake2b_512",
+    "blake2b-512",
     28,
     28,
     64,
     64,
     128,
     128,

+ 4 - 4
src/hashes/blake2s.c

@@ -69,7 +69,7 @@ struct blake2s_param {
 
 
 const struct ltc_hash_descriptor blake2s_128_desc =
 const struct ltc_hash_descriptor blake2s_128_desc =
 {
 {
-    "blake2s_128",
+    "blake2s-128",
     21,
     21,
     16,
     16,
     64,
     64,
@@ -84,7 +84,7 @@ const struct ltc_hash_descriptor blake2s_128_desc =
 
 
 const struct ltc_hash_descriptor blake2s_160_desc =
 const struct ltc_hash_descriptor blake2s_160_desc =
 {
 {
-    "blake2s_160",
+    "blake2s-160",
     22,
     22,
     32,
     32,
     64,
     64,
@@ -99,7 +99,7 @@ const struct ltc_hash_descriptor blake2s_160_desc =
 
 
 const struct ltc_hash_descriptor blake2s_224_desc =
 const struct ltc_hash_descriptor blake2s_224_desc =
 {
 {
-    "blake2s_224",
+    "blake2s-224",
     23,
     23,
     32,
     32,
     64,
     64,
@@ -114,7 +114,7 @@ const struct ltc_hash_descriptor blake2s_224_desc =
 
 
 const struct ltc_hash_descriptor blake2s_256_desc =
 const struct ltc_hash_descriptor blake2s_256_desc =
 {
 {
-    "blake2s_256",
+    "blake2s-256",
     24,
     24,
     32,
     32,
     64,
     64,