~miikka/clj-branca

e720e2ce7aa348f7d3512a0e09654992bc84c8d3 — Miikka Koskinen 1 year, 6 months ago 1528690
Use key length constant instead of inlined number
1 files changed, 1 insertions(+), 1 deletions(-)

M src/clj_branca/core.clj
M src/clj_branca/core.clj => src/clj_branca/core.clj +1 -1
@@ 12,7 12,7 @@

(defn- key->bytes [key]
  (let [key (bs/to-byte-array key)]
    (when-not (= 32 (count key))
    (when-not (= crypto/+key-length+ (count key))
      (throw (ex-info (format "Key must be %d bytes long; got %d bytes"
                              crypto/+key-length+
                              (count key))