Permalink
Browse files

[revert] Crypto: "[feature] Crypto: add hmac_sha256"

Reverting as it requires newer version of Cryptokit and for now
there are some technical problems with its installation.

This reverts commit 9678424.
  • Loading branch information...
akoprow committed Feb 3, 2012
1 parent 723a813 commit f50d5972d9258c233ef29f21ab04f65d7be91556
Showing with 0 additions and 14 deletions.
  1. +0 −4 plugins/crypto/bslCrypto.ml
  2. +0 −10 stdlib/crypto/crypto.opa
@@ -42,10 +42,6 @@ let base64_decode2 str =
let hmac_sha1 key text =
Cryptokit.hash_string (Cryptokit.MAC.hmac_sha1 key) text
-##register hmac_sha256 : string, string -> string
-let hmac_sha256 key text =
- Cryptokit.hash_string (Cryptokit.MAC.hmac_sha256 key) text
-
##register sha2 : string -> string
let sha2 s =
let hashobj = Cryptokit.Hash.sha256 () in
View
@@ -54,18 +54,8 @@ Crypto = {{
Hash = {{
- /**
- * Produces a HMAC_SHA1 for the given key and message. The first argument
- * is the key, the second is the message.
- */
hmac_sha1 = %% BslCrypto.hmac_sha1 %% : string, string -> string
- /**
- * Produces a HMAC_SHA256 for the given key and message. The first argument
- * is the key, the second is the message.
- */
- hmac_sha256 = %% BslCrypto.hmac_sha256 %% : string, string -> string
-
md5 = %% BslCrypto.md5 %% : string -> string
sha2 = %%BslCrypto.sha2%% : string -> string

0 comments on commit f50d597

Please sign in to comment.