From 55d4441ad235e89a1549dc8fd54edb43ee9442a8 Mon Sep 17 00:00:00 2001 From: ILYA Khlopotov Date: Tue, 1 Aug 2017 14:29:50 -0700 Subject: [PATCH] Remove couch_crypto --- src/oauth.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)).