class CryptoStateWithMAC extends CryptoState
- Source
- CryptoInterface.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CryptoStateWithMAC
- CryptoState
- IFinalizable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CryptoStateWithMAC(decryptionKey: ByteVector, encryptionKey: ByteVector, decryptionMACKey: ByteVector, encryptionMACKey: ByteVector)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assertNotClosed: Unit
- Definition Classes
- IFinalizable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def close: Unit
- Definition Classes
- CryptoState → IFinalizable
- val closed: Boolean
- Definition Classes
- IFinalizable
- var decCryptoHandle: Pointer
- Definition Classes
- CryptoState
- def decrypt(ciphertext: ByteVector): ByteVector
- Definition Classes
- CryptoState
- val decryptionKey: ByteVector
- Definition Classes
- CryptoState
- val decryptionMACKey: ByteVector
- var encCryptoHandle: Pointer
- Definition Classes
- CryptoState
- def encrypt(plaintext: ByteVector): ByteVector
- Definition Classes
- CryptoState
- val encryptionKey: ByteVector
- Definition Classes
- CryptoState
- val encryptionMACKey: ByteVector
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Definition Classes
- IFinalizable → AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def macAndEncrypt(message: ByteVector): ByteVector
MACs the plaintext message, encrypts it, and then returns the encrypted message with the MAC appended to the end.
MACs the plaintext message, encrypts it, and then returns the encrypted message with the MAC appended to the end.
- message
Arbitrary set of bytes
- returns
ByteVector
- def macForDecrypt(message: ByteVector): ByteVector
Performs a MAC operation over the message.
Performs a MAC operation over the message. Used when verifying decrypted packets
- message
the input message
- returns
ByteVector
- def macForEncrypt(message: ByteVector): ByteVector
Performs a MAC operation over the message.
Performs a MAC operation over the message. Used when encrypting packets
- message
the input message
- returns
ByteVector
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()