包路径:org.bouncycastle.crypto.generators.HKDFBytesGenerator 类名称:HKDFBytesGenerator 方法名:expandNext HKDFBytesGenerator.expandNext介绍 [英]Performs the expand part of the key derivation function, using currentT as input and output buffer. [中]使用currentT作为输入和输出缓冲区,执行键派生函数的展开部...
importorg.bouncycastle.crypto.generators.HKDFBytesGenerator;//导入依赖的package包/类privateHttpResponsecreateUser(byte[] username,byte[] ltpk,byte[] proof)throwsException{HKDFBytesGeneratorhkdf =newHKDFBytesGenerator(newSHA512Digest()); hkdf.init(newHKDFParameters(k,"Pair-Setup-Controller-Sign-Salt".get...
* * @param hash the digest to be used as the source of generatedBytes bytes */ public HKDFBytesGenerator(Digest hash) { this.hMacHash = new HMac(hash); this.hashLen = hash.getDigestSize(); } public void init(DerivationParameters param) { if (!(param inst...
private HttpResponse createUser(byte[] username, byte[] ltpk, byte[] proof) throws Exception { HKDFBytesGenerator hkdf = new HKDFBytesGenerator(new SHA512Digest()); hkdf.init( new HKDFParameters( k, "Pair-Setup-Controller-Sign-Salt".getBytes(StandardCharsets.UTF_8), "Pair-Setup-Controll...
包路径:org.bouncycastle.crypto.generators.HKDFBytesGenerator 类名称:HKDFBytesGenerator 方法名:extract HKDFBytesGenerator.extract介绍 [英]Performs the extract part of the key derivation function. [中]执行密钥派生函数的提取部分。 代码示例 代码示例来源:origin: redfish64/TinyTravelTracker ...