Searched refs:hMac (Results 1 – 2 of 2) sorted by relevance
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
D | PKCS5S2ParametersGenerator.java | 29 private Mac hMac; field in PKCS5S2ParametersGenerator 44 hMac = new HMac(digest); in PKCS5S2ParametersGenerator() 45 state = new byte[hMac.getMacSize()]; in PKCS5S2ParametersGenerator() 62 hMac.update(S, 0, S.length); in F() 65 hMac.update(iBuf, 0, iBuf.length); in F() 66 hMac.doFinal(state, 0); in F() 72 hMac.update(state, 0, state.length); in F() 73 hMac.doFinal(state, 0); in F() 85 int hLen = hMac.getMacSize(); in generateDerivedKey() 93 hMac.init(param); in generateDerivedKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/ |
D | BcKeyStoreSpi.java | 830 HMac hMac = new HMac(new SHA1Digest()); in engineLoad() local 842 macParams = pbeGen.generateDerivedMacParameters(hMac.getMacSize()); in engineLoad() 846 macParams = pbeGen.generateDerivedMacParameters(hMac.getMacSize() * 8); in engineLoad() 851 hMac.init(macParams); in engineLoad() 852 MacInputStream mIn = new MacInputStream(dIn, hMac); in engineLoad() 857 byte[] mac = new byte[hMac.getMacSize()]; in engineLoad() 858 hMac.doFinal(mac, 0); in engineLoad() 862 byte[] oldMac = new byte[hMac.getMacSize()]; in engineLoad() 877 byte[] oldMac = new byte[hMac.getMacSize()]; in engineLoad() 897 HMac hMac = new HMac(new SHA1Digest()); in engineStore() local [all …]
|