object EthECIES
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- EthECIES
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- sealed abstract class EncryptedBlock extends AnyRef
Value Members
- val CipherKeyBits: Int
- val CipherKeyBytes: Int
- val Curve: Fp
- val CurveInfo: (ECDomainParameters, Fp)
- val CurveParams: ECDomainParameters
- def DerivationVector: Array[Byte]
- val DigestBits: Int
- val DigestBytes: Int
- val EmptyByteArray: Array[Byte]
- val EncodedPublicKeyLen: Int
- def EncodingVector: Array[Byte]
- val KdfCounterStart: Int
- val MacBits: Int
- val MacBytes: Int
- val MacKeyBits: Int
- val MacKeyBytes: Int
- def createCipher(encrypt: Boolean, key: Array[Byte], initializationVector: Array[Byte]): BufferedBlockCipher
- def createDigest(): Digest
- def createMac(): Mac
- def createRandom(): SecureRandom
-
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.
-
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.
- 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]
- 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]
- def ecdheSharedSecret(myPriv: EthPrivateKey, yourPub: EthPublicKey): Array[Byte]
- def ecdheSharedSecret(myPriv: ECPrivateKeyParameters, yourPub: ECPublicKeyParameters): Array[Byte]
- def encodePublicKey(pub: ECPublicKeyParameters): Array[Byte]
-
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.
-
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.
- def generateEphemeralKeyPair(random: SecureRandom = createRandom()): (ECPrivateKeyParameters, ECPublicKeyParameters)
- def generateInitializationVector(random: SecureRandom = createRandom()): Array[Byte]
- def kdf(sharedSecret: Array[Byte], initializationVector: Array[Byte], len: Int): Array[Byte]
- def readEncodedPublicKey(keyBytes: Array[Byte]): ECPublicKeyParameters
- implicit def toECPrivateKeyParameters(ethPriv: EthPrivateKey): ECPrivateKeyParameters
- implicit def toECPublicKeyParameters(ethPub: EthPublicKey): ECPublicKeyParameters
- def toEthKeyPair(rawKeyPair: (ECPrivateKeyParameters, ECPublicKeyParameters)): EthKeyPair
- implicit def toEthPrivateKey(priv: ECPrivateKeyParameters): EthPrivateKey
- implicit def toEthPublicKey(pub: ECPublicKeyParameters): EthPublicKey
- object EncryptedBlock