Class NtlmFunctions
java.lang.Object
com.hierynomus.ntlm.functions.NtlmFunctions
NTLM Helper functions
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]hmac_md5(SecurityProvider securityProvider, byte[] key, byte[]... message) [MS-NLMP].pdf 6 Appendix A: Cryptographic Operations Reference (HMAC_MD5(K, M)).static byte[]md5(SecurityProvider securityProvider, byte[]... message) static Stringoem(byte[] bytes) static byte[]static byte[]rc4k(SecurityProvider securityProvider, byte[] k, byte[] d) [MS-NLMP].pdf 6 Appendix A: Cryptographic Operations Reference (RC4K(K, D)).static Stringunicode(byte[] bytes) static byte[][MS-NLMP].pdf 6 Appendix A: Cryptographic Operations Reference (UNICODE(string)).
-
Field Details
-
UNICODE
-
-
Method Details
-
unicode
[MS-NLMP].pdf 6 Appendix A: Cryptographic Operations Reference (UNICODE(string)).- Parameters:
string- The string to get the bytes of.- Returns:
- The 2-byte little endian byte order encoding of the Unicode UTF-16 representation of the string.
-
unicode
-
oem
-
oem
-
hmac_md5
[MS-NLMP].pdf 6 Appendix A: Cryptographic Operations Reference (HMAC_MD5(K, M)).- Parameters:
key- The bytes of key Kmessage- The bytes of message M- Returns:
- The 16-byte HMAC-keyed MD5 message digest of the byte string M using the key K
-
md5
-
rc4k
public static byte[] rc4k(SecurityProvider securityProvider, byte[] k, byte[] d) throws NtlmException [MS-NLMP].pdf 6 Appendix A: Cryptographic Operations Reference (RC4K(K, D)).- Parameters:
k- The key to initialize the RC4 cipher with.d- The data to encrypt.- Returns:
- The encrypted data.
- Throws:
NtlmException
-