Packages

object EthECIES

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EthECIES
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class EncryptedBlock extends AnyRef

Value Members

  1. val CipherKeyBits: Int
  2. val CipherKeyBytes: Int
  3. val Curve: Fp
  4. val CurveInfo: (ECDomainParameters, Fp)
  5. val CurveParams: ECDomainParameters
  6. def DerivationVector: Array[Byte]
  7. val DigestBits: Int
  8. val DigestBytes: Int
  9. val EmptyByteArray: Array[Byte]
  10. val EncodedPublicKeyLen: Int
  11. def EncodingVector: Array[Byte]
  12. val KdfCounterStart: Int
  13. val MacBits: Int
  14. val MacBytes: Int
  15. val MacKeyBits: Int
  16. val MacKeyBytes: Int
  17. def createCipher(encrypt: Boolean, key: Array[Byte], initializationVector: Array[Byte]): BufferedBlockCipher
  18. def createDigest(): Digest
  19. def createMac(): Mac
  20. def createRandom(): SecureRandom
  21. def decryptBlock(to: ECPrivateKeyParameters, initializationVector: Array[Byte], mbSharedSecret: Option[Array[Byte]], bytes: Array[Byte], offset: Int, len: Int): Array[Byte]

    Accepts the concatenation of an ephemeral public sender key, ciphertext and MAC in a byte array.

  22. def decryptBlock(from: ECPublicKeyParameters, to: ECPrivateKeyParameters, initializationVector: Array[Byte], mbSharedSecret: Option[Array[Byte]], bytes: Array[Byte], offset: Int, len: Int): Array[Byte]

    Requires the sender's known public key.

    Requires the sender's known public key.

    Accepts the concatenation of ciphertext and MAC in a byte array.

  23. def doDecryptBlock(mbEmbeddedEncodedPublicKey: Option[Array[Byte]], sharedSecret: Array[Byte], derivationVector: Array[Byte], encodingVector: Array[Byte], initializationVector: Array[Byte], in: Array[Byte], inOffset: Int, inLen: Int): Array[Byte]
  24. def doEncryptBlock(mbEmbeddedEncodedPublicKey: Option[Array[Byte]], sharedSecret: Array[Byte], derivationVector: Array[Byte], encodingVector: Array[Byte], initializationVector: Array[Byte], in: Array[Byte], inOffset: Int, inLen: Int): Array[Byte]
  25. def ecdheSharedSecret(myPriv: EthPrivateKey, yourPub: EthPublicKey): Array[Byte]
  26. def ecdheSharedSecret(myPriv: ECPrivateKeyParameters, yourPub: ECPublicKeyParameters): Array[Byte]
  27. def encodePublicKey(pub: ECPublicKeyParameters): Array[Byte]
  28. def encryptBlock(to: ECPublicKeyParameters, initializationVector: Array[Byte], mbSharedSecret: Option[Array[Byte]], bytes: Array[Byte], offset: Int, len: Int): Array[Byte]

    Returns the concatenation of an ephemeral sender public key, ciphertext and MAC in a byte array.

  29. def encryptBlock(from: ECPrivateKeyParameters, to: ECPublicKeyParameters, initializationVector: Array[Byte], mbSharedSecret: Option[Array[Byte]], bytes: Array[Byte], offset: Int, len: Int): Array[Byte]

    Returns the concatenation of ciphertext and MAC in a byte array.

  30. def generateEphemeralKeyPair(random: SecureRandom = createRandom()): (ECPrivateKeyParameters, ECPublicKeyParameters)
  31. def generateInitializationVector(random: SecureRandom = createRandom()): Array[Byte]
  32. def kdf(sharedSecret: Array[Byte], initializationVector: Array[Byte], len: Int): Array[Byte]
  33. def readEncodedPublicKey(keyBytes: Array[Byte]): ECPublicKeyParameters
  34. implicit def toECPrivateKeyParameters(ethPriv: EthPrivateKey): ECPrivateKeyParameters
  35. implicit def toECPublicKeyParameters(ethPub: EthPublicKey): ECPublicKeyParameters
  36. def toEthKeyPair(rawKeyPair: (ECPrivateKeyParameters, ECPublicKeyParameters)): EthKeyPair
  37. implicit def toEthPrivateKey(priv: ECPrivateKeyParameters): EthPrivateKey
  38. implicit def toEthPublicKey(pub: ECPublicKeyParameters): EthPublicKey
  39. object EncryptedBlock