pkcs12LegacyAlgorithms method
Legacy algorithms (outside the OpenSSL 3.x default provider) present in
the der PKCS#12 file, by readable name. Empty when the file only uses
algorithms the default provider supports.
The scan runs over the OIDs encoded in the DER, so it works even when the file cannot be opened for lack of the provider.
Implementation
List<String> pkcs12LegacyAlgorithms(Uint8List der) {
final encontrados = <String>[];
for (final entry in _legacyOids.entries) {
if (_containsSequence(der, entry.key)) {
encontrados.add(entry.value);
}
}
return encontrados;
}