pub fn convert_keyset_to_keyset_with_pop(key_set: FsEncryptionKeySet) -> FsEncryptionKeySetWithPop {
    FsEncryptionKeySetWithPop {
        public_key: key_set.public_key,
        pop: FsEncryptionPop {
            pop_key: key_set.pok.blinder,
            challenge: FrBytes([0; FrBytes::SIZE]),
            response: key_set.pok.response,
        },
        secret_key: key_set.secret_key,
    }
}
/// Converts an old `FsEncryptionKeySet` to a `FsEncryptionKeySetWithPop`.
///
/// The old `FsEncrptionPok` is formatted as a `FsEncryptionPop` as follows:
/// * The `blinder` of the PoK is written as the `pop_key` value in the PoP
/// * The `challenge` of the proof of possession is set equal to `0`.
/// * The `response` of the Pok is written as the `response` value in the PoP,
///
/// # Security Notice
/// The reformatted PoK **does not** constitute a valid PoP.
/// This function must be used for compatibility purposes only and it will be
/// removed as part of CRP-923.
Converts an old `FsEncryptionKeySet` to a `FsEncryptionKeySetWithPop`.
Converts an old ` FsEncryptionKeySet ` to a ` FsEncryptionKeySetWithPop ` .
pub fn convert_keyset_to_keyset_with_pop(key_set: FsEncryptionKeySet) -> FsEncryptionKeySetWithPop {
    FsEncryptionKeySetWithPop {
        public_key: key_set.public_key,
        pop: FsEncryptionPop {
            pop_key: key_set.pok.blinder,
            challenge: FrBytes([0; FrBytes::SIZE]),
            response: key_set.pok.response,
        },
        secret_key: key_set.secret_key,
    }
}
pub fn convert_keyset_to_keyset_with_pop ( key_set : FsEncryptionKeySet ) -> FsEncryptionKeySetWithPop { FsEncryptionKeySetWithPop { public_key : key_set . public_key , pop : FsEncryptionPop { pop_key : key_set . pok . blinder , challenge : FrBytes ( [ 0 ; FrBytes :: SIZE ] ) , response : key_set . pok . response , } , secret_key : key_set . secret_key , } }
Converts an old `FsEncryptionKeySet` to a `FsEncryptionKeySetWithPop`.
Converts an old ` FsEncryptionKeySet ` to a ` FsEncryptionKeySetWithPop ` .
key_set
FsEncryptionKeySet
key_set
FsEncryptionKeySet
security notice
The reformatted PoK **does not** constitute a valid PoP.
This function must be used for compatibility purposes only and it will be
removed as part of CRP-923.
The reformatted PoK ** does not ** constitute a valid PoP . This function must be used for compatibility purposes only and it will be removed as part of CRP - 923 .