C++ Native Functions: com.ibm.streams.teda.utility
SPL standard and specialized toolkits > com.ibm.streams.teda 1.0.2 > com.ibm.streams.teda.utility > C++ Native Functions
- public rstring sha2hash160(blob value)
Computes a 160-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; rstring hashA = sha2hash160(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public rstring sha2hash160(rstring value)
Computes a 160-bit SHA-2 hash value from a given input value.
Examples:
rstring hashA = sha2hash160("Hello World."); rstring hashB = sha2hash160((rstring) 123.4); rstring hashC = sha2hash160("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public blob sha2hash160raw(blob value)
Computes a 160-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; blob hashA = sha2hash160raw(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public blob sha2hash160raw(rstring value)
Computes a 160-bit SHA-2 hash value from a given input value.
Examples:
blob hashA = sha2hash160raw("Hello World."); blob hashB = sha2hash160raw((rstring) 123.4); blob hashC = sha2hash160raw("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public rstring sha2hash224(blob value)
Computes a 224-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; rstring hashA = sha2hash224(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public rstring sha2hash224(rstring value)
Computes a 224-bit SHA-2 hash value from a given input value.
Examples:
rstring hashA = sha2hash224("Hello World."); rstring hashB = sha2hash224((rstring) 123.4); rstring hashC = sha2hash224("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public blob sha2hash224raw(blob value)
Computes a 224-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; blob hashA = sha2hash224raw(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public blob sha2hash224raw(rstring value)
Computes a 224-bit SHA-2 hash value from a given input value.
Examples:
blob hashA = sha2hash224raw("Hello World."); blob hashB = sha2hash224raw((rstring) 123.4); blob hashC = sha2hash224raw("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public rstring sha2hash256(blob value)
Computes a 256-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; rstring hashA = sha2hash256(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public rstring sha2hash256(rstring value)
Computes a 256-bit SHA-2 hash value from a given input value.
Examples:
rstring hashA = sha2hash256("Hello World."); rstring hashB = sha2hash256((rstring) 123.4); rstring hashC = sha2hash256("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public blob sha2hash256raw(blob value)
Computes a 256-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; blob hashA = sha2hash256raw(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public blob sha2hash256raw(rstring value)
Computes a 256-bit SHA-2 hash value from a given input value.
Examples:
blob hashA = sha2hash256raw("Hello World."); blob hashB = sha2hash256raw((rstring) 123.4); blob hashC = sha2hash256raw("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public rstring sha2hash384(blob value)
Computes a 384-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; rstring hashA = sha2hash384(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public rstring sha2hash384(rstring value)
Computes a 384-bit SHA-2 hash value from a given input value.
Examples:
rstring hashA = sha2hash384("Hello World."); rstring hashB = sha2hash384((rstring) 123.4); rstring hashC = sha2hash384("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public blob sha2hash384raw(blob value)
Computes a 384-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; blob hashA = sha2hash384raw(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public blob sha2hash384raw(rstring value)
Computes a 384-bit SHA-2 hash value from a given input value.
Examples:
blob hashA = sha2hash384raw("Hello World."); blob hashB = sha2hash384raw((rstring) 123.4); blob hashC = sha2hash384raw("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public rstring sha2hash512(blob value)
Computes a 512-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; rstring hashA = sha2hash512(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public rstring sha2hash512(rstring value)
Computes a 512-bit SHA-2 hash value from a given input value.
Examples:
rstring hashA = sha2hash512("Hello World."); rstring hashB = sha2hash512((rstring) 123.4); rstring hashC = sha2hash512("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
A hexadecimal string representation of the SHA-2 hash value.
- public blob sha2hash512raw(blob value)
Computes a 512-bit SHA-2 hash value from a given input value.
Examples:
blob key = (blob)(list<uint8>)[ 1ub, 2ub, 3ub ]; blob hashA = sha2hash512raw(key);
- Parameters
-
- value
-
The blob input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).
- public blob sha2hash512raw(rstring value)
Computes a 512-bit SHA-2 hash value from a given input value.
Examples:
blob hashA = sha2hash512raw("Hello World."); blob hashB = sha2hash512raw((rstring) 123.4); blob hashC = sha2hash512raw("Hello World." + (rstring)MyAttribute + "/" + (rstring)MyOtherAttribute);
- Parameters
-
- value
-
The rstring input value.
- Returns
-
The SHA-2 hash value as a sequence of raw bytes (blob).