コード例 #1
0
 @Override
 public boolean checkAESKey(KeyParameter aesKey) {
   checkState(rootKey != null, "Can't check password for a watching chain");
   checkNotNull(aesKey);
   checkState(getKeyCrypter() != null, "Key chain not encrypted");
   try {
     return rootKey.decrypt(aesKey).getPubKeyPoint().equals(rootKey.getPubKeyPoint());
   } catch (KeyCrypterException e) {
     return false;
   }
 }