import { CryptoEffects , RSA_PARAMS } from '../common' ; import { decrypt } from '../effects/subtle' ; export function * decryptWithRsaKeyPair ( keyPair , encrypted ) { return yield * decrypt ( { name : RSA_PARAMS . name } , keyPair . privateKey , encrypted ) ; }