这是java代码
public SecretKey getSymmetricKey(String keyString) {
SecretKey secretKey = null;
try {
byte[] raw = Base64.decode(keyString);
secretKey = new SecretKeySpec(raw, "AES");
System.out.println("key "+secretKey);
} catch (Exception e) {
e.printStackTrace();
}
return secretKey;
}
请帮助我了解如何在目标 c 中实现上述内容,或者我需要为此参考哪个 API?