Repository: couchdb-oauth Updated Branches: refs/heads/master 099057a98 -> 02851639f
Remove couch_crypto Project: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/commit/55d4441a Tree: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/tree/55d4441a Diff: http://git-wip-us.apache.org/repos/asf/couchdb-oauth/diff/55d4441a Branch: refs/heads/master Commit: 55d4441ad235e89a1549dc8fd54edb43ee9442a8 Parents: 099057a Author: ILYA Khlopotov <[email protected]> Authored: Tue Aug 1 14:29:50 2017 -0700 Committer: ILYA Khlopotov <[email protected]> Committed: Tue Aug 1 14:29:50 2017 -0700 ---------------------------------------------------------------------- src/oauth.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-oauth/blob/55d4441a/src/oauth.erl ---------------------------------------------------------------------- diff --git a/src/oauth.erl b/src/oauth.erl index 56c7f7b..5f80008 100644 --- a/src/oauth.erl +++ b/src/oauth.erl @@ -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)).
