class Md5Mac extends AnyRef
MD5-MAC is a ancient MAC algorithm from the 90s that nobody uses anymore. Not to be confused with HMAC-MD5. A description of the algorithm can be found at http://cacr.uwaterloo.ca/hac/about/chap9.pdf, 9.69 Algorithm MD5-MAC. There are two implementations: one from older versions of CryptoPP (2007), and one from OpenCL (2001) (nowadays called Botan and not to be confused with the OpenCL standard from Khronos). Both libraries have since removed this code. This file is a Scala port of the OpenCL implementation. Source: https://github.com/sghiassy/Code-Reading-Book/blob/master/OpenCL/src/md5mac.cpp
- Source
- Md5Mac.scala
- Alphabetic
- By Inheritance
- Md5Mac
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Md5Mac(key: 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def doFinal(length: Int = MACLENGTH): ByteVector
Perform final hash calculations and reset the state
Perform final hash calculations and reset the state
- returns
the hash
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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
- val key: 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()
- def reset(): Md5Mac
Restore the original cryptographic information (state) for this MAC algorithm.
Restore the original cryptographic information (state) for this MAC algorithm. The primary key is being reused and, without random elements in the calculation, the original cryptographic information only needs to be reloaded.
- returns
this MAC algorithm container
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def update(bytes: ByteVector): Unit
- def updateFinal(bytes: ByteVector, length: Int = MACLENGTH): ByteVector
Shorthand for
update
anddoFinal
- 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()