blob: c5a8601a2182d8e343a5ff11a6789b7bdc94e8fb [file] [log] [blame]
import 'dart:typed_data';
import 'package:pointycastle/asn1.dart';
///
///```
/// KeyBag ::= PrivateKeyInfo
///```
///
class ASN1KeyBag extends ASN1Object {
ASN1PrivateKeyInfo privateKeyInfo;
ASN1KeyBag(this.privateKeyInfo);
@override
Uint8List encode(
{ASN1EncodingRule encodingRule = ASN1EncodingRule.ENCODING_DER}) {
return privateKeyInfo.encode(encodingRule: encodingRule);
}
}