decodeFirstPem static method
Decodes the first PEM block matching label.
Implementation
static Uint8List decodeFirstPem(String pem, String label) {
final blocks = decodePemBlocks(pem, label);
if (blocks.isEmpty) {
throw ArgumentError('Nenhum bloco PEM $label encontrado.');
}
return blocks.first;
}