Bouncy Castle Cryptography Library 1.85

org.bouncycastle.crypto.test
Class SM3HMacTest

java.lang.Object
  extended byorg.bouncycastle.crypto.test.SM3HMacTest
All Implemented Interfaces:
Test

public class SM3HMacTest
extends java.lang.Object
implements Test

SM3 HMac Test, using the standard RFC 2202 / RFC 4231 key/message inputs. SM3 is a 256-bit digest, so HMAC-SM3 produces a full 32-byte output; these vectors guard against the output length being truncated.


Constructor Summary
SM3HMacTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 TestResult perform()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SM3HMacTest

public SM3HMacTest()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Test

perform

public TestResult perform()
Specified by:
perform in interface Test

main

public static void main(java.lang.String[] args)

Bouncy Castle Cryptography Library 1.85