fromId static method

AeadAlgorithm fromId(
  1. int id
)

Implementation

static AeadAlgorithm fromId(int id) {
  for (final a in values) {
    if (a.id == id) return a;
  }
  throw const UnsupportedAlgorithmException('Unknown AEAD identifier');
}