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))