generated from erangel1/generic-template
initial commit. phase 1 complete
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import { JOSENotSupported } from '../util/errors.js';
|
||||
export default function subtleRsaEs(alg) {
|
||||
switch (alg) {
|
||||
case 'RSA-OAEP':
|
||||
case 'RSA-OAEP-256':
|
||||
case 'RSA-OAEP-384':
|
||||
case 'RSA-OAEP-512':
|
||||
return 'RSA-OAEP';
|
||||
default:
|
||||
throw new JOSENotSupported(`alg ${alg} is not supported either by JOSE or your javascript runtime`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user