Lines Matching defs:derive
88 /// This is the default mode. Calling [`derive`][PkeyCtxRef::derive] on a [`PkeyCtxRef`] set up
94 /// In this mode calling [`derive`][PkeyCtxRef::derive] will just perform the extract operation.
100 /// In this mode calling [`derive`][PkeyCtxRef::derive] will just perform the expand operation.
684 pub fn derive(&mut self, buf: Option<&mut [u8]>) -> Result<usize, ErrorStack> {
697 /// Like [`Self::derive`] but appends the secret to a [`Vec`].
700 let len = self.derive(None)?;
702 let len = self.derive(Some(&mut buf[base..]))?;
831 fn derive() {
870 ctx.derive(Some(&mut out)).unwrap();
894 ctx.derive(Some(&mut out)).unwrap();