Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
Merge remote branch 'cloudant:remove-couch_crypto'
This closes #2

Signed-off-by: ILYA Khlopotov <>
  • Loading branch information
iilyak committed Aug 2, 2017
2 parents 099057a + 55d4441 commit 02851639fa4d5aa6a6c493cc38d32e4b078d48e2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -128,7 +128,7 @@ hmac_sha1_signature(HttpMethod, URL, Params, Consumer, TokenSecret) ->

hmac_sha1_signature(BaseString, Consumer, TokenSecret) ->
Key = uri_join([consumer_secret(Consumer), TokenSecret]),
base64:encode_to_string(couch_crypto:hmac(sha, Key, BaseString)).
base64:encode_to_string(crypto:hmac(sha, Key, BaseString)).

hmac_sha1_verify(Signature, HttpMethod, URL, Params, Consumer, TokenSecret) ->
verify_in_constant_time(Signature, hmac_sha1_signature(HttpMethod, URL, Params, Consumer, TokenSecret)).

0 comments on commit 0285163

Please sign in to comment.