722723724725726727728729730731732
if (hostkey == null) throw new IllegalArgumentException("hostkey is null"); dig.update(hostkey); byte[] res = new byte[dig.getDigestLength()]; dig.digest(res); return res; } /** * Convert a raw fingerprint to hex representation (XX:YY:ZZ...).
723724725726727728729730731732733
836837838839840841842843844845846
throw new IllegalArgumentException("hostkey is null"); } dig.update(hostkey); byte[] res = new byte[dig.getDigestLength()]; dig.digest(res); return res; } /** * Convert a raw fingerprint to hex representation (XX:YY:ZZ...).
835836837838839840841842843844845
169170171172173174175176177178179
hmac.update(hostname.getBytes()); byte[] dig = new byte[hmac.getDigestLength()]; hmac.digest(dig); return dig; } private final boolean checkHashed(String entry, String hostname)
170171172173174175176177178179180
hmac.update(StringEncoder.GetBytes(hostname)); byte[] dig = new byte[hmac.getDigestLength()]; hmac.digest(dig); return dig; } private final boolean checkHashed(String entry, String hostname)
186187188189190191192193194195196
hmac.update(StringEncoder.GetBytes(hostname)); byte[] dig = new byte[hmac.getDigestLength()]; hmac.digest(dig); return dig; } private boolean checkHashed(String entry, String hostname)
185186187188189190191192193194195