Skip to content

Commit

Permalink
circle has elixir precompiled with 21.1 erlang - added crypto types r…
Browse files Browse the repository at this point in the history
…eferences
  • Loading branch information
Ino Murko committed Oct 5, 2018
1 parent e7e8b8d commit eafc39d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 95 deletions.
11 changes: 1 addition & 10 deletions lib/cipher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,7 @@ defmodule ExthCrypto.Cipher do
@type plaintext :: iodata()
@type ciphertext :: binary()
@type init_vector :: binary()
#
# TODO ctr_state is not a exported type in crypto module, swap this with :crypto.stream_state when elixir supports erlang 21.1
@type stream ::
{:aes_ctr,
binary()
| {binary()
| maybe_improper_list(
binary() | maybe_improper_list(any(), binary() | []) | byte(),
binary() | []
), binary(), binary(), integer()}}
@type stream :: :crypto.stream_state()

@doc """
Encrypts the given plaintext for the given block cipher.
Expand Down
86 changes: 1 addition & 85 deletions lib/exth_crypto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,89 +5,5 @@ defmodule ExthCrypto do

@type curve :: nil
@type curve_params :: nil
# TODO: swap this with :crypto.ec_named_curve when elixir supports erlang 21.1
@type named_curve ::
:brainpoolP160r1
| :brainpoolP160t1
| :brainpoolP192r1
| :brainpoolP192t1
| :brainpoolP224r1
| :brainpoolP224t1
| :brainpoolP256r1
| :brainpoolP256t1
| :brainpoolP320r1
| :brainpoolP320t1
| :brainpoolP384r1
| :brainpoolP384t1
| :brainpoolP512r1
| :brainpoolP512t1
| :c2pnb163v1
| :c2pnb163v2
| :c2pnb163v3
| :c2pnb176v1
| :c2pnb208w1
| :c2pnb272w1
| :c2pnb304w1
| :c2pnb368w1
| :c2tnb191v1
| :c2tnb191v2
| :c2tnb191v3
| :c2tnb239v1
| :c2tnb239v2
| :c2tnb239v3
| :c2tnb359v1
| :c2tnb431r1
| :ipsec3
| :ipsec4
| :prime192v1
| :prime192v2
| :prime192v3
| :prime239v1
| :prime239v2
| :prime239v3
| :prime256v1
| :secp112r1
| :secp112r2
| :secp128r1
| :secp128r2
| :secp160k1
| :secp160r1
| :secp160r2
| :secp192k1
| :secp192r1
| :secp224k1
| :secp224r1
| :secp256k1
| :secp256r1
| :secp384r1
| :secp521r1
| :sect113r1
| :sect113r2
| :sect131r1
| :sect131r2
| :sect163k1
| :sect163r1
| :sect163r2
| :sect193r1
| :sect193r2
| :sect233k1
| :sect233r1
| :sect239k1
| :sect283k1
| :sect283r1
| :sect409k1
| :sect409r1
| :sect571k1
| :sect571r1
| :wtls1
| :wtls10
| :wtls11
| :wtls12
| :wtls3
| :wtls4
| :wtls5
| :wtls6
| :wtls7
| :wtls8
| :wtls9
@type named_curve :: :crypto.ec_named_curve()
end

0 comments on commit eafc39d

Please sign in to comment.