ASN1AlgorithmIdentifier.fromName constructor

ASN1AlgorithmIdentifier.fromName(
  1. String name, {
  2. ASN1Object? parameters,
})

Creates a AlgorithmIdentifier instance from the given name like "sha1".

Implementation

ASN1AlgorithmIdentifier.fromName(String name, {this.parameters}) {
  algorithm = ASN1ObjectIdentifier.fromName(name);
}