exth_crypto v0.1.6 ExthCrypto.ECIES.Parameters

Returns one set of the Standard ECIES parameters:

  • ECIES using AES128 and HMAC-SHA-256-16
  • ECIES using AES256 and HMAC-SHA-256-32
  • ECIES using AES256 and HMAC-SHA-384-48
  • ECIES using AES256 and HMAC-SHA-512-64

Link to this section Summary

Functions

Returns the block size of a given set of ECIES params

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-256 hash

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-256 hash

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-384 hash

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-512 hash

Returns the hash len of a given set of ECIES params

Link to this section Types

Link to this type t()
t() :: %ExthCrypto.ECIES.Parameters{
  cipher: ExthCrypto.cipher(),
  hasher: ExthCrypto.hash_type(),
  key_len: integer(),
  mac: :crypto.hash_algorithms()
}

Link to this section Functions

Link to this function block_size(params)
block_size(t()) :: integer()

Returns the block size of a given set of ECIES params.

Examples

iex> ExthCrypto.ECIES.Parameters.block_size(ExthCrypto.ECIES.Parameters.ecies_aes256_sha512)
32
Link to this function ecies_aes128_sha256()
ecies_aes128_sha256() :: t()

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-256 hash.

Link to this function ecies_aes256_sha256()
ecies_aes256_sha256() :: t()

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-256 hash.

Link to this function ecies_aes256_sha384()
ecies_aes256_sha384() :: t()

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-384 hash.

Link to this function ecies_aes256_sha512()
ecies_aes256_sha512() :: t()

Returns curve parameters for ECIES with AES-256 symmetric encryption and SHA-512 hash.

Link to this function hash_len(params)
hash_len(t()) :: integer()

Returns the hash len of a given set of ECIES params.

Examples

iex> ExthCrypto.ECIES.Parameters.hash_len(ExthCrypto.ECIES.Parameters.ecies_aes256_sha256)
32

iex> ExthCrypto.ECIES.Parameters.hash_len(ExthCrypto.ECIES.Parameters.ecies_aes256_sha512)
64