MCPcopy Create free account
hub / github.com/bcgit/bc-java / validate

Method validate

core/src/main/java/org/bouncycastle/pqc/crypto/xmss/BDS.java:467–493  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

465 }
466
467 private void validate()
468 {
469 if (authenticationPath == null)
470 {
471 throw new IllegalStateException("authenticationPath == null");
472 }
473 if (retain == null)
474 {
475 throw new IllegalStateException("retain == null");
476 }
477 if (stack == null)
478 {
479 throw new IllegalStateException("stack == null");
480 }
481 if (treeHashInstances == null)
482 {
483 throw new IllegalStateException("treeHashInstances == null");
484 }
485 if (keep == null)
486 {
487 throw new IllegalStateException("keep == null");
488 }
489 if (!XMSSUtil.isIndexValid(treeHeight, index))
490 {
491 throw new IllegalStateException("index in BDS state out of bounds");
492 }
493 }
494
495 protected int getTreeHeight()
496 {

Callers 1

BDSMethod · 0.95

Calls 1

isIndexValidMethod · 0.95

Tested by

no test coverage detected