Token_Service/src/com/fincons/token/utils/CryptUtil.java
/**
	 * Genera lo UserSecret e lo restituisce in forma byteArray
	 * @param publicKeyB
	 * @param privateKeyA
	 * @return
	 */
Genera lo UserSecret e lo restituisce in forma byteArray
@param publicKeyB
@param privateKeyA
@return
Genera lo UserSecret e lo restituisce in forma byteArray @param publicKeyB @param privateKeyA @return
public static byte[] calculateECDHBasicAgreement(ECPublicKeyParameters publicKeyB,ECPrivateKeyParameters privateKeyA){
		logger.trace("Called the calculateECDHBasicAgreement method...");
		ECDHBasicAgreement basicAgreement = new ECDHBasicAgreement();
		basicAgreement.init(privateKeyA);
		BigInteger userSecret = basicAgreement.calculateAgreement(publicKeyB);
		return BigIntegers.asUnsignedByteArray(userSecret);
	}
public static byte [ ] calculateECDHBasicAgreement ( ECPublicKeyParameters publicKeyB , ECPrivateKeyParameters privateKeyA ) { logger . trace ( "Called the calculateECDHBasicAgreement method..." ) ; ECDHBasicAgreement basicAgreement = new ECDHBasicAgreement ( ) ; basicAgreement . init ( privateKeyA ) ; BigInteger userSecret = basicAgreement . calculateAgreement ( publicKeyB ) ; return BigIntegers . asUnsignedByteArray ( userSecret ) ; }
Genera lo UserSecret e lo restituisce in forma byteArray
 @param publicKeyB
 @param privateKeyA
 @return
Genera lo UserSecret e lo restituisce in forma byteArray @param publicKeyB @param privateKeyA @return